Skip to content

Products block does not get rendered in the HTML output with Magento 2.4 #27

Open
@andres-linares2211

Description

@andres-linares2211

Hey guys, it's me again.
After you added the compatibility with PHP 7.4 I could finally use the page builder functionality within Vue Storefront.

But now there comes a problem.
In Magento 2.3 I was using the products block to get some new products and they were successfully fetched. Now with Magento 2.4 it does not render. All I get from Magento is the external div that has a data-content-type="products" and nothing inside.

Maybe it has to do with what is inside the div? If a check the database I have this inside the div: {{widget type="Magento\CatalogWidget\Block\Product\ProductsList"...}

This is happening with an instance the Magento that has configured MSI and the default stock is 0.
I checked by changing the default stock to something != 0 and it works... Strangely.

I think this is more of a problem with Magento 2.4.0... Not sure.
Nonetheless, I report it here if anyone has the same problem 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions