Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/esradev/wpstorm-china-pricing/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Stores WooCommerce product source prices in Chinese Yuan (CNY) and dynamically calculates the customer price in Iranian Toman.
Features
- Global CNY to Toman exchange rate.
- Configurable Toman rounding.
- CNY price field for simple products.
- CNY price field for variations.
- WooCommerce frontend/cart/checkout use the calculated Toman price.
- Order line items store the original CNY price and exchange rate snapshot.
- No automatic profit, shipping, customs, or other cost calculations.
Usage
- Install and activate WooCommerce.
- Install and activate this plugin.
- Go to WooCommerce > China Pricing.
- Set the CNY to Toman rate.
- Set rounding, or use 0 to disable it.
- Edit a WooCommerce product and enter its China Price (CNY).
- Save the product.
The product's WooCommerce price is calculated as:
CNY Price × CNY/Toman Rate
Then the result is rounded to the nearest configured rounding amount.