Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM 5.6 | ecommerce | currency | locale

Avatar

Level 2

This is a second question related to our bespoke ecommerce implementation. We applied this tutorial but we have a question on the currency. When we change the currency in our class (extending the AbstractJcrCommerceSession class) the amounts are shown correctly on the first page but not on the second page (please see attached screenshot). 

Please see a snippet of our code below. AFAIK, there are no getters and setters for locale (and tax-rate) but overriding the property after having invoked the base constructor should do the trick .Am I missing something? 

many thanks in advance, 

Wim

 

public DCCommerceSessionImpl( AbstractJcrCommerceService commerceService, SlingHttpServletRequest request, SlingHttpServletResponse response, Resource resource) throws CommerceException { super(commerceService, request, response, resource); LOG.info(">>> DCCommerceSessionImpl() started"); locale = Locale.GERMANY; PRODUCT_TAX_RATE = new BigDecimal("0.21"); this.commerceService = commerceService; this.request = request; this.response = response; this.resource = resource; this.resolver = resource.getResourceResolver();
1 Accepted Solution

Avatar

Correct answer by
Level 10

If the amounts are correct on page 1 and not page 2 - that sounds like a product bug. Please log a ticket here: 

http://helpx.adobe.com/marketing-cloud/experience-manager.html

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

If the amounts are correct on page 1 and not page 2 - that sounds like a product bug. Please log a ticket here: 

http://helpx.adobe.com/marketing-cloud/experience-manager.html