Magento 2 supports minimum purchase quantities. This setting defines the minimum number of units that must be added to the cart. If you want the Add to Cart button on a Magento 2 category page (list.phtml) to ignore that minimum…
Displaying a CMS block below products on category pages (Magento 2)
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…
Pager missing after updating to Magento 2.4.3?
Sometimes after updating to Magento 2.4.3 the pager on the category page goes missing. This happens when you are overwriting templates/product/list.phtml in your theme. Just open that file and replace
|
1 |
<?= $block->getToolbarHtml() ?> |
with
|
1 |
<?= $block->getChildBlock('toolbar')->setIsBottom(true)->toHtml() ?>. |
This should solve the problem, your pager…
Pager missing after updating to Magento 2.4.3?
If the pager disappears from your Magento category page after upgrading to version 2.4.3, you may have overridden templates/product/list.phtml in your theme. Open the file and replace the following code:
|
1 |
<?= $block->getToolbarHtml() ?> |
with
|
1 |
<?= $block->getChildBlock('toolbar')->setIsBottom(true)->toHtml() ?> |
That should resolve the problem.
No results on page 2 or subsequent category pages (Magento 2)
If page 2 and subsequent category pages in your Magento 2.3.3 store return no results despite products being available, this may be related to Elasticsearch 6.x. The Magento team has released a patch for this issue. You can find it…
Changing the default sort order on category pages (Magento 1)
You can adjust the sort order for an individual category under that category’s Display Settings. To change the sort order for all categories, however, it is best to add a layout update directly to local.xml: desc asc desc asc
Category page loading extremely slow (Magento 1)
If the category page of your Magento store is loading really slow, the configurable swatches might be the problem. Override /app/code/core/Mage/ConfigurableSwatches/Helper/Mediafallback.php and move // normalize to all lower case before we start using them $optionLabels = array_map(function ($value) { return…
Category page loads extremely slowly (Magento 1)
If your Magento category pages are extremely slow, Magento swatches may be the culprit. Override /app/code/core/Mage/ConfigurableSwatches/Helper/Mediafallback.php and remove
|
1 2 3 4 |
// normalize to all lower case before we start using them $optionLabels = array_map(function ($value) { return array_map('Mage_ConfigurableSwatches_Helper_Data::normalizeKey', $value); }, $optionLabels); |
from its original location, then insert that code immediately above the surrounding foreach loop. This can substantially improve category page load…
Change column count of category page in admin area (backend) (Magento 1)
Open the category in the admin area (backend) and add the following xml to the layout update section.
|
1 2 3 |
<reference name="product_list"> <action method="setColumnCount"><count>4</count></action> </reference> |
Changing the category page column count programmatically (Magento 1)
Add the following code to your themes catalog\product\list.phtml file. It will change the column count to 2.
|
1 |
$this->setColumnCount(2); |