Need help figuring this out.
Have a product model:
class Product
:name
:short_description
:price
:cost
:visible
:new_service
:deleted
:category_id
end
Have a line item model. Pretty much copies product model except:
class LineItem
:order_id
:customer_id
:company_id
end
Now need to figure out how to add a Product Group which will consists of multiple products and carry all of the same attr as the product model. Normally I would do a joins table with :ids, but need the ability to edit the price and cost of each product in the group.
Stumped on this one.
1 Answer