3

I want to table formate for tier price. please see below screenshot.

enter image description here

1 Answer 1

6

Please change in the app/design/frontend/yourmodule/yourtheme/Magento_Catalog/templates/product/price/tier_prices.phtml

<ul class="<?php /* @escapeNotVerified */ echo($block->hasListClass() ? $block->getListClass() : 'prices-tier items'); ?>">
    <table class="tier-price-table-shipping" width='100%'>

add table after <ul> tag, go to line no. 105 , there you can add you <tr> and <td> , please check following code,

echo ($block->getShowDetailedPrice() !== false)
                            ? __(
        '<tr><td align="left" valigh="center" width="25%">%1</td><td align="left" valigh="center" width="25%">%2</td><td align="left" valigh="center" width="25%">Save<span class="percent tier-%3">&nbsp;%4</span>%</td><td align="left" valigh="center" width="25%">%5</td></tr>',
                                $tmp,

put the value as per your need. Don't forget to close table tag before end of </ul> tag.

Thanks,

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.