WPStorm China Pricing for WooCommerce
Stores WooCommerce product prices in CNY and calculates the customer price in Toman using an admin-controlled CNY exchange rate and rounding rule.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/esradev/wpstorm-china-pricing/archive/refs/heads/main.zipStores 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.