Christopher Short Posted December 31, 2023 Share Posted December 31, 2023 Is it possible to allow more than 999 of an item bought? We sell some things by the foot and I have orders trying to buy 3000 ft . They cant check out. Solution? Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 31, 2023 Share Posted December 31, 2023 So far, I have found four edits necessary: /classes/cart.class.php, near line 210, find: if (!is_numeric($quantity) || $quantity < 1 || $quantity > 999) { Change to: if (!is_numeric($quantity) || $quantity < 1) { skin template element.product.call_to_action, near line 33, find: <input type="number" name="quantity" aria-label="{$LANG.common.quantity}" value="{$PRODUCT.minimum_quantity|default:'1'}" min="{$PRODUCT.minimum_quantity}"{if $PRODUCT.maximum_quantity gte $PRODUCT.minimum_quantity}max="{$PRODUCT.maximum_quantity}"{/if} maxlength="3" class="quantity required text-center"> and delete this part: maxlength="3" skin template content.homepage.php, near line 62, find: <input type="number" name="quantity" aria-label="{$LANG.common.quantity}" maxlength="3" value="{$product.minimum_quantity|default:'1'}" min="{$product.minimum_quantity}" class="quantity required text-center"> and delete this part: maxlength="3" skin template content.category.php, near lines 116 and 176, find: <input type="number" name="quantity" aria-label="{$LANG.common.quantity}" value="{$product.minimum_quantity|default:'1'}" maxlength="3" class="quantity text-center"> and delete this part: maxlength="3" You can learn about this at: https://github.com/cubecart/v6/issues/2086 So, maybe make the changes so that the max would be 99999 (maxlength="5") -- or whatever suits your expectations. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.