Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5765

missing request map for changing currency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 12.04.04, 12.04.05
    • None
    • ecommerce
    • None

    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:

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

      Attachments

        1. ecommerce-multicurrency.patch
          0.9 kB
          Josip Almasi

        Issue Links

          Activity

            People

              jleroux Jacques Le Roux
              jalmasi Josip Almasi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: