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

The tag has no usage guidance.

0
votes
0answers
6 views

Sorting does not work in customized Zenon category view after upgrade of Magento 2.2.1 to 2.2.6

I have customized category and subcategory view by extension Zenon on Magento 2.2. store. After update from 2.2.1 to 2.2.6 the sorting in this category view has stopped working. I can change position ...
0
votes
0answers
13 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 ...
0
votes
0answers
9 views

Sort by Filter in category search page is not working in mobile devices

I have Edited the drop down of sort by the filter. It Works fine in PLP page. but not working in category search page. <?php /** * Copyright © Magento, Inc. All rights reserved. * See ...
0
votes
0answers
17 views

Mangento2 How to set a created_at (newest) sorter default

I have a add new sort option "Newest" into the category list page . it is worked. How to i set into the default sorting option because it is admin reserved attribute we can not change it.
1
vote
2answers
54 views

How to Shuffle Product Collection in Magento 2?

I am getting products collection form multiple categories. I want to shuffle products everytime when function getProductCollection() is called. My function is: public function getProductCollection($...
0
votes
1answer
82 views

Desperately need Help with a task for a test in Magento 1.9.3

So guys, I'm doing this task for something very important to me but now I'm completely stuck. I need to fulfill this task: Create a module to output a nice list of the products that have a value ...
2
votes
0answers
34 views

Best seller sort order pagination query string not working correctly

our website having two sort order. one is position and another is best seller. but when i select the best seller sort order that time showing all the best seller products. but problem when select ...
1
vote
0answers
38 views

While sorting my product collection automatically shuffeling

For Magento 2.2 I'm using:- $categoryId=185; $ct = $_objectManager->create('Magento\Catalog\Model\Category')->load($categoryId); $collections = $ct->getProductCollection() ...
0
votes
0answers
27 views

Is the Magento Catalog List Product widget supports “Sort by Position”?

We have used the Catalog List Product widget to display the products on the home page of our site. But the products are not displaying as per the position value which we were given for the products ...
0
votes
1answer
31 views

Product List Issue

I'm having a problem with the product list in Magento 2. For the most part everything is working properly, but occasionally when I change the sort order to 'desc' or change the sort criteria to 'name' ...
0
votes
2answers
19 views

how to remove white space from product name during custom product collection?

I am getting stuck with white space in set order during product collection in magento 2. I want to get product details with ascending order via name but name has white space. I have removed white ...
1
vote
1answer
22 views

Magento 1 : Sort Product Listing By New?

Working on magento 1 website. I want to sort the product sorting by new in all product categories. So that when any new product is added that shows on first. Can i be please guided how can same be ...
2
votes
1answer
104 views

How to restore 'sort by position' option for category sorting

In our store the sort by position (ie 'Best Value') option is not being shown when viewing categories. I believe this was removed/hidden by someone in the past but now we want to show it again. I ...
0
votes
0answers
61 views

Override Toolbar.php having issue for catalog page magento2

I have done the following: registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, '...
2
votes
2answers
186 views

Remove option “Relevance” from sort by

When I do any search we can see a list of products with the field "Sort by", but I need get rid of the option "Relevance": If I go to a category from menu I don't have this sorter. Any idea?
0
votes
0answers
12 views

Custom attribute appears in listing 'sort by' when not set for products

I have a custom attribute that is only applicable to a certain category of products (and only configurables). It is appearing in the 'sort by' select on all category product listings, not just those ...
0
votes
2answers
47 views

Magento2 : How can to get product collection by sorting with stock status i.e Asc,Decs

I have all product collection but I want it sort/order_by by Stock Status.for out-of-stock.
0
votes
1answer
32 views

How to set the order of the query as descending

I have created a query that would allow me to sort my products based on the quantity they have been ordered. But when I print the query, the quantity ordered is coming in Ascending order. I want to ...
0
votes
1answer
22 views

When sort the products,product name displayed as ' UNDEFINED' magento1

When sort the products,product name displayed as ' UNDEFINED' magento1.How to solve this.?
0
votes
0answers
258 views

How to get all new products by 'Set Product as New From' in NEW Category with sorting etc features (magento 2)?

I did something like that: Magento 2: How to show New Products in a particular Category? But this solution is not enough. The products (block) are over left menu and there are no additional buttons ...
0
votes
0answers
104 views

Category product sorting in backend not working magento 2.1.8!

I want to sort product of a category, I have assign position of those products within the category in admin. But the position is not working. How to fix the product position in admin
2
votes
3answers
581 views

Magento 2 filtering product collection and sorting

Considering below I can display products with true value of my custom attribute in ascending order based on position. How can I have products with false right after these in ascending too? if ($...
0
votes
1answer
2k views

Magento 2.2 - Sorting product in category page by position not working

I'm trying sort products in category page by position. But Magento2 does not react to changes. Any ideas how can I fix it?
0
votes
0answers
67 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 ...
3
votes
1answer
64 views

Getting the wrong chinese string in search query result!! Magento 1

I have a store in chinese language. When I search for any product it works fine. But when I sort the result page by sku, name or price it does not work. It seems that I've got the wrong url for ...
0
votes
1answer
56 views

Magento 2 : How to suffle the products by sort on list page?

I want to snuffle the products on list page but unable to do that. Here is the code. app/code/Am/Suffle/etc/frontend/di.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/...
2
votes
0answers
391 views

How to sort by popularity in magento 2 product list?

I want to sort products by popularity and discount(high to low). How can I achieve?
0
votes
0answers
32 views

Feature a product only in a specific category

I need to set products as featured (Showing an image overlayed on top of the product image) in specific categories in Magento 2.2. e.g. product SKU-123 is listed in categories CAT-123 and CAT-456. My ...
2
votes
1answer
128 views

Sorting by Custom Attribute value/id

I'd like to add a custom attribute to listing products toolbar. This is a dropdown attribute, that looks like this: Available today Available in 1-5 days Available in 5-10 days I have set "Used for ...
1
vote
1answer
569 views

Magento 2.2 - custom product sorting issue

I have override toolbar.php for custom sorting attribute. <?php namespace Vendor\Module\Block\Product\ProductList; class Toolbar extends \Magento\Catalog\Block\Product\ProductList\Toolbar ...
3
votes
1answer
327 views

Sort products by color in the cart in Magento2

I have configurable products with virtual variations by color and size. In the cart, I am trying to arrange them in the order of priority, by configurable parent, then by color, then by size. In my ...
0
votes
2answers
572 views

How to Sort New Products at Home by Product Name

how to sort New Products at Home by Product Name ? because I see to put it through CMS page in the Admin: Admin - CMS Pages - home - Content : {{widget type="catalog/product_widget_new" ...