Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

App Error The limit of 999.99 has been reached. Provide smaller number.

Started by designachoc, April 11, 2020, 06:11:26 PM

Previous topic - Next topic

designachoc

  App Error The limit of 999.99 has been reached. Provide smaller number. anyone got any idea what this error is ive tried to google it but came up blank all im trying to do is add weight to a product of 2000 grams but when i click save this error pops up
any help is greatfully appreciate

Basara


jec13

I am using weight as a code to determine shipping costs that aren't necessarily based on actual product weight. I'd like to be able to enter weight values without any limit on weight amount. How do I lift the app error limit of 999.99 for weight, and allow any weight amount?

Basara

When products go to the cart their weight converted automatically to the default weight class
https://abantecart.atlassian.net/wiki/spaces/AD/pages/6389823/Weight+Class

But you are free to change AbanteCart code to anything

jec13

Thank you. Yes I am aware that Abantecart code is able to be changed. I have had good success making PHP, HTML and Javascript modifications to make the store look and perform as we wish. Can you tell me please which file or files to work with? We are using the "weight based shipping" extension. Which file or files place the 999.99 limit on weight? Please tell me which file, so I can change it and have no limit on weight. Can you help?

jec13

Hello, can you assist please? We are using the "weight based shipping" extension. If we attempt to enter a product weight greater than 999.99, the Abantecart system throws an error, "App Error The limit of 999.99 has been reached." We need to stop all weight-limit errors and enable Abantecart to accept any weight amount. Please tell us the file we need to edit to stop the error. Which Abantecart file produces the weight limit error?

HADY

Quote from: jec13 on May 06, 2020, 08:02:31 AM
Hello, can you assist please? We are using the "weight based shipping" extension. If we attempt to enter a product weight greater than 999.99, the Abantecart system throws an error, "App Error The limit of 999.99 has been reached." We need to stop all weight-limit errors and enable Abantecart to accept any weight amount. Please tell us the file we need to edit to stop the error. Which Abantecart file produces the weight limit error?


Hi!
Try to turn of  Weight on cart: Go to Admin > System >Settings > send Order > Display Weight on Cart Page and turn off.
Thank you In Advanced
Regards
HADY

jec13

Thank you for your help. I found the answer I needed.

Modify this file:

/admin/controller/pages/catalog/product.php

Line 1043, set $v >= value to desired number. Default setting of 1000 was causing error when product weight was more than 999.99.

Also, make change to Abantecart database: Table "abmv_products", column_name "weight", set "data_type" to decimal(15,2) (in my case to allow whole integers of up to 15 digits and 2 after the decimal point).

jec13

One more note to finish the fix: You may also want to modify the error message text itself, to reflect the new weight limit that you set in the /admin/controller/pages/catalog/product.php file.

On the Abantecart panel, go to System > Localization > Language Definitions, search "999.99" in the Translation box, and modify the error_measure_value   key listing of "The limit of 999.99 has been reached. Provide smaller number." to whatever error text you think appropriate should your new weight limit be exceeded.

Forum Rules Code of conduct
AbanteCart.com 2010 -