In Magento 2 how I can set default product sort direction (asc/desc) for specific categories through layout update xml of
Manage Categories ->Specific Category-> Design section.
Like I did in screenshot... But its not working :(
How to set default product sort direction (asc/desc) for few categories only through xml
4k views Asked by Nafee At
1
There are 1 answers
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in XML
- Postgres && statement Error in Mybatis Mapper?
- Sorting items after building an XML feed?
- C# XML ModelBinding - ASP.NET Core 8 Web API - required field not found
- How can I create an automatic table of contents in docx without the text being bold?
- Odoo 16 Make Fields Readonly Using XPath
- Using similar tags for different objects in XML
- Android Studio problem like gradle sync project failed and plugin error, version 2023.2.1 Iguana
- error: cannot find symbol View root = inflater.inflate(R.layout.toolbar, parent, false);
- Android camera application restriction to 12 mp
- Azure Data Factory Copy Activity Only Importing First Row of XML file
- I am not able to remove space below the navigation view icon in android studio. What;s wrong with code?
- Field can be converted to a local variable ,convert field to local variable in onCreate method
- Deserialize XML with optional different name
- Retrieve tags from xml using python
- Getting attribute from xml and printing it error
Related Questions in MAGENTO
- file_get_contents(): file created in the system's temporary directory error in Magento
- Decrypting Magento 2 customer passwords using email for migration to Shopify
- Is it possible in magento multi store website to get all category of all the store with single api
- Venia pwa + magento 2 categories and products issue
- Magento Rest Api Recaptcha Validation Failed Error
- Credit card fields showing under PayPal Express Checkout
- Unable to create a Specific coupon code in magento using REST API
- Mutagen copy multiple times project (4 copy of the same project)
- Magento 2 , query insert/update statments not binding with '?' variables
- Warning: session_id(): Cannot change session id when session is active
- System.ServiceModel.CommunicationException on WCF Web Service
- [{message: "Cannot query field "route" on type "Query".", extensions: {category: "graphql"},…}]
- Data written to PVC using job pod is not available in main POD
- Magento Order and Product pagination
- Trying to Upgrade Magento from ver. 2.3.4 to ver. 2.4.6 and causing Composer installation error
Related Questions in MAGENTO2
- Force Magento 2's checkout accordion to be open on first step, closed on second step
- get list of items from sku magento 2 programatically
- Decrypting Magento 2 customer passwords using email for migration to Shopify
- Venia pwa + magento 2 categories and products issue
- Magretno 2 how to send the request of place order when user checked on the check box of terms and condtion
- Magento Rest Api Recaptcha Validation Failed Error
- How to change server Elasticsearch version?
- Difficulty installing Magento2
- problem to include fontawesome 6 on magento 2
- Mutagen copy multiple times project (4 copy of the same project)
- Magento 2 Bulk endpoint fails
- How to setdata of custom dynamicrows ui component from category_form.xml in magento 2
- setup:di:compile error after upgrading to Magento 2.4.6
- magento 2.4.6 styles overide issue
- Magento2 : How to add custom validation to the dynamic rows created using UI component
Related Questions in MAGENTO-LAYOUT-XML
- Magento 2: How to add a credit card logo/image before amazon pay button on the checkout page?
- How to show template of custom module in Magento 2.1.8 - Not Working
- Magento 2, bring category description at bottom of category page via update layout xml
- Remove canonical link in Magento 1.9.3.x
- How to create new tab in product create page for magento 1.9
- Magento 2 + how to include Bootstrap CSS on top position
- Magento layout block
- How to set default product sort direction (asc/desc) for few categories only through xml
- File "/i18n/en_US.csv" does not exist in catalog page magento 2
- Where is Magento's data for custom modules in admin panel contained?
- Magento 2 - override layout.xml file within module
- Magento: loading frontent layout
- In Magento 2 how can I get a container layout element from name?
- In Magento 2 how can I retrieve a container from layout?
- Create Custom layout module
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You just need to change
referenceblockname to "product_list_toolbar". because we dont have setDefaultDirection method in Magento\Catalog\Block\Product\ListProduct class. after update your code will become like thisplease let me know if you have any queries.