[ 
https://issues.apache.org/jira/browse/OFBIZ-1453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548189
 ] 

Bilgin Ibryam commented on OFBIZ-1453:
--------------------------------------

Hi all,

this is a full patch ready for review and testing. It allows to save product 
configuration and restore it later. Here is the stating discussion for it 
http://www.nabble.com/Enhance-configurable-%28AGGREGATED%29-products-tf4888953.html

I added new configId field to OrderItem, QuoteItem, CustRequestItem, 
ShoppingListItem and CartAbandonedLine entities.
These are all the places, where products can be added (configurable products 
could be also added, but w/o saving the configuration, they become useless).
I added also a new field called configId to ProductConfigWrapper class. This 
field will stores the persisted configuration Id.

How it works:
When user adds the configured product to shopping cart, the configuration is 
persisted and ProductConfigWrapper.configId gets the configId. Then the 
configurable product(and its configId) can be added to shopping list, Cust 
Request, Quote or to CartAbandonedLine entity when session times out, or to 
orderItem, when order is created. Later, when adding item back to cart (from 
shopping list, quote, cust request, existing order) the ProductConfigWrapper 
objct is restored through configId field.
This allows us to edit orders containing configurable products (right now it is 
not possible!), to create new order from existing one, to create Cust request, 
then Quote from Cust request...

Future ideas for improvements:
1) When saving the ProductConfigWrapper, it is possible first to check for 
existing saved configurations, and if they are the same, to return its configId 
instead of creating new records with the same configuration...
2) It is possible to add products to shopping list directly even w/o shopping 
cart (for example from party manager screens). There ProductConfigWrapper is 
not created, and we can create and store the default product configuration. 
This is dependent from OFBIZ-1393

I'd love to get your feedback.

Regards,
Bilgin Ibryam

> store/load possibility for AGGREGATED product configurations
> ------------------------------------------------------------
>
>                 Key: OFBIZ-1453
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1453
>             Project: OFBiz
>          Issue Type: Improvement
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: aggregated.patch, aggregated_full_for_review.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to