Questions tagged [function]
The function tag has no usage guidance.
6
questions
0
votes
0
answers
16
views
Error: Call to a member function getCode() - Magento 2
I am having the following error message in Magento 2
Error: Call to a member function getCode() on null in /vendor/magento/module-store/App/Action/Plugin/Context.php:148 Stack trace:
#0 /vendor/...
0
votes
0
answers
9
views
How to run a JS code as soon as a user logs in through checkout. Magento 1.9
Guys I need to run a code as soon as a user logs in through checkout. But I'm not getting it, precisely because it sends a request to "/customer/account/loginPost/" and the return is a ...
0
votes
0
answers
43
views
Is it a bad practice to throw an exception in the plugin?
Let's say one wants to use a before plugin. Also let's say under a certain circumstance it is impossible to do so, therefore we want to throw an exception.
However it doesn't feel right to do so; but ...
0
votes
2
answers
28
views
How to extend this file app/code/Magedelight/SMSNotification/Helper/Data.php in Magento 2
I want to extend app/code/Magedelight/SMSNotification/Helper/Data.php this file in my custom module.
I have created a module.
My di.xml file app/code/Hl/Smsnotification/etc/di.xml
<?xml version=&...
0
votes
3
answers
55
views
How to find how many time function call happened?
I am using cookies to avoid every time function call happens, how to check after created cookies how many times function call happened?
0
votes
0
answers
26
views
Unable to find getPrice method in catalog
Simple issue but can't figure it out alone :
Under base vendor/magento/module-catalog/view/base/web/template/product/price/special_price.html
There is this part that is used to calculated the product ...