Skip to main content

remove hundredths of grams

6 years 5 months ago #320123 by Dadatr
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.4
-- Browser(s) name and version -- : chrome

How to remove hundredths of grams in the filter?

Please Log in or Create an account to join the conversation.

6 years 5 months ago #320142 by nicolas
Replied by nicolas on topic remove hundredths of grams
Hi,

Before the line:
Code:
$options['range'] = '{min: '.$cursorMin.', max: '.$cursorMax.'}';
you can add such code:
Code:
$cursorMin = (int)$cursorMin; $cursorMax = (int)$cursorMax; $minVal = (int)$minVal; $maxVal = (int)$maxVal;
in the file administrator/components/com_hikashop/classes/filter.php and that should hopefully do it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.045 seconds
Powered by Kunena Forum