New answers tagged

0

Eventually I fixed the problem by copy & pasting certain methods(functions) from the class I was trying to use into our class. Probably not the best solution but for now the only one we have.


0

I would suggest, Please do reindexing. Please use the below commands to do full indexing. php bin/magento indexer:reset php bin/magento indexer:reindex Please let me know if still not fixed.


0

I appreciate the help! Eventually I found out that using SessionFactory instead of Session worked out: use Magento\Customer\Model\SessionFactory as Session; use Magento\Wishlist\Model\Wishlist; class FeaturedProducts extends Template implements BlockInterface { /** * Session * * @var Session */ private $_customerSession; /...


1

The code for the part you're looking for is located in the sales_order_create_index.xml file in the layout folder of the backend in module-sales in a vendor folder. If you want to completely remove Group dropdown and email field then you need to modify ( DO NOT directly modify the vendor file, use overriding mechanism by module or theme ): ProjectDirectory/...


1

Checklist: Check if your module is enable: bin/magento module:status Add the sequence (Magento_Sales) like explained here: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/build/module-load-order.html Make sure you run bin/magento setup:di:compile


1

If you always want to use General and you are pretty certain that your users don't do bad things the easiest way is just to hide it via CSS. If you want to "properly" remove it you have to A) remove it from the ui_component B) extend the functionality to auto set the group as it as a required value. This will override and/or extend a lot of core ...


0

Create WishlistProducts block To get Wishlist Products Collection, firstly, you need to create a WishlistProducts block. To do that, follow the path Vendor/ModuleName/Block/WishlistProducts.php and add the below code: <?php namespace Vendor\ModuleName\Block; use Magento\Catalog\Block\Product\Context; use Magento\Catalog\Model\Product\Visibility; use ...


Top 50 recent answers are included