Hi All,
I have just created my ordering form but I need help on two functions that needs to be on the form;
1. When I enter the quantity of products in the text box it should update the product stock level
2. If the product is not in stock to provide a notification that the product is not in stock.
Related Tables / Attributes has been attached. Just to explain the relationship - an Order can have many orderlines, an orderline can consist of many products of multiple quantity.
How can I go about updating the product stock_quantity via the order form?
Thanks for your help.
________
AnyWishes
I have just created my ordering form but I need help on two functions that needs to be on the form;
1. When I enter the quantity of products in the text box it should update the product stock level
2. If the product is not in stock to provide a notification that the product is not in stock.
Related Tables / Attributes has been attached. Just to explain the relationship - an Order can have many orderlines, an orderline can consist of many products of multiple quantity.
How can I go about updating the product stock_quantity via the order form?
Thanks for your help.
________
AnyWishes
Attachments
Last edited: