Questions tagged [plugin]
Denotes questions about Magento 2 Plugins (BeforePlugin , AfterPlugin and AroundPlugin). Plugins are also known as interceptors in the Magento documentation.
617 questions
0 votes
0 answers
20 views
Magento 2 plugin not working for Magento\Bundle\Model\Product\Type when also applied on AbstractType
I am trying to use plugins on the following Magento 2 core methods: \Magento\Bundle\Model\Product\Type::checkProductBuyState() \Magento\Bundle\Model\Product\Type::getOptionsIds() \Magento\Catalog\...
0 votes
0 answers
36 views
Direct cryptocurrency payment plugin
I am looking for a simple direct cryptocurrency payment plugin. That is, a plugin that adds a payment option which : Lets the customer select a cryptocurrency Generates a key pair (or, to keep the ...
0 votes
0 answers
36 views
Magento 2 Plugin around Shipping collectRates infinyte loader
When I added __construct whatever I get an infinite loader. public function __construct(ResultFactory $res){ $this->anotherVariable = $res; } my <?php namespace Vendor\Module\Plugin; use ...
1 vote
1 answer
63 views
I want to add the html in the image on listing page. I want to use plugin . How can it be achieved
I want to add the html in the image on listing page. I want to use plugin . How can it be achieved.I want to add the sticker label for sale new product and out of stock depending upon the condition ...
0 votes
0 answers
37 views
Custom Attribute not saving into the Sales_Order Table
This is my PLugin : <?php namespace Vendor\Module\Plugin; use Magento\Sales\Api\Data\OrderItemExtensionFactory; use Magento\Sales\Api\Data\OrderItemInterface; use Magento\Sales\Api\Data\...
2 votes
1 answer
445 views
Error: Cannot instantiate interface Magento\Catalog\Model\Layer\ContextInterface Magento Plugin
I've created a plugin in Magento 2.4.5 to overwrite Magento\CatalogSearch\Model\Layer\Filter\Price 's method. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
0 votes
2 answers
100 views
Before Plugin asks for the class argument
I am new to Magento and following a course, yet some things hold me back. I really want to learn it but my only duties are as a frontend developer. If you could guide me through this problem it would ...
1 vote
2 answers
163 views
Magento 2 - after Plugin for \Magento\Csp\Model\Policy\FetchPolicy not working
Why is my plugin not getting called? app/code/Company/Configurator/etc/module.xml: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...