| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Drop down for quantity | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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?
__________________
Version 4.0.14 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() see customer/buny_now.tpl
and see this Code:
also see here on how to use the step function within a section http://smarty.php.net/manual/en/language.function.section.php
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() 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.
__________________
Version 4.0.14 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() hi,
its something like this Code:
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
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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:
that was what you were talking about - right?
__________________
Version 4.0.14 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() thats just right and should be step=50 for you
youll also need to alter the same code in skin1/customer/main/product.tpl
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#7
|
|||||||
|
|||||||
![]() shan - you rock!
that did the trick much appreciated d
__________________
Version 4.0.14 |
|||||||
#8
|
|||||||
|
|||||||
![]() 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
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS |
|||||||
#9
|
|||||||
|
|||||||
![]() 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
__________________
X-Cart 4.1.8 |
|||||||
|
|||
X-Cart forums © 2001-2020
|