Created
February 22, 2019 17:41
-
-
Save andreibabor/cfd967862a4b5a8f7f0a877991d70c92 to your computer and use it in GitHub Desktop.
Shopify: Redirect Shopify customer to specific page after logout
This file contains hidden or 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
$(document).ready( function() { | |
$('a[href^="/account/logout"]').on("click", function() { | |
$.ajax( $(this).attr('href') ) | |
.done(function() { | |
// Here you will change the url to whatever page you want to redirect to | |
window.location.href = "/pages/my-shopify-page"; | |
}); | |
return false; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment