| 开发者 | rezapr2 |
|---|---|
| 更新时间 | 2026年10月5日 16:53 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
store price = round( base price × rate × (1 + markup %) + fixed markup )
When you change the rate, every exchange-rate priced product is recalculated in the background.
Features
wp erpfw rate, wp erpfw recalculate, wp erpfw status.erpfw_rate_providers – register automatic rate sources (implement Ratesmith\RateProviders\RateProviderInterface).erpfw_calculation_args / erpfw_calculated_prices – adjust the calculation.erpfw_supported_product_types – add product types.erpfw_rate_updated – fires when a rate changes.erpfw_prices_recalculated – fires after a recalculation run, useful for purging page caches.erpfw_manage_capability – capability needed to change rates (default manage_woocommerce).erpfw_get_rate() and erpfw_convert_to_store_price( $amount ).
You enter it. The rate source is pluggable, so automatic sources can be added by extensions.
They keep their current price and are flagged in the products list. A price is never set to zero.
No. Prices are calculated when the rate or a product changes, not when pages load.
The cart uses the product's current price, like any price change in WooCommerce. Orders keep the price and rate they were placed with.
Yes. All text can be translated on translate.wordpress.org.