• Hi there!
    I installed this plugin on my customers site and I really love it.
    The only thing that I miss is the option to change the price suffix when someone has a valid vat.
    In the shop (product page) I added the suffix ‘including vat’ in Woocommerce, but when someone enters a valid vat and goes back to the shop they still see the ‘including vat’ suffix. Any way to hide that when a valid vat is entered in your plugin? Maybe add a css class to the price when it is ex vat?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @dotcircle,

    Thanks for reaching out.

    I have escalated this with our development team. They will get back to you as soon as possible.

    Kind regards

    Plugin Contributor Kousik Mukherjee

    (@kousikmukherjeeli)

    Hello,

    You can try using this code within the condition when adding a filter for price hooks:

    add_filter( 'woocommerce_get_price_html', 'alg_euvat_custom_price_suffix', 999, 2 );

    function alg_euvat_custom_price_suffix( $price_html, $product ) {
    if ( alg_wc_eu_vat()->core->is_valid_and_exists() ) {
    $price_html .= ' ' . __('VAT Excluded', 'woocommerce');
    } else {
    $price_html .= ' ' . __('VAT Included', 'woocommerce');
    }
    return $price_html;
    }

    It should work like this. You can play with this type of code.

    Regards,
    Kousik Mukherjee

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Price suffix in shop’ is closed to new replies.