Query on Hardcoded Value in Product Cart

  • Posts: 109
  • Thank you received: 5
10 years 8 months ago #183881

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6

Hello, there.

Good evening!

The lines 488 and 522 In product/cart.php (of Version 2.3.4) contain the following line:

$max_quantity = (int)$min_quantity * 15;

Please could you advise the reason for hardcoding the value of 15?

Thanks.

Take care!

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #183885

Hi,

This is a default value in case of nothing is set in the product edition page for the maximum quantity of the product.
This code is executed only if you use the select quantity display type.
Limiting the maximum allow to not have too long dropdown for quantity select, else it is not user friendly.

The following user(s) said Thank You: Ed_Hika

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

Time to create page: 0.058 seconds
Powered by Kunena Forum