magento2 – How do I access a variable declared in an HTML from another HTML?

You can set the variable with register from the first phtml you get the value in the 2nd phtml registry

To do well without injecting objectManager directly into PHP, you need to create some functionality for your product block.

In your block: app/code/Vendor/Modulename/Block/Custom.php

Suppose your variable name is: $tech

_coreRegistry = $coreRegistry;

     * Set var data
    public function setTechData($data)
        $this->_coreRegistry->register('tech', $data);

     * Get var data
    public function getTechData()
        return $this->_coreRegistry->registry('tech');

So in your first phtml:

setTechData($tech); ?>

In the second phtml:

getTechData(); ?> //you'll get your tech value here

You can do that in phtml exam without the block solution:

First phtml:

create("MagentoFrameworkRegistry")->register('tech', $tech);

Second phtml:

echo $techData;

magento 2.1 – Magento2 one-sided success mistake

I receive a blank page when I place an order. On the success page, an error of 500 has occurred and the page is empty. I can see the order in the admin section and in the buyer section, but the status is still pending.
I also increased the PHP memory limit. I can not even go to the bank transfer because of this problem. Cash on delivery also has this problem

magento2 – Magento CatalogInventory Observer QuantityValidatorObserver Slow performance

In my Magento 2.3.3 instance, if I disable EVENT: sales_quote_item_qty_set_after, Observer: inventory "/ checkout / cart /" and "/ checkout /" speeds up, but also removes the ability to validate the minimum amount per product in a shopping cart.

I've seen the number of products in the shopping cart increase, "Inventory" takes longer, and overall slows down Mangento's website. There is no option to keep the "minimum amount per product in a shopping cart" while improving website performance.

Magento CatalogInventory Observer QuantityValidatorObserver EVENT:
sales_quote_item_qty_set_after NOTE: Inventory

magento2 – PayPal Express appears at checkout, even though PayPal Plus is active in Magento 2.3.2

How can I deactivate PayPal Express ONLY at checkout? (Magento 2.3.2)

Normally activating Paypal Plus disabled PP Express automatically in the cash register of Magento 1.9.3, but it seems that it is different in Magento 2.

Can someone tell me how to do this manually?
I still want PP Express to work in Mini Cart, Cart & Product Page.

Thanks in advance.

magento2 – what are the minimum steps to see the updates after editing a php file from the vendor folder

somehow in mine


File, there are additional characters that were accidentally added by one of the team members who created indexing errors. I've removed the extra characters, but I do not see the changes when I try to reindex on the production site.

What are the minimum steps to see the updates I made to this BatchSizeCalculator.php file in the manufacturer folder?

Running PHP Bin / Magento C: C and PHP Bin / Magento C: F did not work
I'm trying to stay away from running setup: upgrade setup: di: compile or s: s: d if that's not necessary.

Is there a file in the generated folder or in the var folder that I can use to apply the same update without executing the above commands?

magento2.3 – Install Magento2 Enterprise via Docker on a desktop Mac

I'm trying to install a fresh install of Magento 2.3.3 Enterprise on my local Mac desktop via Docker. I'm new to Docker, so maybe I'm missing something.

I have installed Composer and Docker.

The mistake I get says

 To initialize a project, please create a composer.json file as described in the "Getting Started" section
 Could not open input file: /app/bin/magento

 An error has occurred. Removing newly installed files and/or Docker containers.

I tried to manually create a composer.json file and put the following in it

    "require": {
       "magento/product-enterprise-edition": "2.3.3"

I've also made sure my yml file contains my correct public and private Magento keys. I use the tutorial here

Even if I execute the following command

I get a mistake that says
Error: No such object: websites

magento2 – Data Toggle-CMS Administrator Page 2

Okay, so just a CMS 1 page that has switched content, but it seems to be a conflict. How would you like this code to work 1 2 Solve Magento CMS?


Projects with our products


Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed temporal and vitality, leaving the work and suffering to do some important things eiusmod.

magento2 – Magento 2.3.2 – Your link to reset the password has expired

I use Magento 2.3.2. When I request a password reset from the administrator, I will immediately receive an e-mail with a reset link. If I click immediately, I get the message "Your password reset link has expired".

When I request a password reset from the front of the site, I get the message "We can not send the password reset email."

Is there anyone who can help me solve this problem?
I use the postage theme.

magento2 – Translation package for Magento 2 does not make any changes on the website?

What I want?

I would like to translate Magento 2 into the Serbian language.

What I did?

I followed the instructions in the official Magento manual to create a language pack. I've followed the "Sample language pack example" guide at

After that, I ran the following commands:

  • magento setup: upgrade
  • Magento Cache: Flush

What happened?

Well, actually nothing happened. There is no change on the website.


  • Distribution: Centos 7
  • Single-store mode is activated
  • magento version: 2.3.3
  • Name of the language file: sr_CS.csv

Contents of the package folder:

composer.json language.xml registration.php sr_CS.csv

magento2.3 – How to programmatically delete in Magento2 all configurable products with associated simple products from a specific category

How do I programmatically delete all configurable products with related simple products from certain categories in Magento2?

I found an old theme for Magento 1, but that's not what I need.

I know how to remove the simple and the configuration separately, but I do not understand how all configuration products and their associated simplples are removed with a specific category of magento2

Many thanks