[MSHOP-197] Backward compatibility for Shop module between 2.3.x and 2.1.x Created: 14/Jul/15  Updated: 16/Jul/15  Resolved: 15/Jul/15

Status: Resolved
Project: Magnolia Shop (closed)
Component/s: None
Affects Version/s: 2.3.0
Fix Version/s: 2.3.0

Type: Task Priority: Neutral
Reporter: Viet Nguyen Assignee: Trung Luu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 2d 1h
Original Estimate: 1d
Environment:

development


Attachments: Text File modify_example.patch    
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   
  • We need backward compatibility for Shop module and now when using it, the check our work flow does not work anymore. This issue need to be fixed before making a release!


 Comments   
Comment by Viet Nguyen [ 14/Jul/15 ]
  • First investigation figured out that we need to use ShopUtil.getShoppingCart(ShopUtil.getShopName()) instead of ShopUtil.getShoppingCart() to get appropriate 'cart' object. A bug in ShopStartStepFormEngine.getFormStateToken()
Comment by Trung Luu [ 15/Jul/15 ]
  • Compile error: correct to new package name if extends from model class of shop module
  • Cart not found: change ShopUtil.getShoppingCart() method to ShopUtil.getShoppingCart(ShopUtil.getShopName());
  • Can not save form data into jcr: update save forms data processor follow new process in shop module
  • Using MgnlContext.removeAttribute(shopName + "_" + ShopUtil.ATTRIBUTE_SHOPPINGCART)
    when throw exception for removing shopping cart
    => Refer to attach file for more detail : modify_example.patch
Generated at Mon Feb 12 07:10:18 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.