Support » Plugin: Booster for WooCommerce » Add Price suffix with VAT toggle button

  • Resolved bassetceltia

    (@bassetceltia)


    Hi,

    I tried to add a suffix on price (listing product), Ex VAT or Inc VAT according to what was selected with the toggle VAT button. I’ve tried to add this function, but it doesn’t seem like a good one, so could you help me? Maybe there is another solution with the plugin?

    add_filter( ‘woocommerce_get_price_suffix’, ‘custom_price_suffix’, 999, 4 );
    function custom_price_suffix( $html, $product, $price, $qty ){
    if ( $product->is_taxable() ) {
    return ‘ ‘ . __(‘inc VAT’, ‘woocommerce’);
    }else {
    return ‘ ‘ . __(‘ex VAT’, ‘woocommerce’);
    }
    return $html;
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • Also looking for the same solution, otherwise its really not clear to customers which option is selected.

    Plugin Support David G

    (@gravid7)

    Hi @bassetceltia

    Can you please let us know which plugin version you are using? Because in the latest version (5.3.9) If tax included then it displays “Tax toggle (incl.)” and if tax excluded then it displays “Tax toggle (excl.)”

    Plugin Support David G

    (@gravid7)

    Hi @bassetceltia

    I haven’t heard back from you, so I believe the issue has been resolved.
    I’m marking this topic complete, please feel free to open a new thread for any further queries.

    Thread Starter bassetceltia

    (@bassetceltia)

    Hi David,

    Actually at the widget level this is displayed but I would also like to display it at the price of each product.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add Price suffix with VAT toggle button’ is closed to new replies.