YayCurrency Documentation
  • YayCurrency Documentation
  • Getting Started
    • Introduction
    • System Requirements
    • How to Install
    • Enter License key
    • How To Update YayCurrency
    • Uninstall and Delete
  • Main Features
  • Configurations
    • Manage Currency
    • Custom Rounding
    • Checkout Options
      • Hide estimated price at checkout
      • Hide checkout notice payment method
      • Force payment by customer country
      • Force Currency for Specific Payment Methods
    • Display Options
      • Use params on URL
      • Add A Few Parameters to Display Currency Switcher
    • Advanced Settings
      • Apply multiple currencies to Google Crawlers (or Bots)
      • Fixed Price for Each Currency Option for Bundle/Composite Product
    • Analytics
    • Order Info
    • Developer zone
      • Available YayCurrency Hooks
      • Available YayCurrency Shortcodes
  • Menu Option
  • Widget Option
  • Compatibility
    • Cache plugins
    • Dokan
    • YITH Points and Rewards
    • Name Your Price
    • Polylang
    • WPML
    • WooCommerce Subscriptions
    • Wholesale Pro by Barn2
    • WooCommerce Product Bundles
    • LearnPress
    • Lottery for WooCommerce
    • FunnelKit Automations
    • WordPress Tour & Travel Booking
    • B2B Market by MarketPress
    • Tiered Pricing Table for WooCommerce
    • Bookings Appointments for WooCommerce
    • Advanced Product Fields Extended
  • Why Upgrade?
  • OTHER LINKS
    • FAQs
    • Common Issues
    • Troubleshooting
      • How to pay without PayPal
    • Changelog
    • Support
Powered by GitBook
On this page

Was this helpful?

  1. Configurations
  2. Developer zone

Available YayCurrency Shortcodes

PreviousAvailable YayCurrency HooksNextMenu Option

Last updated 5 months ago

Was this helpful?

  1. Show the currency switcher dropdown: [yaycurrency-switcher]

  1. Show the currency switcher menu dropdown: [yaycurrency-menu-item-switcher]

  1. Get the price html from the original currency to the current currency. params: yaycurrency-price-html]:

  • price: Original price that you want to convert.

usage: 
[yaycurrency-price-html price="99"]
  1. Get the product price html converted from the original currency to the current currency: [yaycurrency-product-price-html] --- Support for Single Product pages or Product Archive Loop --- Coming soon.

  • product_id: product ID of the product you want to convert currency.

usage: 
[yaycurrency-price-html product_id="399"]
  1. Get the price html from the original currency to the current currency: [yaycurrency-fixed-price-html] (PRO version only). --- Coming soon.

  • price: Original price that you want to convert.

  • fixed_countries: get the fixed price by countries.

ex:

*** fixed_countries='12|SG,15|FR,10|IN,25|JP,99|VN' --> get fixed price if match country code

*** fixed_countries='12|SG|SGD,15|FR|EUR,10|IN|INR,25|JP|JPY,99|VN|VND' --> get fixed price if match country code and currency code

  • fixed_currencies: get the fixed price by currencies.

ex:

*** fixed_currencies='12|SGD,15|EUR,10|IND,25|JPY,20000|VND' --> get fixed price if match currency code

: 
[yaycurrency-price-html fixed_currencies="12|SG,15|FR,10|IN,25|JP,99|VN"]
[yaycurrency-price-html fixed_currencies="12|SG|SGD,15|FR|EUR,10|IN|INR,25|JP|JPY,99|VN|VND"]
[yaycurrency-price-html fixed_currencies="12|SGD,15|EUR,10|IND,25|JPY,20000|VND
  1. Display a currency converter to convert a specific value between currencies: [yaycurrency-converter] --- Coming soon.