• Resolved mmpineda

    (@mmpineda)


    Hi again Ivijan,

    I would like to show “Content A” to: Europe, except Canary Islands (a Spanish region), Ceuta and Melilla (two Spanish cities).

    And I would like to show “Content B” to the rest of the world. That excludes Europe, but includes Canary Islands, Ceuta and Melilla.

    Will it work like this?

    [cfgeo include=”EU” exclude=”Canary Islands,Ceuta,Melilla”]Content A[/cfgeo]

    [cfgeo exclude=”EU” include=”Canary Islands,Ceuta,Melilla”]Content B[/cfgeo]

    Why do I need this? VAT tax! I want my site to be a membership site, I will need to apply VAT tax 21% only to customers from Europe, except Canary Islands, Ceuta and Melilla. So they need to see different Stripe buttons (with and without VAT tax).

    Could this be done?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ivijan-Stefan Stipic

    (@ivijanstefan)

    In the general, this example should work.

    If you can wait few days, I can made special shortcode for the VAT where you can do exactly what you need.

    This is good point and we in the general not had idea how to use VAT information. Some developers using PHP to handle with VAT but no one share details about it.

    Expect soon new plugin update and I will provide you shortcodes for this.

    Thank you!

    Thread Starter mmpineda

    (@mmpineda)

    Great news!! ??

    Using include and exclude at the same time has not worked… maybe because if I include Europe I can’t exclude Canary Islands at the same time!? They are in Europe!!

    For now, my only option is to include the non-VAT payment button twice, one of the instances showing only for out of EU people, and the other showing only for these Spanish areas. But they still will see the With-VAT payment button as well. I hope they are wise enough to choose their most convenient button… ??

    So, yes! The VAT shortcode will do the work perfectly if it works to hide/show text based on VAT or not VAT (provided that the result of its return is correct, so that it excludes Canary Island, Ceuta and Melilla).

    I will wait impatiently for this plugin update! ??

    Plugin Author Ivijan-Stefan Stipic

    (@ivijanstefan)

    Hello, I prepare new shortcodes what you can use:

    VAT CONTROL: If you need to show value-added tax (VAT) informations on the your website, there is 2 shortcodes what can help you a with it.

    [is_vat]You are under VAT[/is_vat]
    [is_not_vat]You are NOT under VAT[/is_not_vat]

    Both shortcodes have a default option that you can use as an alternative.

    [is_vat default="You are NOT under VAT"]You are under VAT[/is_vat]
    [is_not_vat default="You are under VAT"]You are NOT under VAT[/is_not_vat]

    Generally, these two shortcodes show or hide everything inside it, depending on the your needs.

    EU CONTROL: If you need to display some content related to European Union (EU) countries, you can do it on the two easy way:

    [in_eu]You are from the European Union[/in_eu]
    [not_in_eu]You are NOT from the European Union[/not_in_eu]

    Like many of our shortcodes, there is default options what you can use as an alternative:

    [in_eu default="You are NOT from the European Union"]You are from the European Union[/in_eu]
    [not_in_eu defauilt="You are from the European Union"]You are NOT from the European Union[/not_in_eu]

    These two shortcodes also show or hide everything inside it, depending on the your needs.

    I hope this will help you.

    Thread Starter mmpineda

    (@mmpineda)

    Hi Ivijan,

    Thank you very much!!!

    This is what it is working for me:

    [in_eu][cfgeo exclude=”Canarias,Ceuta,Melilla”]VAT included[/cfgeo][/in_eu]
    [cfgeo exclude=”EU” include=”Canarias,Ceuta,Melilla”]VAT excluded[/cfgeo]

    The code [is_vat] and [is_not_vat] works, but anyone who intends to sell to Canary Islands, Ceuta and Melilla should know that this won’t work, as it shows these regions as VAT=1, but they actually are VAT=0.

    So I would recommend my solution above instead. ??

    Plugin Author Ivijan-Stefan Stipic

    (@ivijanstefan)

    Thank you for this tip.

    I will include in the next version include and exclude attribute (property) to VAT shortcodes and you will get exactly what you need.

    Will let you know.

    Plugin Author Ivijan-Stefan Stipic

    (@ivijanstefan)

    If you update plugin and read this documenation, you will find include/exclude options now in the VAT and EU shortcodes.

    Example:
    [in_eu exclude="Canarias,Ceuta,Melilla"]VAT included[/in_eu]

    I hope this will help you.

    Thread Starter mmpineda

    (@mmpineda)

    Thanks, I will test it! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can I include a continent except a region and a couple of cities?’ is closed to new replies.