Frank Auffret Posted February 15 Share Posted February 15 On certain products when adding to basket this error message appears "Please enter a value less than or equal to 0" I checked to product settings all seem to be as expected Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 15 Share Posted February 15 Please provide a web address where we can see this. Quote Link to comment Share on other sites More sharing options...
Frank Auffret Posted February 15 Author Share Posted February 15 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. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 15 Share Posted February 15 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. 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.