Product Page to Add-to-cart

Luna8030L
Shopify Partner
10 0 3

Hi folks, I have developed an app. I have one issue here. When someone clicks on the add-to-cart button on the product page, our app sends ajax request with custom properties produced by our app. But the issue is third party apps & themes send add-to-cart ajax requests also. Sometimes our add-to-cart ajax is replaced by the other request -- in other words, occasionally our app properties are not in the products in the add-to-cart page. For your information, our properties will be added to the product depending on the selection. So we can't add by cart change js.

 

What will be the best solution in that case?

 

 

Replies 4 (4)

tim202
Shopify Partner
31 4 3

do you want to replace the custom properties created by third-party apps? or do you want to append your custom properties?

Luna8030L
Shopify Partner
10 0 3

Yes, I want to append my custom properties.

Luna8030L
Shopify Partner
10 0 3

Yes, I would like to append my custom properties.

tim202
Shopify Partner
31 4 3

You can listen for the Ajax response then add you custom properties using the change.js