With the code below, I’m trying to instantiate an helper class from my custom module. // Sanitize the $_GET[] value // Create an object of the order loaded with the $order_id passed as query string. $orderId = htmlspecialchars($_GET["order_id"]); $order = $objectManager->create('MagentoSalesModelOrder')->loadByIncrementID($orderId); // Instantiate app/code/Perfectmakeupmirrors/Order/Helper/Data.php // call assemble_order_info(Order $order) $helper = […]
Magento
In my Magento 2.4.5 open source store, bulk update attributes are not working. Cron is running, and it appears everything else is running fine. Emails are being sent out for example. I have this code in app/etc/env.php: 'cron_consumers_runner' => [ 'cron_run' => true, 'max_messages' => 10000, 'consumers' => [ ] […]
I want to add custom clickable URL for the category image. Anyone can teach me what I need to do? I have to create a new attributes for the URL field?
I’m trying to remove disable from a button in form-mini.phtml but couldn’t find a way through jquery/javascript. I know it gets enabled after adding a few characters, but by default, it remains disabled. As I’m creating my own theme from scratch, I want that disabled attribute to be removed at […]
Since deploying a Magento 2 website we’ve had trouble with URL rewrites. The default URL used by our products is (example) mysite/catalog/product/view/id/50146/s/my_product/my_category/2/ This is not what I want to see and does not match the URL Key set in admin for the product. I have canonicals set to ‘yes’ for […]
Magento 2.4.2-p1 Goal is to create a bundle option with a selection in it based on array of skus. The array has 4 skus of simples existing in the catalog, lets say: [50702640,50702240,90102870,90102871] The strange thing, is that it will never add the first one. Logs i have put in: […]
I am trying to customize the category page by adding a new section called category faq To Implement this customization I wrote this category_form.xml file <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <fieldset name="category_faqs"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="label" xsi:type="string" translate="true">Category FAQs</item> <item name="collapsible" xsi:type="boolean">true</item> <item name="sortOrder" xsi:type="number">20</item> </item> </argument> <insertListing […]
I create a user (from the magento panel) for my store, and the link to set the password is sent to the email, the user has set the password. After a few hours (6/7 hours) the user is no longer able to log in with the password and presents the […]
I am getting this error after upgrading Magento version 2.4.3 to 2.4.5 I am unable to find any solution. please help.