Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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.