When trying to update products via Magento async API, tasks are marked as succesfully accomplished, but products are not changed. Almost all values under custom_attributes, including “tax_class_id” are not updated, except the “cost”. Standard attributes “price” and “qty” are always updated. Payload example: [ { "product": { "sku": 1000, "custom_attributes": […]
Magento
I have pwa-studio with cenia theme installed. but like to switch back to default magento theme. how can i do this without deleting pwa-studio and cenia theme from my server.
I have no idea why my getSelect printing query without echo & __toString. public function loadOrdersCollection($orders): mixed { $pac_orders = array(); $orderCollection = $this->orderCollection->create()->addFieldToFilter('increment_id', $orders, 'in'); $paymentMethods = explode(',', $this->getPaymentMethods()); /* join with payment table */ $joinQuery = $orderCollection->getSelect() ->join(["sales_order_payment"], 'main_table.entity_id = sales_order_payment.parent_id', array('method') ) ->where('sales_order_payment.method IN (?)', $paymentMethods); $orders […]
I am trying to change the way displaying the tabs in product page ( details, more information and reviews ). I don not want it to be tabs I want it to display directly one after one: details then reviews then more information all showing on the same time not […]
This is my CustomWidget.php in Block/Widget folder <?php namespace AlexCustomWidgetBlockWidget; use MagentoFrameworkPhrase; use MagentoFrameworkViewElementTemplate; use MagentoWidgetBlockBlockInterface; class CustomWidget extends Template implements BlockInterface { /** * @var string */ protected $_template = "Alex_CustomWidget::widget/custom-widget.phtml"; /** * @param $code * @return false|Phrase */ public function getButtonTitle($code) { $result = false; switch ($code) { […]
I would like to add a button to the ‘Product Name’ attribute within the product information tab, but I’m unsure of how to achieve this. Below is my product_form.xml: <?xml version="1.0" encoding="UTF-8"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> […]
I have seen this question asked so many different ways and for various Magento versions. I’ve spun up Magento 2.4.6-p3 and after bringing up the frontend and checking the admin backend, I don’t get any errors, not with Elasticsearch either. I am able to add products to the catalog and […]
I am calling getChildHtml() function on calling block html in my template, It was returning me only the content of the block which is saved in magento backend block section, i have imported them from demo. Its all going will, until i made changes to content in backend and saved. […]
Admin category URL link redirect admin dashboard issue how to fix this issue Current URL: Category https://test.cm/mv2/admin/catalog/category/edit/id/12/key/a7294ff98a7d8ff0eb16dbf92bd5ffae4da9620da389376dff80aa82e4d42b60/ Real category URL https://test.com/mv2/admin/catalog/category/edit/key/30dcd45cded283314a2410b81138a716658363d538381032f0bb16e3f66d14d0/id/12/ public function getCategoryEditUrl() { $category=$this->_registry->registry('current_category'); return $this->backendUrl->getUrl('catalog/category/edit', ['id' => $category->getId()]); } above code get https://test.cm/mv2/admin/catalog/category/edit/id/12/key/a7294ff98a7d8ff0eb16dbf92bd5ffae4da9620da389376dff80aa82e4d42b60/ this URL but real URL this https://test.com/mv2/admin/catalog/category/edit/key/30dcd45cded283314a2410b81138a716658363d538381032f0bb16e3f66d14d0/id/12/ advance thanks thanks for the help.