| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Scroll Wheel Numbers in 5.3 | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Scroll Wheel Numbers in 5.3
In 5.2 many integer fields (e.g. "Quantity in Stock" on the view product screen) would allow you to increment/decrement the number using the mouse scroll wheel. When you click on the field it would show a little mouse icon next to the field to indicate this.
As far as I can tell this is gone from 5.3. Any idea how to get it back?
__________________
X-Cart Business 5.3.6.8 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Scroll Wheel Numbers in 5.3
I can confirm that this is missing in one of my client 5.3 versions. I can;t find any settings in the admin dealing with this. It may have been intentionally removed, or it may be a bug...
__________________
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
|
|||||||||
|
|||||||||
Re: Scroll Wheel Numbers in 5.3
It was disabled intentionally, however can be re-enabled from a custom module.
Solution #1: Decorate \XLite\View\FormField\Input\Text\Base\Numeric class from a custom module and set static::PARAM_MOUSE_WHEEL_CTRL to true. Solution #2: In templates that use this widget pass an extra parameter "mouseWheelCtrl" and set it to "true". In widget classes that add this widget to a form, pass the extra PARAM_MOUSE_WHEEL_CTRL parameter.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#4
|
|||||||
|
|||||||
Re: Scroll Wheel Numbers in 5.3
Thanks for the quick response! I'm still pretty new to X-Cart development. I tried to override globally and it didn't work, did I do something wrong here?
Code:
__________________
X-Cart Business 5.3.6.8 |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Scroll Wheel Numbers in 5.3
No, I meant a bit different thing.
PARAM_MOUSE_WHEEL_CTRL is a widget parameter that is set in defineWidgetParams() method. So, you should either decorate this method and set the parameter to true there, or tweak the getDefaultMouseWheelCtrlValue() method that returns the default value for the parameter. Also, when you change the behavior of an existing class ("decorate" it), you should not just create a new class extending the existing one, but also mark it with the "implements" directive like this (also see how the namespace matches the namespace of the existing class - it is not a requirement, but a good practice): PHP Code:
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions Last edited by qualiteam : 02-12-2017 at 11:51 PM. |
|||||||||
#6
|
|||||||
|
|||||||
Re: Scroll Wheel Numbers in 5.3
yeah, that makes sense *cough*
__________________
xcartmods.co.uk |
|||||||
#7
|
|||||||
|
|||||||
Re: Scroll Wheel Numbers in 5.3
That solution worked perfectly; thank you!
__________________
X-Cart Business 5.3.6.8 |
|||||||
#8
|
|||||||
|
|||||||
Re: Scroll Wheel Numbers in 5.3
Quote:
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX X-Cart Pro 4.6.6 Retired after 6 years of first class service X-Cart Pro 4.1.7 Retired after 9 years of first class service Apache: 2.4.25 PHP: 7.4.5 MariaDB: 10.1.44 Arch: x86_64 |
|||||||
|
|||
X-Cart forums © 2001-2020
|