Login  Register

Get the order adjustment name thru locale

Posted by h3ct0r on Jun 13, 2011; 3:50pm
URL: http://ofbiz.116.s1.nabble.com/Get-the-order-adjustment-name-thru-locale-tp3594139.html

Hi, i would like to know if there a way to show the adjustment type from an order in several languajes. For example in /specialpurpose/ecommerce/webapp/ecommerce/order/dorderitems.ftl :

          <#list headerAdjustmentsToShow as orderHeaderAdjustment>
                          <div class="tabletext">${localOrderReadHelper.getAdjustmentType(orderHeaderAdjustment)}</div>              <div class="tabletext"><@ofbizCurrency amount=localOrderReadHelper.getOrderAdjustmentTotal(orderHeaderAdjustment) isoCode=currencyUomId/></div>              <#if maySelectItems?default("N") == "Y"> </#if>
                      </#list>

If the order adjustment is a promotion, it always write 'promotion' even if the languaje of the browser or the selected locale in java is another languaje diferent from english.

Sorry for my bad english and thank you very much.