I want to create a product consisting of a panel(parent), screws(child), and washers(child). Each panel requires 25 screws and 25 washers to install, however screws come in boxes of 100 and washers come in boxes of 200 which the customer pays for. If a customer purchases 1 panel their cart […]
Magento
I am creating plugin to alter API response in M2.4.3. I am trying to alter this functionality via plugin MagentoFrameworkWebapiRestResponse and function prepareResponse My di.xml file is: <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="MagentoFrameworkWebapiRestResponse"> <plugin name="vendor_apiresponses_extend_Webapi_rest_response" type="VendorApiResponsesPluginFrameworkWebapiRestResponseUpdateResponse" /> </type> </config> and plugin file is : <?php declare(strict_types=1); namespace VendorApiResponsesPluginFrameworkWebapiRestResponse; […]
I would like to add a custom attribute to the product and create an installData.php according to the guide. However, nothing changed after se:up. Please help. app/code/My/Module/Setup/InstallData.php <?php namespace MyModuleSetup; use MagentoEavSetupEavSetup; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkSetupInstallDataInterface; use MagentoFrameworkSetupModuleContextInterface; use MagentoFrameworkSetupModuleDataSetupInterface; class InstallData implements InstallDataInterface { private $eavSetupFactory; public function __construct(EavSetupFactory […]
I’ve a problem in my website, when the customer order as guest then create account after purchase the order didn’t appear ! Could you please advise how to fix it ? Thanks a lot.
I am trying to add custom filter to layer navigation. Basically I didn’t have any problem with displaying it on navigation sidebar but collection filtering is now the problem. I have filter which is NOT product attribute and that filter has two possible items. Each item should be filtered by […]
I am using Magento version 2.4.2-p2 Here’s the scenario: If I use the link within the day, I am able to create an account and see the order in Order History. If I use the link after 24 hours, I’m still able to create an account but the order is […]
We are indigenous brand delivering premium gadget accessories – Imparting premium look, protection & safety for your flagship devices with our lux signature designs! CaseCandy Provides 9H Hardness tempered glasses to your expensive for all Mobiles with 3 Months of warranty*. We provide tempered glass for all Mobile phones including […]
I need to set in “canceled” all orders stucks in “pending” status. The code that I used return this exception error: [2022-12-03 08:00:53] main.CRITICAL: Please provide payment for the order. Here the code: use MagentoSalesModelOrder; protected $order; public function __construct(Order $order) { $this->order = $order; } public function orderStatusChange() { […]