woocommerce displaying prices with tax and without (1 post)

  1. Matys1001
    Posted 2 years ago #

    I'm having strange problem with $product->get_price_excluding_tax(), and $product->get_price_including_tax(),.

    I mean it works but only when I chose in seetings yes, ill provide prices with tax when I use no, i will provide pracies without tax these two displays the same price.

    Whats wrong with that ? I'm having that code in price loop

    <?php if ( $price_html = $product->get_price_html() ) : ?>
    <span class="price"><?php echo number_format( $product->get_price_excluding_tax(), 2,',','.'); ?> </span>
    <span class="price-tax"><?php echo number_format( $product->get_price_including_tax(), 2,',','.'); ?> </span>
    <?php endif; ?>


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic