Closed ioweb-gr closed 1 week ago
Hi @ioweb-gr. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.
@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
I wanted to add that even changing \Magento\Catalog\Helper\Product\ProductList::DEFAULT_SORT_DIRECTION to "desc" doesn't work for me. Direction changes, but the user is unable to change it back to any other option
Hello @ioweb-gr,
Thanks for the report and collaboration!
We have tried to reproduce the issue by upgrading the Magento instance from 2.4.6 to 2.4.7-p3 but the issue is not reproducible for us. Refer to the below screenshots below:
Magento Instance 2.4.6
Category Default Sorting as Descending
Category Default Sorting as Descending
catalog_category_view.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<referenceBlock class="Magento\Catalog\Block\Product\ListProduct" name="category.products.list">
<action method="setDefaultDirection">
<argument name="dir" xsi:type="string">desc</argument>
</action>
</referenceBlock>
</referenceContainer>
</body>
</page>
Please let us know if we missed anything.
Thanks
Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @engcom-Hotel , I think you missed steps 3 and 4. From the screenshots your provide it doesn't seem like you tried to change the direction to asc by clicking on the arrow link. Thank you for looking into this.
Hello @ioweb-gr,
We have tried that as well. But the issue is still not reproducible for us. Please have a look at the below screencast: Category-2.webm
Let us know if we missed anything.
Thanks
I also tested this again on a fresh installation of 2.4.7 and it doesn't happen, so I can guess it's most likely a conflict with a third party module even though only a couple are installed. Thank you for verifying and let's close this issue
Summary
After upgrading to 2.4.7 we lost the ability to change the default sort order of products in the catalog to descending
To reproduce
https://github.com/user-attachments/assets/4eb77b0c-6bbb-4ee5-8ad1-7512fe4163b3
Examples
Previously this snippet would correctly set the default direction in 2.4.6 but in 2.4.7 it prevents changing the direction
Proposed solution
No response
Release note
No response
Triage and priority