How to show tier price in Magento 2 Catalog Listing Page

In the world of e-commerce, providing customers with transparent and enticing pricing information is key to boosting sales and customer satisfaction. One effective way to achieve this is by showcasing tier prices directly on your Magento 2 catalog listing page. Tier prices allow customers to see the cost savings associated with buying in larger quantities, encouraging them to make bulk purchases. In this guide, we'll explore how you can effortlessly display tier prices on your Magento 2 catalog listing page, enhancing the overall shopping experience for your customers.

Before diving into the catalog listing page, it's crucial to ensure that tier prices are configured for your products. In your Magento 2 admin panel, navigate to 'Catalog' and then 'Products.' Select the product you want to set tier prices for and scroll down to the 'Advanced Pricing' section. Here, you can add tier prices based on quantity. Once configured, save your changes.

By default Magento shows tier prices only on Product Details pages. To display tier prices on the catalog listing page, you'll need to update the template files responsible for rendering product information. This can be achieved through theme customization or by creating a custom module.

If you prefer theme customization, locate the catalog product listing template file in your theme directory. The file is usually named catalog/product/list.phtml. Within this file, add the following code snippet where you want the tier prices to appear:

<?php
  if($_product->getTierPrice()){
    $tierPrice = $_product->getTierPrice();
    foreach ($tierPrice as $key => $value) {
        $qty = (int)$value['price_qty'];
        $price = $value['price'];
        $formattedTierPrice = $this->helper('Magento\Framework\Pricing\Helper\Data')->currency(number_format($price, 2), true, false);
        $savePercentage = ceil(100 - ( (100 / $_product->getPrice())* $value['price']) ) ."%";
        echo "Buy $qty for ".$formattedTierPrice." each and save ".$savePercentage."<br>";
    }
}
?>

By following these steps, you can empower your Magento 2 store with the capability to showcase tier prices directly on the catalog listing page. This not only provides customers with valuable information about potential savings but also encourages them to make larger purchases, contributing to increased sales and customer satisfaction. As always, make sure to test any changes in a staging environment before implementing them on your live site to avoid any unexpected issues. Happy selling!