• Hey David

    I’m playing with the display ex inc vat function in combination with placeholders.

    I can display prices ex vat and the call iftax /iftax and display some word and price incl of VAT. I am operating under Danish law that binds me to sell for the price presented incl VAT to consumer, even if I did a miscalculation….

    Now problem is my added comment does not show Variable Products as you can see here. That means in this case any consumer can claim the Lumber Jack shirt and the Tee for that price incl VAT, while the price displayed is ex VAT. The biker jacket is ok presented since it’s a single product.

    In other words, I need to display all incl vat and then have the side comment excl VAT. I tried this but it shows nothing:

    {iftax} For {country} {price_excluding_tax} excl. vat{/iftax}

    So I guess I am looking for an if_no_tax placeholder/tag

    1) Price incl tax always fx € 150
    2) If country is no tax
    3) then add: For Ukraine € 120 Excl. VAT

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi,

    WooCommerce doesn’t have the hooks to make this possible in all situations. However, you can add this to your wp-config.php file and it may work for you:

    
    define('WOOCOMMERCE_VAT_PARSE_SUFFIXES_ALSO_WHEN_VARIABLE', true);
    

    Add it after the opening <?php line.

    David

    Thread Starter hebhansen

    (@hebhansen)

    Hey David

    Thx. Please enlighten me. What does code do? Do I get extra placeholders ?

    Thread Starter hebhansen

    (@hebhansen)

    Thx David

    It does something, but it’s not so pretty

    Can it be fixed….

    Thread Starter hebhansen

    (@hebhansen)

    It does not pull the incl. vat price. This is the line I use:

    ?excl. VAT{iftax}, For {country} {price_including_tax} incl. VAT{/iftax}

    Is there an error?

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    The substitution of this part – {price_including_tax} – is done by WooCommerce core, not by our plugin. When I get a moment I’ll test that on my own site to see what happens there.

    David

    Thread Starter hebhansen

    (@hebhansen)

    Thx Dave

    I Think this is the Right presentation for my shop under the law i’m operating. So it will be a great help. I might drop a line in the Woo forum, and see.

    But thx. I’ll nominate you for the Nobel price, for best support within the WP community??

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    This is working as expected for me…. I put into the settings exactly what you have (I copied and pasted it):

    https://snipboard.io/cXgaRV.jpg

    And this is the result I got, on a variable product:

    https://snipboard.io/KcCy9M.jpg

    So, I don’t know what that isn’t working for you. Does it work if you, for testing purposes, de-activate all other plugins (i.e. except this one and WooCommerce), switch to a default theme and then clear any caches and reload the page? That fragment is done by WooCommerce itself, as I say. If it still doesn’t work with only those two plugins active, does it work if only WooCommerce is active? If it still doesn’t work, what version of WooCommerce do you have?

    David

    Thread Starter hebhansen

    (@hebhansen)

    Hey David

    I checked a product now and it appears that error is partial…

    If you see at top pricing compared to bottom.

    Price

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Does the same happen if you, for testing purposes, temporarily deactivate all other plugins (except WooCommerce of course), and switch to a default theme?

    Thread Starter hebhansen

    (@hebhansen)

    Let me give it a try and get back to you here. I am shifting theme, so I have my hands full these days… Problem persists for official WP Twenty Twenty 3 theme… So fair to say, it’s not a theme issue since I saw it on both…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Excl & Incl VAT’ is closed to new replies.