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 […]
Magento
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. */ --> […]
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.
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. […]
there is customer registration page where I follow this url https://blog.chapagain.com.np/magento-2-customer-image-file-upload-in-registration-account-page/ to add file upload field. It is working fine but the problem is when I upload pdf file name with vendor's licence.pdf and click submit it throws 404 error: Page not found if I rename file name to vendors […]
I’m encountering a challenge with the search functionality in Magento 2 and could use your expertise. Specifically, the issue revolves around partial match searches, especially concerning the SKU attribute. 🔎🛒 Issue Description: When I search with the exact SKU (e.g., "ML1797"), the product is retrieved as expected in the search […]