cancel
Showing results for 
Search instead for 
Did you mean: 

What is the API method for adding a carousel of products in a product page in Hybris e-commerce

0 Kudos

Hi,

Let's say I have a product page like this one

below the main image, you'll see a section called: PRODUCTOS COMPLEMENTARIOS, it has a product with a picture, description, price, etc.

below there is a carousel with the name PRODUCTOS SIMILARES, and the same thing, pictures, descriptions, etc.

We want to control in a programmatic fashion these elements. Basically when the product page is loaded, we need to send a request to our API, and we will return a set of products (images, descriptions, prices, etc) that are going to be loaded in these sections.

Could you please guide me on how to accomplish this?

Accepted Solutions (0)

Answers (1)

Answers (1)

ruchi_tripathi
Explorer

Hi Rcmy,

In product details API itself present in ProductsController, you will get product references. You can configure the list of products as product references in backoffice or through impex and retrieve it via API.

Or you can use /{productCode}/references API to fetch just the references excluding the other product details

Thanks,

Ruchi