X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Quantity Steps for Input boxes? (https://forum.x-cart.com/showthread.php?t=63759)

katfal36 05-27-2012 08:33 AM

Quantity Steps for Input boxes?
 
Hi all, I have searched the forum for how to customize the quantity input box to only allow a min order amount and implemented that, but has anyone figured out how to do step quantities in the input boxes, like this store does: http://goldsilver.com/buy-online/liberty-silver-round/

Our products are created to order so don't want a mile long quantity select box.

Thanks in advance!:-)

totaltec 05-27-2012 09:55 AM

Re: Quantity Steps for Input boxes?
 
It's not easy to do because of the Javascript associated with the quantity box. You will need to edit the Javascript, and customize it to only allow your specified quantities.

You can change the quantity input type to a text field in the admin panel.

katfal36 05-27-2012 07:07 PM

Re: Quantity Steps for Input boxes?
 
Thank you totaltec, any clues to where I might find the javascript I need to change?

ADDISON 05-28-2012 12:09 AM

Re: Quantity Steps for Input boxes?
 
investigate that coin page for behavior using Firebug. check what js is loaded to find the code dealing with quantity box. you can debug js, watch for variable. then do a search inside the js file for that variable. adapt this code to your XC.

totaltec 05-28-2012 04:08 AM

Re: Quantity Steps for Input boxes?
 
Look at /common_files/form_validation_js.tpl, you will see the javascript related to maxquantity and minquantity around line 38.

cherie 05-29-2012 02:32 PM

Re: Quantity Steps for Input boxes?
 
The example link wasn't really showing me anything. Are you wanting this?

http://wufoo.com/html5/attributes/04-minmaxstep.html

photo 05-29-2012 03:15 PM

Re: Quantity Steps for Input boxes?
 
Not sure if this is what your after but you can check out the following thread


All times are GMT -8. The time now is 05:44 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.