Skip to content

magento man

Magento2.4.4 Place order using stripe payment method through REST API

From stripe sdk I am able to create payment id successfully but when call api to create order in magento2 then getting authentication error. I am calling below API http://localhost/xxx/rest/default/V1/carts/mine/payment-information with below body { “paymentMethod”: { “method”: “stripe_payments”, “additional_data”: {… Read More »Magento2.4.4 Place order using stripe payment method through REST API

How to instantiate an helper class from my custom module in a test program in the directory at the same level as the root of Magento?

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 =… Read More »How to instantiate an helper class from my custom module in a test program in the directory at the same level as the root of Magento?

Class “MagentoFrameworkComponentComponentRegistrar” not found in setup/src/Magento/Setup/registration.php:9

When I run “composer install or “composer update” command from my magento 2.4.5 root folder I am getting this error. – Installing laminas/laminas-dependency-plugin (2.4.0): Extracting archive PHP Fatal error: Uncaught Error: Class “MagentoFrameworkComponentComponentRegistrar” not found in /public_html/setup/src/Magento/Setup/registration.php:9 Stack trace: #0… Read More »Class “MagentoFrameworkComponentComponentRegistrar” not found in setup/src/Magento/Setup/registration.php:9

Category Creation Form Customization

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… Read More »Category Creation Form Customization