WordPress.org

Ready to get started?Download WordPress

Forums

How to Add + Vat after product price in WooCommerce (3 posts)

  1. Xaain
    Member
    Posted 1 year ago #

    Hi,

    I have installed woocommerce on the wordpress blog, and i am having problem in adding the word + VAT just after the price. Just a display is required, i managed to display on the single product page by editing the price.php file

    See this link http://www.koolmaxgroup.com/koolmaxgroup/shop/koolmax-glass-lid-ice-cream-display-freezer

    The problem is on the related products at the end where the price is only being displays i want the word + VAT with it. and also on the category pages where products are being displayed like this link

    http://www.koolmaxgroup.com/koolmaxgroup/refrigeration/integral-cabinets/husky.html

    all product prices are displayed without showing the +VAT text. Can anyone help me in sorting out this.

    Look forward to hear from you.

    Thank you

    Regards

    Xaain

  2. NigelFreeney
    Member
    Posted 10 months ago #

    Woocommerce needs two files to be changed to allow the display of
    "+vat" or whichever sales tax needs to be applied.

    /woocommerce/single-product/price.php
    Controls the appearance on the actual product details

    Change
    <p itemprop="price" class="price"><?php echo $product->get_price_html(); ?> + vat</p>

    to
    <p itemprop="price" class="price"><?php echo $product->get_price_html(); ?><strong> + vat</strong></p>

    /woocommerce/loop/price.php
    Controls how the price appears everywhere else?

    Change
    <span class="price"><?php echo $price_html; ?></span>

    to
    <span class="price"><?php echo $price_html; ?> + vat</span>

    Can't show an example as the site is not yet live.

  3. marcopolocompany
    Member
    Posted 9 months ago #

    Yes, worked perfect for me, also if have a nice pict can change txt by GIF

Topic Closed

This topic has been closed to new replies.

About this Topic