ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny Trunk (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (OFBIZ-10842) No userLogin given in calculateProductPrice service call context
Date Wed, 27 Feb 2019 08:30:00 GMT

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

Danny Trunk edited comment on OFBIZ-10842 at 2/27/19 8:29 AM:



priceContext.put("userLogin", cart.getUserLogin());`

{{{code}}} in ShoppingCartItem#updatePrice should do the trick. Same for


priceContext.put("autoUserLogin", cart.getAutoUserLogin());


which is also missing.

was (Author: dtrunk90):
Adding `priceContext.put("userLogin", cart.getUserLogin());` in `ShoppingCartItem#updatePrice`
should do the trick. Same for `priceContext.put("autoUserLogin", cart.getAutoUserLogin());`
which is also missing.

> No userLogin given in calculateProductPrice service call context
> ----------------------------------------------------------------
>                 Key: OFBIZ-10842
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10842
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order, product
>    Affects Versions: Trunk
>            Reporter: Danny Trunk
>            Priority: Major
> The call context for calculateProductPrice doesn't contain the userLogin:
> [https://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartItem.java?view=markup#l1195]
> As this is needed in the customPriceCalcService:
> [https://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/price/PriceServices.java?view=markup#l347]
> So currently there's no chance to get the user information in a custom price calc service.

This message was sent by Atlassian JIRA

View raw message