Questions tagged [sort-by-position]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Only one row data is showing repeteadly in magento admin custom extension after upgrade to 2.4.6

I have one custom extension named jes.It was working fine in 2.4.0 version.In adminhtml the data is showing repeatedly. Like if there are 8 rows of different id then in 8 rows same data is shown. When ...
Tisha Jhanwar's user avatar
0 votes
0 answers
14 views

Add "SortOrder" and "PageSize" Parameters(criteria) in get a category's products REST API

I need to sort the result of the category's products GET REST API by the product's position in the category. The API is like this: /rest/V1/categories/[category-id]/products And here is a sample ...
Armi_Raz's user avatar
0 votes
1 answer
95 views

Ajax call to inline grid text field from block grid

I have created the block grid in admin product edit page section, I have added a text field in that grid column using below addcolumn method. $this->addColumn( 'position', [ ...
user73267's user avatar
  • 183
0 votes
1 answer
323 views

Can we update Product Position in Category with CSV in M2?

Can we update products position with csv in Category ? If yes than please share share any sample or example. Thanks
Wajahat Bashir's user avatar
2 votes
1 answer
773 views

Change position of custom column in order view item table magento 2

I want to change display order of my newly added column in order view in Magento 2. i have tried bellow code in Vendor/Module/view/adminhtml/layout/sales_order_view.xml but it wont work. <?xml ...
Divyarajsinh Dodiya's user avatar
0 votes
1 answer
990 views

Magento 2 product collection category filter category position sort

Hi i am trying to get product collection with category filter and category position sorting but it not working i tried below way $collection = $this->_productCollectionFactory->create(); ...
Pawankumar's user avatar
0 votes
1 answer
191 views

Category Products - Sort By Newest

Since upgrading to Magento 2.4x and having to use ElasticSearch as default, I am unable to find a way to sort category products by newest (created_at). I have tried enabling used_in_sort_by for ...
Chris Oliver's user avatar
-1 votes
3 answers
1k views

Magento 2 - Sort by Brand and Position?

Is it possible to sort by A the Brand alphabetically and then B by Position Programmatically.
user91213's user avatar
1 vote
0 answers
156 views

Magento 2.3.2 - Products with same position in category sorting issue?

We recently migrated a store from M1 to M2.3 - the site has thousands of products and hundreds of categories. Within each category, there are several instances whereby more than one product has the ...
Vinod Kumar's user avatar
  • 2,045
1 vote
0 answers
436 views

How to sort product by position, if every product has same position?

I read somewhere that if all product has same position it will sort by product id, but I don't think its sorting by Id. Here are a few screenshots I am sharing which I am sorting by position problem ...
Sagar Parikh's user avatar
0 votes
1 answer
530 views

Magento2.3.0 In which file attribute sort order set for layer navigation left side on product list page?

I am using Magneto2.3.0 in which the file attribute sort order set for layered navigation, left side on product list page/category page ? If any one idea how it is working in Magento default please ...
Rv Singh's user avatar
  • 1,617
0 votes
1 answer
463 views

How to update position of many products programmatically magento 2

I have inserted 4000 products and now our client want the inverse order so how to reorder them programatically? any help please
Developper Magento 's user avatar