raunhar Posted June 29, 2020 Share Posted June 29, 2020 I want to display Qnty on the category page itself, like in: https://shop.marketplacefresh.com.au/ The user can select the qnty on the category page, rather than going to Quick View or at the time of check out. How can it be done. Link to comment Share on other sites More sharing options...
Razi Posted June 29, 2020 Share Posted June 29, 2020 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 More sharing options...
raunhar Posted July 2, 2020 Author Share Posted July 2, 2020 Where can I find the files product-list.tpl & ajax-cart.js, in the default classic theme Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now