Some time we might need to get product tier prices shown as per our custom requirement, like in popup to show product detail, or any custom page in magento2.

 

 

 

If you want to get Tier price for product view page in you custom module or template then you can try this code:

 

$proViewBlock = $this->_objectManager->get("Magento\Catalog\Pricing\Render");

$proViewBlock->setPriceRender("product.price.render.default");

$proViewBlock->setPriceTypeCode("tier_price");

$proViewBlock->setZone("item_view");

 

echo $proViewBlock->toHtml();

 

If you are looking to load into any controller then make sure you have loaded layout before calling this method.

 

You can find xml which generate tier_price html in product view page at this path:

 

/app/code/Magento/Catalog/view/frontend/layout/catalog_product_view.xml around linke #L55-L61

 

One more things before calling above script there should be a product registry registred.

$this->registry->register('product', $product);