Hot answers tagged

1

You can try out this module: https://www.sparsh-technologies.com/magento-extensions/magento-2-advanced-sorting-extension it adds many options to sort products in toolbar, still if you want to have custom sorting then simply can download this one and get an idea of code to be written.


1

You can add the MySQL FIELD() expression to your collection: $menuitems->getSelect() ->order(new \Zend_Db_Expr('FIELD(e.entity_id, ' . implode(',', $order).')'));


1

You are so closed on finding out the answer on yourself. If you dig further, you will find the item renderer uses item template vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml You can just override this template and remove the option display from line 19-28 Or with a better DI plugin approach, create a afterGetItemOptions ...


1

Create Plugin on Magento\Theme\Block\Html\Pager and changed output of getAvailableLimit Plugin Class: <?php /** * Copyright © All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace StackExchanges\Magento\Plugin\Frontend\Magento\Theme\Block\Html; class Pager { public function afterGetAvailableLimit( ...


Only top voted, non community-wiki answers of a minimum length are eligible