I’m using Magento 2.4.2-p1, Apache 2.4.54, php 7.4, and am getting a ParseError: syntax error when a class name is declared with a property declaration – is this expected? is there a work around? From what I can tell you should be able to use a classname as of 7.4, […]
Magento
I am trying to show additional information about the Shipping Method in Checkout. I could already save this information in the column method_description in quote_shipping_rate. And with a plugin, I add the data as an extension attribute: extension_attributes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd"> <extension_attributes for="MagentoQuoteApiDataShippingMethodInterface"> <attribute code="method_description" type="string" /> </extension_attributes> […]
I’m not a Magento expert, and do not have access to the underlying code, but work with a Magento website. Since the latest update to Magento 2.4.5 we have noticed that when and order is made it is made with the “Pending(new)” status. This then triggers it to send out […]
I have tried to import CSV with some following Data, My code is working for insert new record in the table which is in the CSV but not updating the existing record. Everytime when I upload the CSV, it create the new record in Database. For Example: Suppose, CSV file […]
Cree un módulo y lo agregué al menú del admin, al ingresar desde el menú del admin me redirecciona al dashboard y me muestra el mensaje: “Invalid security or form key. Please refresh the page Custom Module”. menu.xml <?xml version="1.0"?> <add id="Wolf_MyModule::MyModule" title="My Module" module="Wolf_MyModule" sortOrder="51" resource="Wolf_MyModule::MyModule"/> <add id="Wolf_MyModule::cars" title="Cars" […]
app/code/local/Info/news/Bock/Adminhtml/news/Grid.php <?php class Info_News_Block_Adminhtml_News_Grid extends Mage_Adminhtml_Block_Widget_Grid{ public function __construct(){ parent::__construct(); $this->setId('newsGridView'); $this->setDefaultSort('news_id'); $this->setDefaultDir('DESC'); $this->setSaveParametersInSession(true); } protected function _prepareCollection(){ //$collection=new Varien_Data_Collection(); $collection = Mage::getModel('news/news')->getCollection(); $this->setCollection($collection); return parent::_prepareCollection(); } protected function _prepareColumns(){ $this->addColumn("news_id",array( "header"=>Mage::helper("news")->__("ID"), "type"=>"number", "index"=>"news_id" )); $this->addColumn("news_title",array( "header"=>Mage::helper("news")->__("Title"), "type"=>"text", "index"=>"news_title" )); $this->addColumn("news_content",array( "header"=>Mage::helper("news")->__("Content"), "type"=>"text", "index"=>"news_content" )); } } app/code/local/Info/News/Model/News.php <?php class […]
Basically i want to get the stock status for att the children items of a configurable product. I can query this endpoint, but i don’t get the stock status: /rest/V1/configurable-products/{SKU}/children However, i can use the SKU’s from the items that i get from the response from the endpoint mentioned above, […]
I have two store English Arabic In Arabic stores, product prices or other custom prices are shown in Arabic numbers instead of English numbers. like ٥٠٫٠٠$ only the Product details page price shows correctly. how we can show English numbers in both stores?
Job for elasticsearch.service failed because the control process exited with error code. See “systemctl status elasticsearch.service” and “journalctl -xe” for details. [root@server elasticsearch]# systemctl status elasticsearch.service ● elasticsearch.service – Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since 二 2022-11-15 23:00:29 CST; 18s ago Docs: https://www.elastic.co […]