2 votes

Magento 2 - Add column to a table by using the declarative schema

check your extension order, It should be after Magento_Sales. etc/module.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
user avatar
  • 1,049
1 vote
Accepted

How i can pass js variable to php file?

There are actually several approaches to do this. Some require more overhead than others, and some are considered better than others. In no particular order: Use AJAX to get the data you need from ...
user avatar
1 vote
Accepted

Magento 2.4.2: observer class not getting invoked on event layout_load_before

The event name is correct and it should work. It is better to debug in where "layout_load_before" event is defined which is shown below. vendor/magento/framework/View/Layout/Builder.php: ...
user avatar
1 vote

Magento 2.4.2: observer class not getting invoked on event layout_load_before

The class name you mentioned in events.xml is different from the one you uploaded. Please change events.xml to include instance as below instance="Perfectmakeupmirrors\Order\Observer\...
user avatar
1 vote

Magento 2.4.x: How to pass custom variable from controller to phtml file?

Why would you want to use a registry ? Is there a reason beyond this ? You need to pass variables threw controller and block depending on how the templates is defined. For example : Template ...
user avatar
  • 727
1 vote

Which file hold this layout {{layout handle="sales_email_order_items" order=$order area="frontend"}}

New Magento (2.4.3-p2 in this moment) requires following update in the email template, to show order line items in the Order Confirmation email: From: {{layout handle="sales_email_order_items&...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible