Jump to content

Add to cart button code


Recommended Posts

17 minutes ago, hakeryk2 said:

Your theme folder/ product-list.tpl for buttons on categories pages and product.tpl for product page.

i meant the function behind it. I bassicly want an onclick event on the add to cart button but when i put it on the cart button itself on refresh it simulates a click. no clue why.


Idk if you can help me any further but bassicly on click iof the add cart i need to execute {CartControllerCore::function($productid)} onclick="is the one i tried.


In the function i can then add my own function :)

Edited by 13thjoker (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...