[ 
https://issues.apache.org/jira/browse/OFBIZ-2741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742566#action_12742566
 ] 

Joe Eckard commented on OFBIZ-2741:
-----------------------------------

This bug is still present - the line:

cart.setItemShipGroupQty(item, quantity, 0);

in the applied patch can be reverted - it is unnecessary because 
setItemShipGroupQty() is already called within item.setQuantity(), and it 
doesn't address the problem.

The code that is clearing the shipping contact mech when an item is added (or 
the quantity is changed) is ShoppingCart.clearItemShipInfo() followed directly 
by ShoppingCart.cleanUpShipGroups(). This happens when resetShipGroups is set 
to true, which is the default value when calling setQuantity() on a 
ShoppingCartItem.

Also, it only seems to do this when there is only 1 line item in the cart - 
when there are multiple line items, it doesn't clear the shipping contact mech.

I was working on a patch but ran out of time, adding notes here so I can come 
back to it or someone else can take a quick look.

> Information of shipping method and sales tax are remove from cart when we 
> update shopping cart item quantity.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2741
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2741
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/ecommerce
>    Affects Versions: Release Branch 9.04, SVN trunk
>            Reporter: Arun Patidar
>            Assignee: Vikas Mayur
>            Priority: Minor
>         Attachments: OFBIZ-2741.patch, OFBIZ-2741.patch, sci-patch.txt
>
>
> On update cart item quantity after selecting shipping method, Informations of 
> shipping method and sales tax  removes if there is only one item in cart.

-- 
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