Skip to main content

Questions tagged [model]

Models contain most of the business logic in Magento modules

0 votes
1 answer
47 views

I tried to override InvoiceSender (in /app/code/UFS/Sales/Model/Order/Email/Sender/InvoiceSender.php) but it doesn't work and I don't understand why. I added "'created_at_formatted' => $order-&...
Magento_Dev's user avatar
1 vote
1 answer
238 views

I am getting this error on my homepage after upgrading my Magento version from 2.4.0 to 2.4.6. Error: Cannot instantiate abstract class Magento\Framework\Data\Collection\AbstractResource in /home/...
Tisha Jhanwar's user avatar
0 votes
1 answer
65 views

I have created a custom module and it's working fine,if I only run php bin/magento setup:upgrade command. However, when I attempt to run php bin/magento s:d:c it raises an exception. Type Error ...
Bushra's user avatar
  • 62
0 votes
1 answer
167 views

I'm trying to get values from the popup model of radio buttons into the database and I'm not getting that, what am I doing wrong? BLOCK FILE <?php namespace vendor\ThreeYearOrders\Block; use ...
Bayzel's user avatar
  • 187
0 votes
3 answers
592 views

We are using a third party module. They have their own database tables and read out data from it by using direct SQL statements app/code/Company/Foo/Model/Calculator.php ... public function foo($...
Black's user avatar
  • 3,409
0 votes
1 answer
87 views

I am trying to add new custom columns for now online customer grid. I have added new custom columns in customer_visitor table, but I am not able to save data in custom columns. Firstly, I have added ...
Mukesh Khatri's user avatar
0 votes
2 answers
1k views

I need to add new method to the core interface so I was checking all the Magento forums and came to know that this can be achieved via extension attributes as like in the post Magento 2 : Override ...
MagentoDev's user avatar
0 votes
1 answer
274 views

How does one discover which Javascript events exist in Magento 2? I need to run some Javascript code in an adminhtml form for a custom module. The code should run after the fields are displayed (i.e. ...
dotancohen's user avatar
  • 1,130

15 30 50 per page
1
2 3 4 5
52