Magento 2 Overriding or Extending Core Interfaces in custom module without use of extension attribute
I am trying to add a new getter and setter to MagentoCatalogApiDataCategoryTreeInterface
I am trying to add a new getter and setter to MagentoCatalogApiDataCategoryTreeInterface
Suddenly I am getting card detail form in my magento 2 checkout page .. I cannot able to find the code .. I have disabled all payment method but still it appears I have tried to find all details but… Read More »Hack in magento 2 payment
I am trying to set Shipping Method Progrmatically but getting following error. The shipping method is missing. Select the shipping method and try again. foreach ($quote->getAllAddresses() as $address) { // Build grand total. $grandTotal = (($finalPrice + $shipping + $tax)… Read More »Magento 2 Set Shipping Method Programatically
After I update Magento version from 2.3.0 to 2.3.2 on checkout page I got knockout errors on my console and payments, product items do not show on-page. Before update, it works well. Uncaught ReferenceError: Unable to process binding “visible: function(){return… Read More »After updating to Magento 2.3.2 checkout page throws error
I am getting the following error in my Magento application sometimes, it’s not breaking the application always but in regular interval I am getting this error. The application CPU usage is also going high sometimes. Application is using redis for… Read More »Uncaught Error: Call to undefined method Magento\Catalog\Model\ResourceModel\Product\Interceptor::_construct()
I would like to modify Discount Amount of cart price rule on the cart page. Actually Magento apply rule using class MagentoSalesRuleModelRulesApplier and function is protected function setDiscountData($discountData, $item) So for that, I create a preference to modify Discount Amount… Read More »How to Modify Discount amount of cart price rule on cart page in magento 2
I want to check that the user is newsletter subscriber or not in email footer template in admin panel. I am unable to find a variable which can check like this: {{ if($userIsSubscriber) { //Code//}}} I know above syntax is… Read More »Checking if user is newsletter subscriber or not
I need to display product image in admin grid view. I tried below code. class Image extends MagentoBackendBlockWidgetGridColumnRendererAbstractRenderer { public function render(MagentoFrameworkDataObject $row) { //$this->helper(‘MagentoCatalogHelperProduct’)->getImageUrl($product); //$helper = $this->helper(‘MagentoCatalogHelperImage’)->init($product,’cart_page_product_thumbnail’) ->constrainOnly(true)->keepAspectRatio(true)->keepFrame(false)->setImageFile($product->getImage())->getUrl(); $id=$row->getId(); $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $store = $objectManager->get(‘MagentoStoreModelStoreManagerInterface’)->getStore(); $product = $objectManager->get(‘MagentoCatalogModelProduct’)->load($id); $imageHelper… Read More »Magento2 Admin Grid Product Image Display
I am using Magento2 and in order summary, some customize in tax after grandtotal display old not new so anyone idea to setGrandTotal via a model. If anyone idea reply to me Below my code added in this file /vendor/magento/module-tax/Model/Sales/Total/Quote/Tax.php… Read More »Magento 2 How to grandtotal in order summary set via model?
I need to set in “canceled” all orders stucks in “pending” status. The code that I used return this exception error: [2022-12-03 08:00:53] main.CRITICAL: Please provide payment for the order. Here the code: use MagentoSalesModelOrder; protected $order; public function __construct(Order… Read More »Magento 2: change order status programmatically