Author Topic: App Error The limit of 999.99 has been reached. Provide smaller number.  (Read 5867 times)

Offline designachoc

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  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

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5797
  • Karma: +274/-2
    • View Profile
Hello.
Change weight class to KG and set weight to 2

Offline jec13

  • Newbie
  • *
  • Posts: 6
  • Karma: +3/-0
    • View Profile
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?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5797
  • Karma: +274/-2
    • View Profile
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
 

Offline jec13

  • Newbie
  • *
  • Posts: 6
  • Karma: +3/-0
    • View Profile
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?

Offline jec13

  • Newbie
  • *
  • Posts: 6
  • Karma: +3/-0
    • View Profile
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?

Offline HADY

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: +27/-5
    • View Profile
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

Offline jec13

  • Newbie
  • *
  • Posts: 6
  • Karma: +3/-0
    • View Profile
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).

Offline jec13

  • Newbie
  • *
  • Posts: 6
  • Karma: +3/-0
    • View Profile
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.

 

Powered by SMFPacks Social Login Mod