Advice for complex order item
Posted: Fri Jan 11, 2013 12:09 pm
Hi,
I would like to have your opinion on a new functionnality that I have to develop :
I must have the possibility to create some Virtual Products :
A virtual product haven't a fixed price. The price is defined by :
- A modality access (DAY, MONTH, YEAR...), for instance 10$ for 1 month
- A list of Product Options, each product option have a price by a modality access, (for instance CITY ==> 1 MONTH ==> 5$)
(so final price for one Month and the option city is ==> 10$ + 5$ = 15$)
So I have only 1 sku (the default sku) for this type of product.
I have a problem when i add an item to the cart (DiscreteOrderItem) because i calculate and set the new Price to the order item but the pricing workflow use the default sku price (0$) and update the price of the order item added.
I don't really know which is the best solution :
- create a sku for each order item ?
- override all the pricing workflow ?
- Other idea ?
Thank for your advice !
I would like to have your opinion on a new functionnality that I have to develop :
I must have the possibility to create some Virtual Products :
A virtual product haven't a fixed price. The price is defined by :
- A modality access (DAY, MONTH, YEAR...), for instance 10$ for 1 month
- A list of Product Options, each product option have a price by a modality access, (for instance CITY ==> 1 MONTH ==> 5$)
(so final price for one Month and the option city is ==> 10$ + 5$ = 15$)
So I have only 1 sku (the default sku) for this type of product.
I have a problem when i add an item to the cart (DiscreteOrderItem) because i calculate and set the new Price to the order item but the pricing workflow use the default sku price (0$) and update the price of the order item added.
I don't really know which is the best solution :
- create a sku for each order item ?
- override all the pricing workflow ?
- Other idea ?
Thank for your advice !