Add to cart button

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
I'm trying to create a custom view with "Add to cart" button. I'm using  theme Pavilion (with SevenSpikers Plugins).

But my button doesn't work. Can somebody explane please how to  implement it?
6 years ago
Hello,

If you are using the Ajax Cart plugin your, your button will not work. The Ajax Cart plugin replaces all of the add to cart buttons with its own. That means that your changes to the code will be obsolete.

I will suggest you use javascript to change the add to cart buttons. Add an event listener to the nopAjaxCartButtonsAddedEvent event and execute your code once that event is triggered.

Hope this helps!

Regards,
Anton
6 years ago
And if I disable the Ajax Plugin? I have a list of products and buttons "Add product" on my custom view. I can get productId and quantity after some button clicked. But how can I call a method for adding product and stay in the same view?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.