X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   XC5 Change Quantity to drop down box? (https://forum.x-cart.com/showthread.php?t=71047)

JannieB 01-23-2015 04:01 AM

XC5 Change Quantity to drop down box?
 
Hello,
In the old X-cart there was an option to change the Quantity box from a text box to a drop down select .... how do I do this in XC5?

Jan

totaltec 01-23-2015 04:47 AM

Re: XC5 Change Quantity to drop down box?
 
I don't believe this option exists for XC5. There is a lot of nice new functionality in regards to the qty input, I'm sure you noticed the mouse scroll feature of this input. But the option to easily switch to a select is missing.

So you would need to make this change just like you would anything else, by creating a custom module and either decorating the viewer class, or overriding the correct templates in your custom skin. Do you already have a custom skin module created?

JannieB 01-23-2015 05:05 AM

Re: XC5 Change Quantity to drop down box?
 
Thanks, yes I already have a custom module. I was wondering if I can just pass a parameter to the widget to specify the field type

maybe by using defineWidgetParams ??

I've noticed the mouse wheel, which is OK, but the problem is entering a quantity on a mobile.

If there's no simple way to do a drop down box (how can something like that be so hard!) I might resort to using +/- buttons to change the quantity value ....

Jan


All times are GMT -8. The time now is 10:55 AM.

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