Questions tagged [after-plugin]

Denotes questions about Magento 2 AfterPlugins. For general questions use "plugin" tag.

Filter by
Sorted by
Tagged with
4 votes
2 answers
200 views

Magento 2 Plugin Not Extending Model - Finally Solved It

I'm trying to use a plugin from the answer on this question Add additional select attributes to grouped product's child collection I would go back and ask the person who answered but I don't ...
user68878's user avatar
  • 330
0 votes
1 answer
315 views

_initSelect override with Plugin in Magento2.4.1

Need a help in this issue. I am trying to remove a MySQL condition from _initSelect from this Collection "Magento\SalesRule\Model\ResourceModel\Rule\Collection". This Collection has the ...
Nithin's user avatar
  • 23
0 votes
1 answer
2k views

Get Product info from afterAddProduct Plugin in magento 2

I have a custom functionality for add to cart in product detail page. Once button clicked, sending product id and adding product to the cart. Used below code to implement it. <input type="hidden"...
Jafar Pinjar's user avatar
  • 1,929
0 votes
0 answers
1k views

Customer redirect issue with login post plugin magento2

I have used two plugins to use the referral url's for customer login page. here is the code of my etc/di.xml <type name="Magento\Customer\Controller\Account\LoginPost"> <plugin ...
Jafar Pinjar's user avatar
  • 1,929