[wcj_text]

Display any text

Description

[wcj_text] shortcode displays any text. Shortcode has no required attributes, optional attributes are listed below.

Args

before
(optional) Text to place before the content. If content is empty this argument is ignored.

Default: None
after
(optional) Text to place after the content. If content is empty this argument is ignored.

Default: None
billing_country
(optional) Make shortcode results visible only in orders with specific billing country. Value is two letter country code. Can be comma separated list.

Default: None
not_billing_country
(optional) Make shortcode results visible only in orders excluding specific billing country. Value is two letter country code. Can be comma separated list.

Default: None

Examples

[wcj_text billing_country="DE"]Rechnung[/wcj_text][wcj_text not_billing_country="DE"]Invoice[/wcj_text]
Accessible through:
  • [wcj_text]
Tested on WooCommerce 3.5.7 and WordPress 5.1.1
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

Comments

1 Comment

  1. Jernej April 23, 2019 at 6:04 am #

    Great feature, but could be improved.
    In our use case, we use it to append EU VAT regulation text based on billing country. When customer is company within EU, we need to specify “Reverse Charge – Article 44 of Council Directive 2006/112/EC.”, when outside it is “Reverse charge – VAT exempt.”.

    But sometimes we also receive orders from EU students, where we need to calculate VAT.

    For such cases it would be great to be able to add additional conditional of invoice (VAT/TAX value in our case), to disable above text if VAT is paid for.

    Best,
    Yerney

    Reply to thread

    Avatar