Smile-SA / elasticsuite

Smile ElasticSuite - Magento 2 merchandising and search engine built on ElasticSearch
https://elasticsuite.io
Open Software License 3.0
761 stars 341 forks source link

Categories: cannot manual sort out of stock products in back-end #3395

Closed tropilex closed 1 month ago

tropilex commented 1 month ago

Hello,

The out of stock products are not showed in the "Product List Preview and Sorting". So you cannot sort them manual.

So the problem is that when you manual sort the products and then new stock comes for a product that product is not sorted and will be showed last.

Magento setting Display Out of Stock Products = No

Screenshot 2024-09-25 at 09 29 19

Magento Version: 2.4.6-p7

ElasticSuite Version: 2.11.9 (but this is on older versions also)

Environment: Production

Steps to reproduce

  1. Go to Admin --> Catalog --> Category --> Select a category
  2. Try to sort out of stocks manual
  3. You don't have the option to manual sort out of stock products

Expected result

  1. A full list of all products in the category so you can sort all products.

Actual result

See the following screenshot. We have 9 products but only 3 available for manual sorting.

Screenshot 2024-09-24 at 21 56 15

tropilex commented 1 month ago

BTW: I tried this setting but that didn't help. It also says it's for a different 'problem' but you can always try. ;-)

Screenshot 2024-09-25 at 09 43 42

rbayet commented 1 month ago

The category preview shows you the list of products as they appeared in the currently selected or default store view. If you chose to configure Magento to hide out-of-stock products in the frontend, yes, they will also be hidden in the category preview in the backend.

Indeed the second option "Ignore manual positions ..." is more for if you choose to show out-of-stock products in the frontend but you don't want to have an "just been out-of-stock product" manually positioned in the frontend. In that case only, the category preview is no longer "exactly what the frontend is showing".

Have you considered the following combination ?

Regards,

tropilex commented 1 month ago

Hello @rbayet ,

Thanks for your reply. It is much appreciated!

Unfortunately we don't want to show out of stock products. Then we get too many questions about when the product will be back in stock.

I actually find it quite weird that you can only sort manually if you happen to have all products in stock at that specific moment. Otherwise the function is quite useless. This was also not necessary with the regular Position.

The only solution I see is to set ‘Display Out Of Stock’ to Yes. Then manually rank the category and then set ‘Display Out Of Stock’ to No again. And then hope it saves the positions correctly, even in the event of any minor change.

Is there any way to get the native Magento Position back again? That it is a bit more visually appealing now and you then drag and drop is unnecessary for us.

Regards, Kees

rbayet commented 1 month ago

Hello @tropilex,

You can try the following :

Native positioning feature of Magento is back : image

Products correctly sorted in the frontend : image

Cheers,

tropilex commented 1 month ago

Thanks. We will look in to it if this is a good solution for us!