cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sorting product codes for Product Carousel

former_member696137
Discoverer
0 Likes
513

Hi all,

While using ProductCarouselComponent, products are sorted if a product is added or removed. However, if no product is added and removed, and the products are re-ordered in the list, product codes are not updated accordingly. We want for products to be ordered on drag and drop reordering, and show in order in the frontend accordingly. However, I have no idea how to do this, or where it is triggered. ProductCarousel has a service but I couldn't find anything of use. how can I achieve this?

Hybris version is 1905

screen-shot-2020-09-03-at-173541.png

Accepted Solutions (0)

Answers (1)

Answers (1)

mhoumaid
Discoverer
0 Likes

Hello,

The easiest way in think, is to implement a ,PrepareInterceptor<ProductCarouselComponent>, before saving modification on your component, in which you can intercept the new order maked by drag&drop on the list of products, and put this new order in the list of product codes.

Thanks