Skip to main content

Query on Hardcoded Value in Product Cart

More
11 years 9 months ago #183881 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!

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

More
11 years 9 months ago #183885 by Xavier
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.155 seconds
Powered by Kunena Forum