Created
September 12, 2019 21:36
-
-
Save imesut/f195d9c84c643225acefca9cf629b730 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Product Page | |
function getCookie(name) { | |
var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)'); | |
return v ? v[2] : null; | |
} | |
var cookieValue = getCookie("send_to_parilti"); | |
if(cookieValue == 1) { | |
document.getElementsByName("add-to-cart")[0].innerText = "Parıltı'ya Gönder"; // Means "Send to Parıltı" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment