AllMarshall Posted May 18, 2009 Share Posted May 18, 2009 How can you set the quantity added by a customer to not be greater than the stock held? I have a php ecommerce website which holds the information of stock held but I want to ensure that the customer can not add more stock to the basket than we have in stock. Link to comment https://forums.phpfreaks.com/topic/158608-setting-values-for-form-field/ Share on other sites More sharing options...
Ken2k7 Posted May 18, 2009 Share Posted May 18, 2009 Check if the number the user entered is less than the number available using SQL or flat file if that's what you're using. Are you getting errors or what? Link to comment https://forums.phpfreaks.com/topic/158608-setting-values-for-form-field/#findComment-836502 Share on other sites More sharing options...
AllMarshall Posted May 18, 2009 Author Share Posted May 18, 2009 No I don't have errors I just don't know how to do it!!! Link to comment https://forums.phpfreaks.com/topic/158608-setting-values-for-form-field/#findComment-836506 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.