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) { […]
Daily Archives: October 14, 2023
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 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. […]
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 […]
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 am using TP-Link Archer AX50 and there is the option for setting time limits for a specific MAC address. I have done so for my daughter’s Samsung A6 and it works for everything except YouTube. I am for example testing it now, and the browser is blocked, there is […]
I got a phone call and bumped a key and have no idea where I am and want to undo all that is done so far, go to back to bare bones penguin so that I can start over.
I was running fsck for a disk in initramfs and after it finished, I wrote “exit” in terminal. After that, when booting in that drive, I still have the kernel panic screen. Tried to chroot into broken OS, but chroot seemed to not work (using live Ubuntu). I don’t have […]
I am trying to achieve an animation effect using ffmpeg. I am adding text watermark to an input video and animate the text diagonally, horizontally or vertically changed randomly. Here is what I have achieved so far. ffmpeg -i video.mp4 -c:v libx264 -preset veryfast -crf 25 -tune zerolatency -vendor ap10 […]