[jira] [Commented] (OFBIZ-5765) missing request map for changing currency

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-5765) missing request map for changing currency

Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-5765:
----------------------------------------

I thought agree with Jossip that there are some inconsistencies. But I don't see how the attached patch could solve them in the backend since it's a ecommerce request map. It could be still applied for ecommerce where people could use something like proposed in OFBIZ-5767. But this should be done w/o introducing regressions. So for now I close this issue as incomplete. It should be reopened or (a) new one/s created when the issue/s will be completely and appropriately addressed

> missing request map for changing currency
> -----------------------------------------
>
>                 Key: OFBIZ-5765
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5765
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/ecommerce
>    Affects Versions: 12.04.04, 12.04.05
>            Reporter: Josip Almasi
>            Assignee: Jacques Le Roux
>         Attachments: ecommerce-multicurrency.patch
>
>
> By analyzing eccommerce controller.xml and appropriate java code, I found out there is a way to set session currency, with a get request:
> ECOMMERCEURL/control/setSessionCurrencyUom?currencyUom=UOMID
> However, shopping cart igores session currency. That can be demonstrated by changing minicart.ftl, like this:
> <div id="minicart">
>     <h3>${uiLabelMap.OrderCartSummary} ${Request.currencyUomId} ${shoppingCart.getCurrency()}  <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/></h3>
> I also found methods in place to set shopping cart currency, just, they are were mapped to any requests in eccommerce controller.xml.
> The patch to add mapping attached.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)