Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
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?
do you want to replace the custom properties created by third-party apps? or do you want to append your custom properties?
Yes, I want to append my custom properties.
Yes, I would like to append my custom properties.
You can listen for the Ajax response then add you custom properties using the change.js