I want to add a custom value to the items in the order summary during checkout ($parent). I followed all the other howtos on how to do it: Create plugin for MagentoCheckoutModelDefaultConfigProvider: etc/di.xml: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="MagentoCheckoutModelDefaultConfigProvider"> <plugin name="my_config_provider" type="MyModulePluginConfigProviderPlugin" /> </type> </config> This is my plugin: […]
Magento2
Please loading issue solve. I try to reload or redirect but that is not working. $resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT); $resultRedirect->setPath('*/*/'); return $resultRedirect; My code is -> $name = date('m_d_Y_H_i_s'); $filepath = 'export/custom' . $name . '.csv'; $this->directory->create('export'); /* Open file */ $stream = $this->directory->openFile($filepath, 'w+'); $stream->lock(); $columns = $this->SalesData->getAllExcelHeaderName(); foreach ($columns […]
Magento 2.4.5-p1 I have exported products from Magento 2.4.5-p1. When I open the CSV file and look at the Description column, some rows show the actual Product Description while many others show the following: <div data-content-type="html" data-appearance="default" data-element Why is that and how to fix?
PHP Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in “PREPAID_TAXABLE_AMOUNT”=> (($item->getDiscountAmount()) ? abs( round($item->getSubTotal(), 2) – round($item->getDiscountAmount(), 2) ) : ” ) I am getting this error in PHP 8 & Magento2.4 How to solve it?
I’m trying to update multiple items as a batch in Version 2.4.3-p1 $productUpdates = []; foreach ($updates as $magento_sku => $data) { $productUpdates[] = [ 'sku' => $magento_sku, 'product' => [ 'price' => $data['price'], 'extension_attributes' => [ 'stock_item' => [ 'qty' => $data['qty'] ] ] ] ]; $url = 'https://example.com/rest/default/async/bulk/V1/products/bySku'; […]
I have implemented a bridge between an external system and Magento, retrieving product details for the external system and save it after processing to Magento. My problem is that when there are more than some amount of records (not many, ~100) coming from the external system my job hangs in […]
I upgraded Magento to 2.4.6 from 2.4.4, Admin was working, but frontend was not, due to Porto needing upgrade. Upgraded Porto theme to the version specifically for Magento 2.4.6. Front end loads, but is missing some styling. I checked the custom CSS in Magento Admin, and all the custom styling […]
Im stuck at checkout/#shipping with The shipping method is missing. Select the shipping method and try again. I’ve configured the flat rate shipping method and its not showing up in the page. Image reference.
Warning: Undefined array key “name” in D:xampphtdocsmage2rockvendormagentomodule-catalogUiComponentListingColumnsProductActions.php on line 61 Exception in D:xampphtdocsmage2rockvendormagentoframeworkAppErrorHandler.php:62 when I add the products the categories then those products are not displaying in products page