Questions tagged [override-model]
The override-model tag has no summary.
90 questions
0 votes
1 answer
47 views
Trying to override InvoiceSender
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-&...
1 vote
1 answer
325 views
Error: Cannot instantiate abstract class Magento\Framework\Model\ResourceModel\AbstractResource
I have Magento enterprise version 2.4.5-p1, I am getting following error in the system.log Error:- .CRITICAL: Error: Cannot instantiate abstract class Magento\Framework\Model\ResourceModel\...
0 votes
2 answers
159 views
How to override an abstract class in magento 2
I know how override the normal class but now i try to override the abstract class [ Magento\Sales\Model\Order\Email\Sender.php ] . i have override the Sender.php file in custom module but its not ...
0 votes
3 answers
885 views
Magento 2 : How to overwrite Magento\Quote\Model\ShippingMethodManagement
I want to make changes in function estimateByAddressId() which is public method. I tried following : app/etc/di.xml also tried in app/etc/frontend/di.xml <preference for="Magento\Quote\Model\...
0 votes
1 answer
412 views
Magento 2: Override model not working
I am trying to override the vendor/magento/module-inventory-in-store-pickup/Model/GetPickupLocations.php file I have copied it to app/design/frontend/Magento/child_theme/Magento_InventoryInStorePickup/...
0 votes
1 answer
380 views
Override DefaultInvoice.php file to render custom row in magento 2.4.4
I need to override Magento\Sales\Model\Order\Pdf\Items\Invoice\DefaultInvoice.php file to render a custom row in Magento 2.4.4 I tried with preferences like <preference for="Magento\Sales\...
1 vote
0 answers
218 views
Override PHP-sdk file in vendor
I want to override the (PHP sdk)file which is found in the vendor path the path is vendor/tamara-solution/php-sdk/src/Tamara/Model/Order/Order.php I am attaching my that specific php sdk composer....
0 votes
0 answers
273 views
Magento 2 : How to Override \Magento\NegotiableQuote\Model\CompanyQuoteConfigRepository.php
di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/...