Enhance configurable (AGGREGATED) products
Posted by Bilgin Ibryam on Nov 28, 2007; 2:45pm
URL: http://ofbiz.116.s1.nabble.com/Enhance-configurable-AGGREGATED-products-tp186096.html
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