[ 
https://issues.apache.org/jira/browse/OFBIZ-5765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Josip Almasi updated OFBIZ-5765:
--------------------------------
    Description: 
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:

{monospaced}
<div id="minicart">
    <h3>${uiLabelMap.OrderCartSummary} ${Request.currencyUomId} 
${shoppingCart.getCurrency()}  <@ofbizCurrency 
amount=shoppingCart.getDisplayGrandTotal() 
isoCode=shoppingCart.getCurrency()/></h3>
{monospaced}

I also found methods in place to set shopping cart currency, just, they are 
were mapped to any requests in eccommerce controller.xml.



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

{{monospaced}}
<div id="minicart">
    <h3>${uiLabelMap.OrderCartSummary} ${Request.currencyUomId} 
${shoppingCart.getCurrency()}  <@ofbizCurrency 
amount=shoppingCart.getDisplayGrandTotal() 
isoCode=shoppingCart.getCurrency()/></h3>
{{monospaced}}

I also found methods in place to set shopping cart currency, just, they are 
were mapped to any requests in eccommerce controller.xml.




> 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
>
> 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:
> {monospaced}
> <div id="minicart">
>     <h3>${uiLabelMap.OrderCartSummary} ${Request.currencyUomId} 
> ${shoppingCart.getCurrency()}  <@ofbizCurrency 
> amount=shoppingCart.getDisplayGrandTotal() 
> isoCode=shoppingCart.getCurrency()/></h3>
> {monospaced}
> I also found methods in place to set shopping cart currency, just, they are 
> were mapped to any requests in eccommerce controller.xml.



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

Reply via email to