FROM CACHE - en_header

Page load and page change script is not working

14 0 1


Hello All,

We like to catch customer's city when certain event is change. So, I was trying to run below code in checkout.liquid. 

It happen nothing. Is that below script run after we did event in checkout page? isn't it?

Is there anything I need to aware of this?

(function($) {
 $(document).on("page:load page:change", function() {
 if (Shopify.Checkout.step === "contact_information") 
{ // Add content 
console.log('I am here');


Replies 0 (0)