You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2015/01/09 16:52:34 UTC

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

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

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

Quoting Mridul to keep the converation clear (comment deleted, see http://markmail.org/message/4242edmowb4j4hfz)
{quote}
 I doubt the validity of this issue and OFBIZ-5767. Currency in shopping cart is set from product store and this action has a very specific purpose. Product Store defines the business rule for the currency order would be received in irrespective of the currency displayed to the user. When the currency in shopping cart is set using product store it makes sure that the above business rule is applied and order is received in correct currency.
Currency set in session is only for displaying the locale specific prices and should not be used as a primary source or an overriding factor for setting shopping cart currency. Setting shopping cart currency from session may disturb existing order workflow by violating certain business conditions.
If the orders has to be received in multiple currency then that would pretty much be a separate company and/or product store setup.

Thoughts from other community members would be helpful in resolving this issue.
{quote}

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