Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter claire1108

    (@claire1108)

    This is what I have for all products:

    `function change_product_price_html($price){

    $newPrice = “From “;
    $newPrice .= $price;
    $newPrice .= ” ex VAT”;

    return $newPrice;
    }

    add_filter(‘woocommerce_get_price_html’, ‘change_product_price_html’);

    Thread Starter claire1108

    (@claire1108)

    “I can add the text to all products

    how do you do this? if it is via code you can easily apply an if statement and check on the product type.”

    Yes, I can do this in the functions PHP, I thought I should be able to add an if statement but couldn’t figure out how to do it (am new to wordpress, much happier with VB/excel code)

    Thanks

    • This reply was modified 4 years, 10 months ago by claire1108.
    • This reply was modified 4 years, 10 months ago by claire1108.
    • This reply was modified 4 years, 10 months ago by claire1108.
Viewing 2 replies - 1 through 2 (of 2 total)