[
https://issues.apache.org/jira/browse/OFBIZ-5765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mridul Pathak updated OFBIZ-5765:
---------------------------------
Comment: was deleted
(was: 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.)
> 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: Ashish Vijaywargiya
> 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)