Hello!
I have one questions:
How can i make module “order” where i have next fields:
- Name
- Count
where: Name - product name.
Count - integer count of purchased products.
These fields are are connected with products section. When I add the item to the orders are automatically deleted items in the number of items purchased.
Example:
In products section i have product:
Name: Shoes
Count: 10
In order section i have one order:
Name: Shoes
Count: 5
When i add this order, in product section subtract the number specified in the order: in my example this number 5.