Jump to content

Quantity Error


Frank Auffret

Recommended Posts

46 minutes ago, bsmither said:

Please provide a web address where we can see this.

 

 

https://limekilnchandlers.co.uk/index.php
Product code: BLAL8FM098
I deleted the product record and reinstalled it. It's all okay now.

As an afterthought I did check the "Minimum Quantity Purchase" on another six products which had 0 as the value. One product produced the same error, the other five were added to the basket without an issue?
No conclusion there.

Link to comment
Share on other sites

The phrase "Please enter a value less than or equal to" is from the skin's jquery.validate.js vendor plugin. It's a message related to the quantity input form element that has a max attribute, which appears only if there is in the product's details specify a "Maximum Quantity Purchase" value, and that value is greater than or equal to the min attribute's value.

However, in admin, the product details screens, Pricing tab, the "Maximum Quantity Purchase" says to 'Leave blank to disable'.

And the database table CubeCart_inventory has a default value of null for the 'maximum_quantity' column.

However, for me, at least, my database shows that column has a zero as the value - which is what shows on the Pricing tab. Blanking that field does cause that form element to POST as a zero-length string, but still ends up in the database as a zero, not a null.

So, still researching the situation.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...