Jump to content

Add to cart button code


13thjoker
 Share

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)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More