开发者 | prowcplugins |
---|---|
更新时间 | 2024年12月19日 14:44 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 5.7.2 |
版权: | GNU General Public License v3.0 |
版权网址: | 版权信息 |
x*1.5+p1/p2
In addition in formula calculations you can use these shortcodes:
[math_round]
- Rounding shortcode.[math_ceil]
- Rounding up (ceil).[math_floor]
- Rounding down (floor).[math_min]
- Min value.[math_max]
- Max value.[product_meta]
- Product's meta (any).[product_weight]
- Product's weight.[product_height]
- Product's height.[product_width]
- Product's width.[product_length]
- Product's length.[product_stock]
- Product's stock.[product_total_sales]
- Product's total sales number.[product_id]
- Product's ID.[product_attr]
- Product's attribute.[product_date]
- Product's publish date.[option]
- Site option.[timestamp]
- Current time.[to_timestamp]
- Converts textual datetime description to timestamp.[if_customer_location]
- Price by customer's country (location by IP).[if_user_role]
- Price by customer's user role.[if_user_id]
- Price by customer's user ID.[if_time]
- Price by current time.[if_date]
- Price by current date.[if_value]
- Compares any two values.[if_product_id]
- Price by product's ID.[if_product_meta]
- Price by product's meta.[if_product_category]
- Price by product's category.[if_product_tag]
- Price by product's tag.[if_product_taxonomy]
- Price by product's taxonomy (any).[if_regular_price]
- Apply formula to regular product price.[if_sale_price]
- Apply formula to sale product price.[if_current_filter]
- Apply formula for selected filter only./wp-content/plugins/
directory.[if_date]
- Shortcodes are now processed in attributes.[product_date]
shortcode added.[product_meta]
- use_parent_product
attribute (defaults to no
) added (same in [product_weight]
, [product_length]
and all other shortcodes that use product_meta()
).[if_product_taxonomy]
- use_parent_product
attribute (defaults to no
) added (same in [if_product_category]
and [if_product_tag]
).[if_product_taxonomy]
- multiple
attribute (defaults to no
) added (same in [if_product_category]
and [if_product_tag]
).[if_user_id]
shortcode added.[if_product_meta]
shortcode added.yes
).[product_meta]
- convert_to_numeric
shortcode attribute added (defaults to yes
).[product_meta]
- product_id
shortcode attribute added (defaults to current product's ID).[product_attr]
shortcode added.[option]
shortcode added.[timestamp]
, [to_timestamp]
shortcodes added.[if_regular_price]
, [if_sale_price]
, [if_current_filter]
shortcodes added.[if_product_id]
shortcode added.[product_id]
shortcode added.[if_value]
- between
and not_between
comparison operators (and inclusive
attribute) added (i.e. for comma separated pairs).[if_value]
- in
and not_in
comparison operators added (i.e. for comma separated lists).[if_value]
- Evaluate formula action removed from shortcode's atts and content.[product_meta]
- Zero post meta value issue fixed.[product_meta]
- Applying conversion to number for non-numeric values (includes fractions).[if_value]
shortcode added.[if_product_taxonomy]
, [if_product_category]
, [if_product_tag]
shortcodes added to settings description (in "Default Formula" section).[if_product_taxonomy]
shortcode added.[if_product_category]
shortcode added.[if_product_tag]
shortcode added.[product_length]
shortcode added.[product_width]
shortcode added.[product_height]
shortcode added.[product_weight]
shortcode added (and %weight%
value marked as deprecated).[product_stock]
shortcode added (and %stock%
value marked as deprecated).[product_total_sales]
shortcode added (and %total_sales%
value marked as deprecated).[product_meta]
shortcode added.[if_customer_location]
shortcode added.[if_user_role]
shortcode added.[if_time]
shortcode added.[if_date]
shortcode added.[math_round]
shortcode added (and "Final price rounding" section marked as deprecated).[math_ceil]
shortcode added.[math_floor]
shortcode added.[math_min]
shortcode added.[math_max]
shortcode added.%weight%
special value added.version_updated()
etc.).