Merge pull request #13158 from woocommerce/fix-13119

Only append tax price suffix if taxable
This commit is contained in:
Claudio Sanches 2017-02-11 12:08:11 -02:00 committed by GitHub
commit 1b1b784cb4
1 changed files with 1 additions and 1 deletions

View File

@ -1822,7 +1822,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
public function get_price_suffix( $price = '', $qty = 1 ) {
$html = '';
if ( ( $suffix = get_option( 'woocommerce_price_display_suffix' ) ) && wc_tax_enabled() ) {
if ( ( $suffix = get_option( 'woocommerce_price_display_suffix' ) ) && wc_tax_enabled() && 'taxable' === $this->get_tax_status() ) {
if ( '' === $price ) {
$price = $this->get_price();
}