Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sort]

The tag has no usage guidance.

2
votes
1answer
20 views

Magento 2 :Sort Attributes Alphabetically in layered Navigation

I want to sort the attributes in layered navigation in the alphabetical order. http://i.prntscr.com/zDuYTVDbSWqv_507ew0JbQ.png Sort in the order as:Climate, Color, ... I tried to override the ...
1
vote
0answers
21 views

Sort product in research result in BO

how can I change the default sorting order from the position to the order of the category ? In my result, I have some product of the Category 2 that appeared before the Category 1 (probably because I'...
1
vote
1answer
23 views

Magento 2 - Add custom sort by option in cattegory page and make it default

I have added custom sort by option "random" for category page. I have used following code to add random option: I have used plugin . app/code/DL/CustomSortOption/etc/frontend/di.xml <config ...
3
votes
2answers
84 views

How to reorder street address on checkout page in magento 2?

I am getting every field unordered on checkout page but I added code to sort them and now everything is sorting but the street address is not getting sorted I am getting a street address field on top....
0
votes
0answers
23 views

How to change order of form fields in the checkout page in magento 2?

I want to change the order of form fields in the checkout page.I want to reorder these inout fields I referred this link Magento 2 - change the form fields sort order in checkout but I am getting ...
1
vote
0answers
17 views

How can I show all products in a top level category sorting by the child categories?

I have this category structure below: When I access Men page all products of child categories are there, but they are showing in a random mode, i believe. I want to show the products in the main ...
1
vote
1answer
69 views

how to sort stock by quantity in magento 2.3

In magento frontend i want to sort products by maximum quantity first to lower number of stock (Quantity sort in descending order) Please advise which module to be made and where to save the files i ...
0
votes
0answers
16 views

Sort Magento Topmenu (category name)

Is it possible to set a sort order for the default Magento topmenu block? I know it's possible to sort categories by dragging them in the order you want. But if you have multiple languages the order ...
0
votes
0answers
16 views

Catalog Search Results page - sort by price not working

Steps to reproduce: Search for a term and the results are displayed by default sorted by Relevance. Change the sort by parameter to Price and change the sort to ascending order. Results are not ...
0
votes
0answers
62 views

How to display categories in menu in the same order as in admin category tree?

I wonder if there way to have same sort order of categories in frontend menu as in admin panel category tree. I thought position attribute should be used for this goal, but I've found that categories ...
0
votes
1answer
25 views

Magento 2 how to import Product Sorting from external table?

We want to transfer the prodct Sorting from our M1 Shop to M2 Shop. We got a product list with their sorting withing the product categories which looks like this SKU Sort 123 1 234 2 345 ...
1
vote
0answers
113 views

How to sort a collection after load

I have a store collection. And it has the following fields [0] => Array ( [location_id] => 5 [title] => Los Angeles [description] => [status] => 1 ...
1
vote
0answers
29 views

How to change Product Listing Sort by custom select option? [closed]

In my module, I have created a select option with attributes. When I select an attribute, that attribute will be set to sort by default. How can I do that. I found Magento\Catalogfile\Block\Product\...
4
votes
0answers
30 views

How can i change order position of swatch in ascending Magento2

I want to change the sort order of size swatches. I have already put it in sort order from admin but I could not see any result in the front side. Actual Result Expected Result How can I sort it ...
1
vote
0answers
25 views

Magento 2.1.9 broken sorting

On this online store - https://nammu.com/ Sorting is not working, all time gives random result for sort I checked and changed the settings in the admin panel, in the category section and in the ...
0
votes
0answers
10 views

Magento get a product collection in an arbitrary order for Product List Page for default sort order in Magento2

I want to show default product list page with my arbitrary entity_id for products, Like the default collection will show with entity_id 3,15,9,12,6 etc as the default product is sorted by Name.
0
votes
1answer
807 views

Magento 2 layered navigation attribute option sort by name not number of products

My theme is child of magento blank. On default magento 2 layered navigation sort labels of attribute in layered navigation by Count number of products that exist with this attribute. I need to change ...
0
votes
2answers
26 views

Remove Free shipping option

Not sure how to remove free shipping option from sort by options. There is currently no free shipping products but it picks up all products, hence misleading. Thanks
0
votes
0answers
72 views

Magento 2 -Store view in a-z sort order in admin configuration

I want to display MultiStore view list in a-z sorted order.
0
votes
0answers
55 views

Magento 2.2 Checkout Input fields sortOrder not working properly

I'm new to magento 2.2 and I'm having a hard time grasping what the sortOrder does. I'm trying to reorder the input fields in the checkout page. Default Magento input field order (checkout page): 1....
1
vote
1answer
36 views

Set column admin grid become the first one to be sorted

I have a column in my custom admin grid like this: <column name="delivery_date_to" class="Magento\Ui\Component\Listing\Columns\Date" component="Magento_Ui/js/grid/columns/date"> <...
0
votes
1answer
89 views

Can't use sort or change view in https

My site: discountirrigation.com The SSL was recently applied to all pages of the site instead of just the checkout. However, I can not sort or change the product layout view or select a product ...
1
vote
2answers
173 views

Multiple sort collection

When I am in the listening product when I mark order alphabet by name I want to use two attributes. First my attribute, later name. This is my structure name product: my_attribute name_product I ...
0
votes
1answer
23 views

How order Customer Attributes?

Magento 2 EE has customer attribute option, I want to know what are the segments and how add attributes to desired places ?
4
votes
3answers
2k views

Magento 2 Product Sort by Price as High to low

I set default sort by price in admin but still i need to sort price from high to low. Magento by default sort it low to high. i try to find option in admin but can't find that. can any one tell me ...
3
votes
2answers
1k views

Sort By Price: Low to High & High to Low using Magento 2

I want to add filter option: Sort By Price, Low to High & High to Low in sort by box.
0
votes
1answer
587 views

Sort attribute values in Backend in custom order

I need to sort my custom attribute values in alphabetical order. Magento ver. 2.1.2 Now my options are sorted by eav_attribute_option.sort_order and i need to sort them by eav_attribute_option_value....
2
votes
1answer
205 views

How to set Sort Order for PayPal Credit?

I've been trying to set the sort order for PayPals pay with credit option. In the admin you have the option to Enable Paypal Credit but no sort order setting. Also in the database there's no sort ...
1
vote
1answer
402 views

Magento PDF Print out Totals Sort order

Is it possible to change the sort order of the totals in the PDF Print outs? I would like to have the "Minimum Order Bedrag" under "Subtotaal". I did manage to change it for the checkout page since ...
0
votes
1answer
3k views

Magento 2 : How to remove default sort by options and add custom sort by options?

I need a help ASAP related to sort by functionality in magento 2 1] I need to remove default sort by options. 2] I need to add my own sorting options. I tried a custom module in which I have ...
0
votes
0answers
211 views

Magento 2 : Sort by Doesn't Work on Catalogsearch Page

I have used ajax layered navigation plugin in which i am facing an issue like when I search for eg: samsung, it shows all the products of samsung on catalogSearch page. i.e, catalogsearch/result/?q=...
0
votes
2answers
638 views

Change category product sort order values

I want to change one time all sort order values of the products inside all categories, by using a php script. Currently all products inside all categories do got the value 1 for the sort order. I ...
2
votes
1answer
72 views

How to sort Response alphabetically in magento 1.9?

Here I wish to sort my response alphabetical to the college names : if($collegeid!=null) { $res['status'] = true; $res['message'] =...
0
votes
1answer
379 views

Magento related products sort order not working

For some reason the sort order for related products is not working. How can I sort the order asc to desc (low to high)? Here is my current /catalog/product/list/related.phtml file: <div class="...
4
votes
2answers
791 views

Magento 2.1 Product Sorting Alter name and price with asc and desc option

File path: app/design/frontend/<vendor_name>/<theme_name>/Magento_Catalog/templates/product/list/toolbar/sorter.phtml I want to alter Sorting options as Name to Alphabets ASC, ...
0
votes
1answer
409 views

Sorting Cross-Sell Products in Magento 2.1

If I retrieve the cross-sell products for a particular product: $_product->getCrossSellProductCollection(); How do I sort those products in the same order as the administrator has defined via the ...
0
votes
1answer
1k views

default sort by desc

I am trying to update the default sort options for list pages. Here's what I have in catalog.xml <reference name="product_list"> <action method="setAvailableOrders" json="value"&...
1
vote
0answers
32 views

Changing aprox 12000 image positions in magento automaticly?

I have a question. i have a magento webshop (1.9.2.2) containing aprox 12000 products. all these products have multiple images. Now we have the folowing problem: a lot of images have a wrong sort ...
1
vote
0answers
441 views

Magento 2: Update Billing Address info fields

Sometimes, when the checkout loads, the Region input field is out of position and is placed before all of the other inputs (before firstname input field) in both the Shipping Step (Shipping address) ...
0
votes
0answers
190 views

Sorting custom column renderer

I have this column i added. How can i sort it? i can click on sort, but well it doesnt really sort right. My grid looks like: $this->addColumn('sn_suppliers_noos', array( 'header' =&...
1
vote
0answers
847 views

Magento 2: How to define Order of Events?

In my events.xml I have so 4-5 Observer With Events. I would like to Define Their Call Order <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
3k views

How do i remove remove SORT BY Price, Position, Name in Magento 2.1?

How do I remove the SORT BY Price, Position, Name in Magento 2.1?
0
votes
2answers
569 views

How to Change Magento admin panel menu position?

I have created custom extension. But in admin panel it is display as a main menu on backend of magento, and i need to show it in system->configuration section. Go to following link i have upload ...
1
vote
1answer
556 views

Magento 1.9.2 Sort attribute by position

I have the following code but need to sort by the position value set for each attribute option in the back end. $this->_optionCollection = Mage::getResourceModel('attributepages/...
1
vote
1answer
329 views

Is there a way to change the position of a product for all attributes it belongs to?

So if you sort with best value it uses the products position attribute in the category to decide the position. The lower the higher it appears on the catalog page and search page. We have a custom ...
1
vote
1answer
1k views

magento sort by price not working fine

sort by price is not working in magento 1.9 my site has just configurable products only . when i checked code it was using below code to load products $_productCollection=$this->...
0
votes
1answer
544 views

Subcategories manually sort order from database

How can i arrange the sort order for subcategories from the database. I noticed that catalog_category_entity table has position column. Can i change the order from there ?
6
votes
4answers
8k views

How to Change Sort by option in Filter Magento 2

I want to custom sort by option in category Filter. Currently Magento 2 provide Position , Product Name , Price And Sorting option to low to high. But i need to change all sorting option Like Price ...
1
vote
0answers
568 views

Sort products by date DESC as the base sort order on category page?

For example, below products are created in sequential order: A - oldest, added 5 months ago B C D E F - newest, added today Magento's default sort order seems to be by Date ASC with the oldest ...
1
vote
0answers
97 views

How to sort a category by its subcategories

i need to sort my products on the category page by thier subcategories can someone tell me what i am doing wrong with this? $this->_productCollection = $layer->getProductCollection()->...