![]() |
Drop down for quantity
I currently only use the wholesale pricing for my store.
I would like to have the quantity drop down menu display in multiples of 50 rather than 1-999. Does anyone know where or how I could modify this? |
see customer/buny_now.tpl
and see this Code:
<SELECT name="amount">also see here on how to use the step function within a section http://smarty.php.net/manual/en/language.function.section.php |
Quote:
thanks shan. i'm still a little confussed about which variable i'll need to modify and how. i took a look at the link you included - but didn't see an example of a loop based on a fixed variable. |
hi,
its something like this Code:
{section name=quantity loop=$mq start=$start_quantity step=5} i added the step value to change the increment you could also change the start value so that i begins with say 5 instead of 1 |
Quote:
made the change as you suggested - but nothing has changed the code i changed was in /customer/main/buy_now.tpl and is below Code:
<SELECT name="amount">that was what you were talking about - right? |
thats just right and should be step=50 for you
youll also need to alter the same code in skin1/customer/main/product.tpl |
shan - you rock!
that did the trick much appreciated d |
I modified Shan's idea a bit to allow my site to sell both single items and items in case quantities. My mod is here: http://forum.x-cart.com/viewtopic.php?t=26655
|
Re: Drop down for quantity
I can't seem to get this to work on my site. I need to change the quantity dropdown on the product details page to increments of 500. I've added the step function into the section for the quantity dropdown in /customer/main/product.tpl.
This is what my code looks like: PHP Code:
However, the quantity dropdown still shows increments of 1. Is there something I'm missing? Has something changed with the latest version of X-cart which means this code no longer works? If anyone can help me with this, I'd be very grateful! Thanks! Regards Deb |
| All times are GMT -8. The time now is 12:07 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.