Expand my Community achievements bar.

SOLVED

Adobe AEM - Hybris product price information

Avatar

Level 3

In the tutorial http://docs.adobe.com/docs/en/cq/current/ecommerce/eCommerce-hybris.html#Data%20Synchronization  we can read the following:

Highly volatile data, such as price information, is retrieved from the commerce engine for each page request.

Does it mean that on each product details request adobe aem queries hybris server for price?

in product.jsp we have the following:

CommerceService commerceService = resource.adaptTo(CommerceService.class); CommerceSession session = commerceService.login(slingRequest, slingResponse); String productPrice = session.getProductPrice(baseProduct).replaceAll("[^0-9\\.]", "");

Is it correct that session.getProductPrice will query hybris server?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Yes it will query hybris server. Please note the method you are looking is deprecated.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Yes it will query hybris server. Please note the method you are looking is deprecated.