I made my first form: <?xml version="1.0"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <argument name="data" xsi:type="array"> <item name="js_config" xsi:type="array"> <item name="provider" xsi:type="string">customer_form.customer_form_data_source</item> </item> <item name="label" xsi:type="string" translate="true">Blogpost Actions</item> <item name="reverseMetadataMerge" xsi:type="boolean">true</item> </argument> <settings> <buttons> <button name="save" class="MageGuideFirstModuleBlockAdminhtmlEditSaveButton"/> <button name="back" class="MageGuideFirstModuleBlockAdminhtmlEditBackButton"/> </buttons> <layout> <navContainerName>content</navContainerName> <type>tabs</type> </layout> <deps> <dep>add_blogpost.blogpost_data_source</dep> </deps> </settings> <fieldset name="blogpost"> <settings> <label […]
Magento
I made my own form: <?xml version="1.0"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <argument name="data" xsi:type="array"> <item name="js_config" xsi:type="array"> <item name="provider" xsi:type="string">customer_form.customer_form_data_source</item> </item> <item name="label" xsi:type="string" translate="true">Blogpost Actions</item> <item name="reverseMetadataMerge" xsi:type="boolean">true</item> </argument> <settings> <buttons> <button name="save" class="MageGuideFirstModuleBlockAdminhtmlEditSaveButton"/> <button name="back" class="MageGuideFirstModuleBlockAdminhtmlEditBackButton"/> </buttons> <layout> <navContainerName>content</navContainerName> <type>tabs</type> </layout> <deps> <dep>add_blogpost.blogpost_data_source</dep> </deps> </settings> <fieldset name="blogpost"> <settings> <label […]
I am learning magento extention creation, and I try to add a “Create New” record in my admin grid. So far I made this grid: namespace MageGuideFirstModuleBlockAdminhtml; use MageGuideFirstModuleModelFactoriesBlogPostCollectionFactory as BlogPostCollectionFactory; use MagentoBackendBlockTemplateContext; use MagentoBackendHelperData; use MagentoFrameworkObjectManagerInterface; use MagentoBackendBlockWidgetGridExtended; use MagentoFrameworkRegistry; class Grid extends Extended { // also you can […]
I’m using magento 2, upgraded to the last version 2.4.6-p2, and I’m having an issue with the success page, but not with all payment methods… What I get in the success page is: 1 exception(s): Exception #0 (Exception): Unknown Config Class Exception #0 (Exception): Unknown Config Class <pre>#1 MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject() called […]
I’m running Magento 2.4.4. I’m facing a bit of an issue with Magento 2 backend – it keeps booting me out when I’m working with multiple tabs. To put it simply, I’m tinkering with a few item cards simultaneously. When I hit the save button to store my changes, a […]
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: […]
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?