Currently, when an order is created in ofbiz, a production run is generated
for every AGGREGATED product (through "createProductionRunFromConfiguration"
service) and the product configuration (kept by ProductConfigWrapper) is
lost.

So, orders that contains configurable products cannot be edited(canceling,
updating, appending items)!
The problem occurs in loadCartFromOrder service called while editing
existing orders. The configuration cannot be reproduced from order item,
product cannot be configured properly and cannot be added to cart.

My initial idea was to reproduce configuration from the production run.
After checking the code, it looks like not possible to me...
Also in createProductionRunFromConfiguration method  is saw this comment:
        if (config == null && configId != null) {
                // TODO: load the configuration
                return ServiceUtil.returnError("Operation not yet implemented");
        }

Probably is needed a new entity to save the configuration before creating
the production run and loosing ProductConfigWrapper?
What should contain this new entity? Is there any similar example/pattern in
ofbiz?
Do you have any different ideas or suggestions to implement this?

I'd love to get your feedback and implement this in ofbiz.

Thanks,
Bilgin Ibryam
-- 
View this message in context: 
http://www.nabble.com/Enhance-configurable-%28AGGREGATED%29-products-tf4888953.html#a13993655
Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Reply via email to