sjparida Posted April 2, 2012 Share Posted April 2, 2012 Hi there , I want to add the cart's add and substract button in the front panel so that user can directly add or substract the product quantity. or when a user click "add to cart" for a same product multiple times, all the products should come indivisually i.e no group should be form, so that the user can delete the same products using delete key I have attached a pic to clarify the situation Link to comment Share on other sites More sharing options...
Eikc Posted September 15, 2012 Share Posted September 15, 2012 Did you ever find a solution for this?!? i'm interesting in hearing if this is possible or not.. Link to comment Share on other sites More sharing options...
shokinro Posted September 16, 2012 Share Posted September 16, 2012 It very easy. Please add following code to file /modules/blockcart.tpl Before line {/foreach} Adding following code <div id="cart_quantity_button" style="float:left;"> <a rel="nofollow" class="cart_quantity_up" id="cart_quantity_up_{$product.id_product}_{$product.id_product_attribute}" href="{$link->getPageLink('cart.php', true)}?add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&token={$token_cart}" title="{l s='Add'}"><img src="{$img_dir}icon/quantity_up.gif" alt="{l s='Add'}" width="14" height="9" /></a><br /> <a rel="nofollow" class="cart_quantity_down" id="cart_quantity_down_{$product.id_product}_{$product.id_product_attribute}" href="{$link->getPageLink('cart.php', true)}?add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&op=down&token={$token_cart}" title="{l s='Subtract'}"> <img src="{$img_dir}icon/quantity_down.gif" alt="{l s='Subtract'}" width="14" height="9" /> </a> </div> I tried it works fines Link to comment Share on other sites More sharing options...
Eikc Posted September 17, 2012 Share Posted September 17, 2012 Ahh yes, but it doesn't work with Ajax.. Link to comment Share on other sites More sharing options...
shokinro Posted September 18, 2012 Share Posted September 18, 2012 it works here - see here at my demo site (this URL only works for temporary) Link to comment Share on other sites More sharing options...
Recommended Posts