[WordPress] 外掛分享: WordPress EU VAT Helpers

首頁外掛目錄 › WordPress EU VAT Helpers
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
全新外掛
安裝啟用
尚無評分
3049 天前
最後更新
問題解決
WordPress 4.8+ v1.1.2 上架:2017-08-28

內容簡介

WordPress EU VAT Helpers 是一款基於 mpociot/vat-calculator 函式庫的歐盟增值稅工具外掛,透過多種短代碼自動偵測使用者所在國家,計算並顯示對應的歐盟 VAT 稅率與含稅金額,方便網站進行在地化貨幣與稅務呈現。

【主要功能】
• 依使用者 IP 自動偵測所在國家並套用對應 VAT 稅率
• 以短代碼將金額加上 VAT 並格式化為當地貨幣顯示
• 顯示使用者所在國家適用的 VAT 稅率百分比
• 依據是否適用 VAT 條件式顯示或隱藏指定內容
• 支援以 ISO 國碼手動覆寫預設偵測的國家
• 支援以 ISO-4217 代碼指定貨幣格式

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WordPress EU VAT Helpers」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This WordPress plugin is basically a wrapper around the nifty mpociot/vat-calculator library. Use at your own risk!
Shortcode Usage
[localize_currency value="133.42" currency="EUR"]
Add EU VAT to value and format the result as a currency.
Attributes:

value (required): The amount to format
currency (optional, default: ‘EUR’): Currency format as three-letter ISO-4217 code
country (optional, default by user’s IP address): Override the country for which to apply taxes and adapt the format (two-letter ISO-3166-1 alpha-2 code)

[vat_rate]
Display the EU VAT rate applicabe in the current user’s country in percent.
Attributes:

country (optional, default by user’s IP address): Override the country whose VAT rate to display (two-letter ISO-3166-1 alpha-2 code)

[ip_country]
Display the current user’s country based on their IP address.
[if_taxable]Echo something[/if_taxable]
Condtitionally display a piece of content if EU VAT is applicable in the current user’s country.
Attributes:

country (optional, default by user’s IP address): Override the country for which to check (two-letter ISO-3166-1 alpha-2 code)

[unless_taxable]Echo something[/unless_taxable]
Condtitionally display a piece of content if EU VAT is not applicable in the current user’s country. (Inverse of if_taxable)
Attributes:

country (optional, default by user’s IP address): Override the country for which to check (two-letter ISO-3166-1 alpha-2 code)

延伸相關外掛

文章
Filter
Apply Filters
Mastodon