Jump to content

Category page


raunhar

Recommended Posts

yes possible.
for this you need to make changes in  product-list.tpl file

add code before {l s='Add to cart'}

{l s='Quantity :'}
   <input type="text" name="ajax_qty_to_add_to_cart[{$product.id_product|intval}]" id="listing_qty{$product.id_product|intval}" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}1{/if}" size="2" maxlength="3" />


Also make change in module block cart file ajax-cart.js

Change

ajaxCart.add(idProduct, null, false, this);
TO
ajaxCart.add(idProduct, null, false, this, $('#listing_qty'+idProduct).val());

Link to comment
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
×
×
  • Create New...