strub Posted June 6, 2011 Share Posted June 6, 2011 Hi, How can I avoid that the add to cart button refreshes the page site? I want to add a onlick function which adds the product with ajax. Everything works except that it loads the page. <?php echo tep_draw_button(IMAGE__IN_CART, null, null, 'primary', null, 'onClick="SBY.addToCart(' . $product_info['products_id'] . ')"'); ?> Any ideas? Thanks in advance Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.