![]() |
Auto update Qty in View Cart
On the view cart page and on the checkout step one page I would like to change the quantity box to a drop down menu then automaticaly refreshes the page with the new settings when its changed.
Has anyone already done this ? V3.3.3 |
[skin1]/customer/main/cart.tpl:
Find this line: Code:
<input type=text size=3 name="productindexes[{$smarty.section.product.index}]" value="{$products[product].amount}"> Delete it out, add some spacing inbetween the other code that is wrapped around it, so you that you can paste the following in: Code:
{if $config.General.show_in_stock ne "Y"} I've also adjusted step 1 of the checkout as well: [skin1]/customer/main/cart_contents.tpl Locate the following line: Code:
<input type=text size=3 name="productindexes[{$smarty.section.product.index}]" value="{$products[prod_num].amount}"> Highlight this entire line of code and replace it with: Code:
{if $config.General.show_in_stock ne "Y"} I'm not too sure if this will work properly with the quantity or inventory check on the product so if you are using a check on inventory & if you do experience the select field selecting the max, disregarding the amount of products available, let me know. Donations happily accepted :D Kudos ;) |
Cheers mate,
ill take a look at this tomorow :wink: |
Has anyone had a problem with even the default template updating the quantity? When I change the quantity while I am viewing the cart and click update - it refreshes, but the quantity reverts to its original value. This is in 3.3.5. Any ideas?
|
All times are GMT -8. The time now is 01:44 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.