Questions tagged [after-plugin]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
208 views

How to get popup on button click via plugin at admin side in Magento 2

I have "New Add Product" button at Sales->Order->Create New Order which I added through plugin. My di is at: etc/adminhtml As <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Ajwad Syed's user avatar
  • 1,591
1 vote
0 answers
113 views

How to insert a text into before all magento notification messages in magento 2 with plugin?

I'm new Magento. Can someone tell me how to insert a text into before all system messages of Magento 2 with a plugin. When I do anything, I get the message.Ex :login, create account, add to cart,...
Thành Trung Tô's user avatar
1 vote
0 answers
69 views

Magento2 Plugin for beforeExceute that return a $resultRedirect->setPath('customer/account/login');

I've to "override" a module that manage a redirect. The original module have this code: public function execute() { [...] $resultRedirect = $this->resultFactory->...
nino.aratari's user avatar
2 votes
1 answer
174 views

Magento2: Intercept category moved inside tree

I am trying to intercept when a category is moved inside the category tree. At the beginning I thought to observe the event catalog_category_tree_move_after with an Observer class but I found that ...
giani.sim's user avatar
  • 1,463
0 votes
2 answers
720 views

Plugin isn't working in Magento2 local host

My very basic plugin is not working and i can't understand why. I'm very new to Magento 2 so it's probably something simple. The Plugin is suppose to display "Too expensive" or "too cheap" on all ...
Greg's user avatar
  • 399
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
2 votes
1 answer
1k views

Argument passing error in after plugin

I am trying to create after plugin for delete function of Magento\Tax\Model\TaxRuleRepository function looks like follows public function delete(TaxRuleInterface $rule) { $ruleId = $rule-...
Anshu Mishra's user avatar
  • 8,910

1
2