I have created a preference to add my custom filter to the collection. di.xml This is my ListProductPot.php file < ?php namespace VendorModuleBlockRewriteProduct; use MagentoCatalogApiCategoryRepositoryInterface; use MagentoCatalogBlockProductContext; use MagentoCatalogModelLayerResolver; use MagentoFrameworkDataHelperPostHelper; use MagentoFrameworkUrlHelperData; class ListProductPot extends MagentoCatalogBlockProductListProduct { public $featuredProduct; public function __construct( Context $context, PostHelper $postDataHelper, MagentoFrameworkStdlibDateTimeDateTime $dateTime, VendorPotHelperData […]
Magento2
I noticed that the 0.5 minimum quantity doesn’t work if the stock management is not activated. Do you guys know how to make it work having the stock disabled? Right now it looks like I can still put 0.5, but the problem is that when I try it, it tells […]
Magento uses MagentoBackendModelUrl as a preference for MagentoFrameworkUrlInterface now MagentoBackendModelUrl has a dependency on MagentoFrameworkDataFormFormKey which has a dependency on MagentoFrameworkSessionSessionManagerInterface which in the admin area is implemented by MagentoBackendModelSession which has a dependency on `MagentoFrameworkSessionSidResolverInterface` which is implemented by MagentoFrameworkSessionSidResolver which in turn has a dependency on MagentoFrameworkUrlInterface in […]
I created a custom module that overrides the addtocart.phtml file. In that module, I also created a css file. Here is what I did: Here is my layout – catalog_product_view.xml: < ?xml version="1.0"?> Vendor_Module::product/view/addtocart.phtml Vendor_Module::product/view/addtocart.phtml and then I put the style.css in /Vendor/Module/view/frontend/web/css I thought that in this case the […]
Using M2.2.9 Enterprise Cloud – I am using B2B module to allow company users to purchase in a “private store” experience. I know that I can enable credit cards using Braintree vault as a stored payment method for user at each company but I don’t see any way for us […]
I seem to have set up everything correct in magento admin but emails for orders or confirmation or newsletter subscription do not seem to work I use cpanel with whm, centos Do I have to set up special email settings, something I see over my head? Thanks a lot for […]
Tell me how to redo the styles of stars so that they have a stroke. Now they have a standard look but I’m trying to do both on the layout I only need a stroke on the stars*
In the past, to load a quote by id, i used to use the factory: protected $quoteFactory; public function __construct( ... MagentoQuoteModelQuoteFactory $quoteFactory, .... ) { .... $this->quoteFactory = $quoteFactory; .... } But since moving on, it is more recommended to use the service contract: protected $cartRepository; public function __construct( […]
Is there a way to remove my custom attribute code and only show the value? I created a custom address attribute “special_instructions” and when I add an address in my account section everything works fine.. but when I add an address in the checkout the address summary shows my attribute […]