Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [sort]

The tag has no usage guidance.

0
votes
0answers
14 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
19 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
50 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
27 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
21 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
23 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
8 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
567 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
55 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
30 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
27 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
40 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
129 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
0answers
79 views

Magento 1.9: Sorting doesn't work on pagination

I have installed a custom module on Magento 1.9 where you can add some posts to a page (like a blog). When I go on the posts list page I want the posts to be displayed by sort_order(this value is set ...
0
votes
1answer
21 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
1k 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
531 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
195 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
373 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
2k 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
193 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
602 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
69 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
372 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
727 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
396 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
30 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
426 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
177 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
813 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
536 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
502 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
293 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
523 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
544 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
96 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()->...
1
vote
1answer
645 views

Add custom sort to sort products using name and price both

How can i add a custom sort to sort products in a category using the name and price both?
0
votes
1answer
43 views

Change sorting new page product

I have a product page /new with a product list sorting by "position" by default. I don't like this sorting because the list never change... Is there a mean to change this sort only to this page ...
0
votes
1answer
2k views

Sort collection by custom attributes

I have following module for courses added on my magento store class Abhi_Courses_Block_Course_List extends Mage_Core_Block_Template { public function __construct() { parent::...
0
votes
1answer
246 views

Alternative Product image when page loads

OK this may sound like a very strange question but here I go. Our inventory and product listings are managed outside of magento (Linnworks) to be exact. Apparently there is no API connection for the ...
1
vote
1answer
467 views

How to sort the Attribute Set list on the create new product

Can anyone tell me how to sort the order of attribute sets when creating new products in Magento. From question: How to sort the Attribute Set list on the Manage Products Grid dropdown menu? I can ...
0
votes
1answer
649 views

How to Remove the items from a category automatically based on date?

I have created one category for displaying new arrivals and have added all items under this category. Now i need to delete old items (30 days old & 7 days old) from that category. This should ...
14
votes
3answers
12k views

Magento 2 custom grid column sort order

I made a custom grid in Magento admin using the UI Component. Basically, all is working fine, besides the order of the columns that is not showing right. as you can see the action column is right at ...