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) { […]
Magento
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 […]
in backend , for Product A we set the price = 100. We created catalog price rule with 20 % for all products. the catalog price rule should not apply for full price. it should apply for ( product price – 3% of product price ) ex : (100 – […]
Magento 2.4.2-p1 I am staying with Magento but one of my smaller stores will need to run on Shopify from now. It is already set up on Shopify but I haven’t pointed the domain there yet. Regarding the SEO (which we have done a lot of work on) – what […]