Product Page to Add-to-cart

SBS8030L
Tourist
9 0 2

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)
timvma
Shopify Partner
27 4 3

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

SBS8030L
Tourist
9 0 2

Yes, I want to append my custom properties.

SBS8030L
Tourist
9 0 2

Yes, I would like to append my custom properties.

timvma
Shopify Partner
27 4 3

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