• Resolved kon30fyllou

    (@kon30fyllou)


    I would like to remove the incl. tax label. I tried to add a filter with your plugin enabled with no result. I also tried to put an empty string at the plugin placeholder. That didn’t work either. Which is the proper way to add empty text at your plugin placeholder?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @kon30fyllou,

    Thanks so much for writing in to us about WooCommerce Customizer! I appreciate it and I’m happy to help out here.

    Would it be possible to see a screenshot of the setting you’re trying to modify? Additionally, would it be possible to see the code where you tried to add the filter?

    Thank you very much!

    Julie ??
    SkyVerge

    Hi @kon30fyllou,

    It’s been a while since we heard from you, so I’m going to mark this topic as resolved.

    If you’re still experiencing issues please take a look at our FAQs for more information and create a new thread if you have further questions.

    Thanks,

    Julie ??
    SkyVerge

    Thread Starter kon30fyllou

    (@kon30fyllou)

    Hi, the code I used is the following:

    
    function sv_change_email_tax_label( $label ) {
        $label = '';
        return $label;
    }
    add_filter( 'woocommerce_countries_inc_tax_or_vat', 'sv_change_email_tax_label');

    The field I try to modify in settings is the follwing:
    Woocommerce->Settings->Customizer->Misc->Including Tax Label

    • This reply was modified 3 years, 5 months ago by kon30fyllou.
    • This reply was modified 3 years, 5 months ago by kon30fyllou.

    Hi @kon30fyllou,

    Thanks so much for coming back to me, I appreciate it.

    The issue here is that if our field in the settings is blank, it defaults to the default WooCommerce value (incl. VAT) or (incl. tax).

    As such, the easiest solution here is to use the free Say What Plugin:

    https://www.ads-software.com/plugins/say-what/

    Then you can target either:
    (incl. VAT)
    or
    (incl. tax)

    as your original string, use woocommerce as the text domain and then you can leave the replacement string blank. Here’s an example of how I set it up in Say What:

    https://cloud.skyver.ge/Wnux4g9X

    And this is what I get on the frontend at checkout, replacing the (incl. tax) with nothing:

    https://cloud.skyver.ge/6qur7gn9

    Would you please let me know if that helps out at all?

    Thanks so much,

    Julie ??
    SkyVerge

    Thread Starter kon30fyllou

    (@kon30fyllou)

    Thank you for your answer.

    The truth is that I wouldn’t like yo add an extra plugin only for this functionality. What about the code? Why this doesn’t work?

    Hi @kon30fyllou,

    Totally understand! I wanted to recommend Say What because it’s free and it’s absolutely the easiest way to change text.

    As to the code, I’m afraid I’m not a WooCommerce developer, so I’m not sure why that’s not working. You might want to ask in the WooCommerce support forum:

    https://www.ads-software.com/support/plugin/woocommerce/

    That said, you should be able to modify the .po file for your language or creating a new one from the template here:

    plugins/woocommerce/i18n/languages/woocommerce.pot

    (I recommend POEdit for modifying .pot files and generating new .po files.)

    Ultimately, though, this doesn’t have to do with our Customizer plugin because the field is blank and is therefore defaulting to the WooCommerce default.

    I hope that helps to explain things a bit!

    Is there anything else I can help out with? Please don’t hesitate to let me know.

    Thanks,

    Julie ??
    SkyVerge

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add empty label at incl. tax’ is closed to new replies.