remove hundredths of grams

  • Posts: 4
  • Thank you received: 0
3 years 10 months ago #320123

-- 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?

Attachments:

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
3 years 10 months ago #320142

Hi,

Before the line:

$options['range'] = '{min: '.$cursorMin.', max: '.$cursorMax.'}';
you can add such 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.061 seconds
Powered by Kunena Forum