-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catalog product list widget sort order configured in backend does not match in frontend #27126
Comments
Hi @BorisovskiP. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @BorisovskiP do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @shikhamis11. Thank you for working on this issue.
|
@magento give me 2.4-develop instance |
Hi @shikhamis11. Thank you for your request. I'm working on Magento 2.4-develop instance for you |
Hi @shikhamis11, here is your Magento instance. |
@shikhamis11 Can you tell me whats the status of this issue? |
hello @BorisovskiP |
hello @shikhamis11, |
I will discuss this issue with @sdzhepa and update the progress here |
Any updates on the issue @shikhamis11 ? |
Could you please help with the investigation and confirmation process for this issue? |
Hi @engcom-Alfa. Thank you for working on this issue.
|
@engcom-Alfa Any updates on this issue? |
Hi @BorisovskiP. Sorry for the delay. We've checked the issue and can conclude that indeed, the sort order by position has not been preserved Actual Result: But we are not quite sure how sorting should be set for widgets. @BorisovskiP What do you think about it? |
@engcom-Alfa |
@engcom-Alfa I think that by default, sort by position should be applied, but having the possibility to set the sort order in the widget does sound nice. |
@engcom-Alfa what is the current status of this issue? Do you have any updates? |
@engcom-Alfa Any news regarding the issue? |
@shikhamis11 @magento-engcom-team : Is there any update? Thanks for your efforts until. I would really like to get this issue fixed. |
@engcom-Hotel is this issue fixed? I tried to open the PR you referenced in #27126 (comment) but it does not exist. |
Hello @BorisovskiP, I think this is due to some access required. I can see that the PR is merged. Thanks |
Hello @engcom-Hotel, could you tell me in which version has the PR been merged? If its not in 2.4.4, could you please point me to the place where the changes have been made so that we can apply a patch to the current version of Magento that we use that still has the issue present? |
Hello @BorisovskiP, We are re-checking the previous activities on this, will update u soon. Thanks |
Hi @engcom-November. Thank you for working on this issue.
|
Hi @BorisovskiP , With normal installation: To conclude the same: we observe that as under page builder the default behaviour for condition is newest first, the same should be applied under CMS page widget option which makes us suggest that this should be the expected behaviour and the one valid. Resulting we are closing this issue. Kindly reopen/create new issue if you are still facing any issues. |
Where can we open a feature request for this? Right now there seems to be no way to specify an order for products shown in a "Catalog Products List" widget. But I strongly suggest adding this, as a merchant might want to show selected products on a CMS page with a specific order, e.g. the most important product first. |
emphasized text<!---
Please review our guidelines before adding a new issue: https://github.com/magento/magento2/wiki/Issue-reporting-guidelines
Fields marked with (*) are required. Please don't remove the template.
--]
When configuring products in
Catalog->Category->Products
in Category in the admin, the same products are not sorted by their configured order.When
setVisibility
is called (Magento\CatalogWidget\Block\Product\ProductsList::createCollection()
line 308), it setscat*index.category*id=3
.Generated query is as followed:
Preconditions (*)
[!---
Provide the exact Magento version (example: 2.3.2) and any important information on the environment where bug is reproducible.
--]
Steps to reproduce (*)
[!---
Important: Provide a set of clear steps to reproduce this bug. We can not provide support without clear instructions on how to reproduce.
-->
Create category (
Catalog -> Categories -> Add Root Category
)Rename category to TestCategory
Add 3 or more products to Category (
Catalog-> Products -> Select/Edit -> Categories -> TestCategory -> Done -> Save)
Open
Catalog -> Categories -> TestCategory -> Products
in CategorySet position on productX to 1, Set position on productY to 2 , Set position on productZ to 3 and Save
Add CMS Page (
Content -> Page -> Add New Page -> PageTitle = TestPage)
Set Content on TestPage to the following (change the category ID; template can be chosen freely)
widget type="Magento\CatalogWidget\Block\Product\ProductsList" show*pager="0" products_count="10" template="Magento_CatalogWidget::product/widget/content/home-grid.phtml" **conditions_encoded="<sup>[{{1
:[type
:Magento](|CatalogWidget||Model||Rule||Condition||Combine
,aggregator
:all
,value
:1
,new_child
:``],1--1
:[`type`:`Magento||CatalogWidget||Model||Rule||Condition||Product`,`attribute`:`category*ids`,`operator`:`==`,`value`:`1`])"}}Insert widget with widget type - Catalog Product List and condition - Category is
Expected result (*)
The text was updated successfully, but these errors were encountered: