A Magento 2 product normally has one of two statuses: enabled or disabled. Use the following code to check its status programmatically:
|
1 2 3 |
// 1 = aktiviert // 2 = deaktiviert $status = $product->getStatus() |
Fertig!
A Magento 2 product normally has one of two statuses: enabled or disabled. Use the following code to check its status programmatically:
|
1 2 3 |
// 1 = aktiviert // 2 = deaktiviert $status = $product->getStatus() |
Fertig!
The Firegento_Magesetup module for Magento 2 does not work with Hyvä out of the box. To resolve this, install the Magesetup_Firegento compatibility module. Run the following commands from your Magento 2 root directory:
|
1 2 |
composer require hyva-themes/magento2-firegento-magesetup php bin/magento setup:upgrade |
Afterwards, Magesetup_Firegento should work with your…
Hyvä does not use traditional product page tabs in the same way as Luma. Instead, the content is displayed as “Section Cards”. Adding a Hyvä Section Card is similar to adding a traditional Magento 2 Luma tab. First, add the…
Certain areas of your Magento 2 store can be excluded from the Hyvä theme, such as the checkout. In excluded areas, Hyvä is not active, so Tailwind CSS and Alpine.js are not loaded. Instead, traditional Magento 2 RequireJS components from…
You might encounter the following error when running the Hyvä npm build command: Cannot find module ‘postcss-import’ You can fix it by running this command in your child theme’s Tailwind directory:
|
1 |
npm install postcss-import |
A new Magento 2 security patch (APSB24-90) was recently released. Adobe strongly recommends installing it. Affected versions include Commerce Services Connector 3.2.5 and earlier in Adobe Commerce and Magento Open Source. Adobe has als kritisch eingestuft and it should be…
If you want to render the pager without the entire toolbar, for example in your Magento 2 theme’s list.phtml file, insert this code at the required position:
|
1 |
<?php echo($block->getToolbarBlock()->getPagerHtml()); ?> |
Reload the page. The pager should now appear separately from Magento 2′s…
Am 13.08.2024 Adobe has released a separate Magento 2 patch (APSB24-61) to address several critical security vulnerabilities. Installing the patch is strongly recommended. Among other issues, it addresses: Unauthorized uploading of files containing dangerous content Cross-Site Scripting Probleme Inkorrekte Autorisierung…
In Magento 2, you can assign a CMS block to a category. Usually it appears above the products. By modifying the file catalog_category_view.xml, you can move the block below the product list. Copy the file vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml into your child theme…