10roses Posted October 28, 2014 Share Posted October 28, 2014 (edited) Hi there I have created button to add 2, 3, 4 and 6 untits of a product but I can't get to work with ajax I know I have to edit ajax-cart.js but I haven't figured it out so far It works by opening the cart summary page Can anyone help me with this please Here's de button for 6 units: <a class="new_bt ajax_add_to_cart_button" href="url/cart.php?controller=cart&add=1&id_product={$product.id_product}&qty=6&token={$static_token}" data-id-product="{$product.id_product}" rel="nofollow" title="Add to cart">{l s='Add to cart'}</a> thanks a lot in advance Edited October 28, 2014 by 10roses (see edit history) Link to comment Share on other sites More sharing options...
10roses Posted October 28, 2014 Author Share Posted October 28, 2014 (edited) edited the button code to match the original in product-list.tpl here it is <a class="new_bt ajax_add_to_cart_button" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&qty=6&token={$static_token}", false)|escape:'html':'UTF-8'}" data-id-product="{$product.id_product}" data-id-product="{$product.id_product}" rel="nofollow" title="Add to cart">{l s='Add to cart'}</a> Edited October 28, 2014 by 10roses (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts