Hi all,
I tried to use configurable sku. I was able to create configurable commerce items and add SubSkuCommerceItem to the ConfigurableCommerceItem by extending the CartModifierFormHandler. But I am facing problems with getting the price calculated correctly. There is some transaction error occurring while calling the runProcessRepriceOrder(Order pOrder, PricingModelHolder pPricingModels, Locale pLocale, RepositoryItem pProfile, Map pExtraParameters) method of PurchaseProcessFormHandler from the extended CartModifierFormHandler’s addConfigurableItemToOrder method.
But one thing I noticed is that when I comment the call to the runProcessRepriceOrder(Order pOrder, PricingModelHolder pPricingModels, Locale pLocale, RepositoryItem pProfile, Map pExtraParameters) method of PurchaseProcessFormHandler from the extended CartModifierFormHandler’s addConfigurableItemToOrder method I was able to add configurable sku to the cart, but the price is shown as zero.
But when we logout and then login and go to the cart page, the price is getting correctly displayed. I.e. the price of the configurable sku is added with the price of the configurable options in that configurable sku.
Could some one help me with this.