a separate basket for a different type of product
I want have two shopping carts in my site. One cart for products of type "A", second - for products of type "B"
I know it is possible by Commerce internal design.
for the first i created two modules (could be one, but that's not important right now).
first module adds custom Line Item Type into system - "photoprint"
second module adds custom Order Type - "photoprint"
But I have no good api skills and I have a few questions
The first one: for now i need to write simple hook or write an rule that much better: When user adds to cart the product of type A - it goes to standart shopping cart. But if user adds the cart the product of type "B" - it must go to shopping cart of type "photoprint" (order type "photoprint"). If there is no shopping cart of that type - it must create new order of type "photoprint" with status "cart" and then add lineitems to that order. If cart already exists - just add products to that cart.
Can you help me with that?