| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Quantity Steps for Input boxes? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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! ![]()
__________________
X-Cart Gold 4.5.1 Linux Dedicated Server Mods: XMenus., XBanners, BCSE Testimonials, BSCE Abandoned Cart |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
#3
|
|||||||
|
|||||||
![]() Thank you totaltec, any clues to where I might find the javascript I need to change?
__________________
X-Cart Gold 4.5.1 Linux Dedicated Server Mods: XMenus., XBanners, BCSE Testimonials, BSCE Abandoned Cart |
|||||||
#4
|
|||||||||
|
|||||||||
![]() 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.
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Look at /common_files/form_validation_js.tpl, you will see the javascript related to maxquantity and minquantity around line 38.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() The example link wasn't really showing me anything. Are you wanting this?
http://wufoo.com/html5/attributes/04-minmaxstep.html |
|||||||||
|
|||
X-Cart forums © 2001-2020
|