- Posts: 109
- Thank you received: 5
Query on Hardcoded Value in Product Cart
11 years 9 months ago #183881
by Ed_Hika
Query on Hardcoded Value in Product Cart was created by Ed_Hika
-- 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!
-- 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.
11 years 9 months ago #183885
by Xavier
Replied by Xavier on topic Query on Hardcoded Value in Product Cart
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.
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.155 seconds