Jeevachaithanyan Sivanandan

Add To Cart Function on OpenCart to a Button

In technology · 1 min read

If you want to enable Add to Cart function on a button, you simply follow these.

Code for button below

 <input type=“button” value="" onclick=“addTOCART(’’);”  /> 

Code for JavaScript effect below