Adobe AEM - Hybris product price information | Community
Skip to main content
yuriiv54804449
Level 2
October 16, 2015
Solved

Adobe AEM - Hybris product price information

  • October 16, 2015
  • 1 reply
  • 699 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

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

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

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