{"id":74025,"date":"2017-08-29T20:34:02","date_gmt":"2017-08-29T20:34:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wordpress-eu-vat-helpers\/"},"modified":"2017-11-12T23:15:47","modified_gmt":"2017-11-12T23:15:47","slug":"wp-eu-vat-helpers","status":"closed","type":"plugin","link":"https:\/\/kn.wordpress.org\/plugins\/wp-eu-vat-helpers\/","author":14532861,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.2","stable_tag":"1.1.2","tested":"4.9.0","requires":"4.8","requires_php":"","requires_plugins":"","header_name":"WordPress EU VAT Helpers","header_author":"sehrgute.software","header_description":"WordPress helper shortcodes to display prices including applicable VAT rate for the user's location (based on IP address)","assets_banners_color":"","last_updated":"2017-11-12 23:15:47","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/sehrgutesoftware\/wp-eu-vat-helpers","header_author_uri":"https:\/\/sehrgute.software\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1105,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.1","1.1.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[8504,395,1734,63323,19126],"plugin_category":[45,48],"plugin_contributors":[145672],"plugin_business_model":[],"class_list":["post-74025","plugin","type-plugin","status-closed","hentry","plugin_tags-currency","plugin_tags-eu","plugin_tags-localization","plugin_tags-value-added-tax","plugin_tags-vat","plugin_category-ecommerce","plugin_category-language-tools","plugin_contributors-jsphpl","plugin_committers-jsphpl"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-eu-vat-helpers.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><a href=\"https:\/\/packagist.org\/packages\/sehrgut\/wp-eu-vat-helpers\"><\/a> <a href=\"https:\/\/travis-ci.org\/sehrgutesoftware\/wp-eu-vat-helpers\"><\/a> <a href=\"https:\/\/codecov.io\/gh\/sehrgutesoftware\/wp-eu-vat-helpers\"><\/a> <a href=\"https:\/\/styleci.io\/repos\/66555789\"><\/a><\/p>\n\n<p>This WordPress plugin is basically a wrapper around the nifty <a href=\"https:\/\/github.com\/mpociot\/vat-calculator\">mpociot\/vat-calculator<\/a> library. Use at your own risk!<\/p>\n\n<h3>Shortcode Usage<\/h3>\n\n<h4><code>[localize_currency value=\"133.42\" currency=\"EUR\"]<\/code><\/h4>\n\n<p>Add EU VAT to value and format the result as a currency.<\/p>\n\nAttributes:\n\n<ul>\n<li><code>value<\/code> (required): The amount to format<\/li>\n<li><code>currency<\/code> (optional, default: 'EUR'): Currency format as three-letter <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_4217\">ISO-4217<\/a> code<\/li>\n<li><code>country<\/code> (optional, default by user's IP address): Override the country for which to apply taxes and adapt the format (two-letter <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_3166-1_alpha-2\">ISO-3166-1 alpha-2<\/a> code)<\/li>\n<\/ul>\n\n<h4><code>[vat_rate]<\/code><\/h4>\n\n<p>Display the EU VAT rate applicabe in the current user's country in percent.<\/p>\n\nAttributes:\n\n<ul>\n<li><code>country<\/code> (optional, default by user's IP address): Override the country whose VAT rate to display (two-letter <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_3166-1_alpha-2\">ISO-3166-1 alpha-2<\/a> code)<\/li>\n<\/ul>\n\n<h4><code>[ip_country]<\/code><\/h4>\n\n<p>Display the current user's country based on their IP address.<\/p>\n\n<h4><code>[if_taxable]Echo something[\/if_taxable]<\/code><\/h4>\n\n<p>Condtitionally display a piece of content if EU VAT is applicable in the current user's country.<\/p>\n\nAttributes:\n\n<ul>\n<li><code>country<\/code> (optional, default by user's IP address): Override the country for which to check (two-letter <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_3166-1_alpha-2\">ISO-3166-1 alpha-2<\/a> code)<\/li>\n<\/ul>\n\n<h4><code>[unless_taxable]Echo something[\/unless_taxable]<\/code><\/h4>\n\n<p>Condtitionally display a piece of content if EU VAT is <em>not<\/em> applicable in the current user's country. (Inverse of <code>if_taxable<\/code>)<\/p>\n\nAttributes:\n\n<ul>\n<li><code>country<\/code> (optional, default by user's IP address): Override the country for which to check (two-letter <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_3166-1_alpha-2\">ISO-3166-1 alpha-2<\/a> code)<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<p>e.g.<\/p>\n\n<ol>\n<li>Upload the <code>wp-eu-vat-helpers<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Fix critical bug to allow installation via wordpress.org ;)<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Fix performance related to geo-ip lookups<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Add <code>ip_country<\/code> shortcode<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"WordPress helper shortcodes to display prices including applicable VAT rate for the user&#039;s location (based on IP address)","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/74025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=74025"}],"author":[{"embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jsphpl"}],"wp:attachment":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=74025"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=74025"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=74025"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=74025"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=74025"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=74025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}