开发者 |
algoritmika
anbinder wpcodefactory omardabbas kousikmukherjeeli karzin |
---|---|
更新时间 | 2024年4月18日 21:57 |
PHP版本: | 4.4 及以上 |
WordPress版本: | 6.5 |
版权: | GNU General Public License v3.0 |
版权网址: | 版权信息 |
[alg_wc_ppq_table]
and/or [alg_wc_product_ppq_table]
shortcodes./wp-content/plugins/
directory.alg_wc_ppq_discount_by_quantity
filter added.[alg_wc_product_ppq_table]
:percent_row_format
(defaults to -%level_discount_percent%%
).percent_row_format_rounded
(defaults to -%level_discount_percent_rounded%%
).discount_row_format
(defaults to -%level_discount_amount_price%
).alg_wc_product_ppq_table_placeholders
filter added.alg_wc_product_ppq_table_rows
filter added.[alg_wc_ppq_products_list]
- columns
- Allowing columns without titles, e.g., image
.[alg_wc_product_ppq_table]
- price_row_format
attribute now accepts the heading_format
placeholders as well, i.e.:%level_min_qty%
,%level_max_qty%
,%level_discount%
,%level_discount_amount%
,%level_discount_percent%
,%level_discount_percent_rounded%
.[alg_wc_ppq_products_list]
- columns
- price_excl_tax
and price_incl_tax
columns added.[alg_wc_ppq_products_list]
- limit
attribute added (defaults to -1
).alg_wc_wholesale_pricing_settings_per_item_get_options
filter added.alg_wc_wholesale_pricing_get_placeholders
filter added.Alg_WC_Wholesale_Pricing_Frontend::get_placeholders()
function).has_levels()
function).alg_wc_wholesale_pricing_dropdown_levels_data_raw
filter added.[alg_wc_product_ppq_table]
- heading_format_singular
attribute added (defaults to an empty string).[alg_wc_product_ppq_table]
- Passing $price_level
to the alg_wc_product_wholesale_pricing_table_heading_format
filter now.%old_price_single_incl_tax%
,%new_price_single_incl_tax%
,%old_price_total_incl_tax%
,%new_price_total_incl_tax%
,%old_price_single_excl_tax%
,%new_price_single_excl_tax%
,%old_price_total_excl_tax%
,%new_price_total_excl_tax%
.[alg_wc_ppq_table]
and [alg_wc_product_ppq_table]
- qty_thousand_sep
shortcode attribute is applied to numeric quantities only.[alg_wc_ppq_table]
and [alg_wc_product_ppq_table]
- qty_thousand_sep
shortcode attribute added (defaults to an empty string).[alg_wc_ppq_translate]
shortcode added (for WPML and Polylang plugins).wpml-config.xml
file added.alg_wc_ppq_price_display_by_qty_localize_script_args
filter added.[alg_wc_ppq_products_list]
- alg_wc_ppq_table
table HTML class removed.[alg_wc_ppq_products_list]
- Table HTML classes added: alg_wc_ppq_table alg_wc_ppq_products_list
.alg_wc_wholesale_pricing_show_info_single_hook_options
filter added.[alg_wc_ppq_products_list]
- New columns
added: image
, image_with_add_to_cart_link
, image_with_product_link
. New attribute added: image_size
.[alg_wc_ppq_products_list]
- New attributes added: orderby
, order
.[alg_wc_ppq_products_list]
- alg_wc_ppq_products_list_query_args
filter added.[alg_wc_ppq_products_list]
- alg_wc_ppq_products_list_custom_column
filter added.[alg_wc_ppq_products_list]
- alg_wc_ppq_products_list_row
filter added.no
).[alg_wc_product_ppq_data]
- New attribute added - variation_type
. Defaults to first
. Other possible values: min
and max
. Used only when use_variation
attribute is set to yes
.[alg_wc_product_ppq_data]
- Possible "Undefined variable $is_enabled..." PHP warning fixed.get_product_price()
- Possible tax display errors in fixed
and price_directly
discount types fixed.get_product_price()
- New placeholders added:%old_price_single_incl_tax%
,%new_price_single_incl_tax%
,%old_price_total_incl_tax%
,%new_price_total_incl_tax%
,%old_price_single_excl_tax%
,%new_price_single_excl_tax%
,%old_price_total_excl_tax%
,%new_price_total_excl_tax%
.no
).alg_wc_product_wholesale_pricing
filter added.[alg_wc_wh_pr_product_meta]
to [alg_wc_ppq_product_meta]
.[alg_wc_wholesale_pricing_table]
to [alg_wc_ppq_table]
.[alg_wc_product_wholesale_pricing_table]
to [alg_wc_product_ppq_table]
.[alg_wc_wholesale_pricing_data]
to [alg_wc_ppq_data]
.[alg_wc_product_wholesale_pricing_data]
to [alg_wc_product_ppq_data]
.[alg_wc_wholesale_pricing_products_list]
to [alg_wc_ppq_products_list]
.[alg_wc_wholesale_pricing_products_list]
- "Undefined property: Alg_WC_Wholesale_Pricing_Pro_Shortcodes::$core" notice fixed.[alg_wc_product_wholesale_pricing_table]
- attributes added:hide_table_if_guest
,hide_table_for_user_roles
,show_table_for_user_roles
,hide_table_if_out_of_stock
,hide_if_insufficient_quantity
.[alg_wc_product_wholesale_pricing_table]
- add_discount_row
fixed.[alg_wc_product_wholesale_pricing_table]
add_discount_row
- Showing value for non-fixed discount types now.add_percent_row
- Showing value for non-percent discount types now.add_percent_row_rounded
attribute added (defaults to no
).heading_format
- %level_discount%
, %level_discount_amount%
, %level_discount_percent%
, %level_discount_percent_rounded%
placeholders added.table_style
attribute added.alg_wc_product_wholesale_pricing_table_heading_format
filter added.[alg_wc_product_wholesale_pricing_table]
- before
and after
attributes added.[alg_wc_product_wholesale_pricing_data]
- before
and after
attributes added.[alg_wc_product_wholesale_pricing_data]
- use_variation
attribute added (defaults to no
).[alg_wc_wholesale_pricing_table]
- before
and after
attributes added.[alg_wc_wholesale_pricing_data]
- before
and after
attributes added.alg_wc_wholesale_pricing_info_single_product_page_hook
and alg_wc_wholesale_pricing_info_single_product_page_priority
filters added.yes
).Alg_WC_Wholesale_Pricing_Settings_Per_Item
class is available now.get_discount_by_quantity()
.get_product_price()
- Variable - "Price directly". Affects [alg_wc_product_wholesale_pricing_table]
and [alg_wc_product_wholesale_pricing_data]
shortcodes.[alg_wc_wholesale_pricing_products_list]
- Shortcode rewritten. heading_format
, row_sku
, row_name
, row_category
, row_price
, link_rows
, custom_columns
attributes removed. columns
attribute added.alg_wc_wholesale_pricing_get_levels_data
filter added.alg_wc_wholesale_pricing_dropdown_levels_data
filter added.alg_wc_wh_pr_get_discount_type
filter renamed to alg_wc_wholesale_pricing_get_discount_type
.alg_wc_wh_pr_ajax_price_display_by_qty
filter renamed to alg_wc_wholesale_pricing_ajax_price_display_by_qty
.alg_wc_wh_pr_dropdown_input_value
filter renamed to alg_wc_wholesale_pricing_dropdown_input_value
.alg_wc_wh_pr_dropdown_option_label
filter renamed to alg_wc_wholesale_pricing_dropdown_option_label
.alg_wc_wh_pr_dropdown_option_style
filter renamed to alg_wc_wholesale_pricing_dropdown_option_style
.alg_wc_wh_pr_dropdown_option_class
filter renamed to alg_wc_wholesale_pricing_dropdown_option_class
.[alg_wc_wholesale_pricing_products_list]
- custom_columns
attribute added.[alg_wc_wholesale_pricing_products_list]
- link_rows
attribute added (defaults to price,levels
).[alg_wc_wholesale_pricing_products_list]
- use_transients
attribute added (defaults to no
).get_product_price()
- Variable - Safe-checks added.alg_wc_wh_pr_get_discount_type
filter added.alg_wc_wh_pr_dropdown_input_value
filter added.alg_wc_wh_pr_dropdown_option_label
filter added.alg_wc_wh_pr_dropdown_option_style
filter added.alg_wc_wh_pr_dropdown_option_class
filter added.alg_wc_wh_pr_ajax_price_display_by_qty
filter added.plugins_loaded
action now.table.variations select
on change
) event handler removed.div
now.1
quantity value removed from dropdown.show_variation
JS event added.%qty_total%
placeholder added.[alg_wc_product_wholesale_pricing_data]
- Min level quantity is now passed to the price
function, so now %old_price_total%
and %new_price_total%
placeholders are correctly processed in the price_format
attribute.load_plugin_textdomain()
function moved to the init
action.[alg_wc_product_wholesale_pricing_table]
- Initializing all variables now.quantity_pq_dropdown
- Timer removed (also for table.variations select
); input
event removed; getting value from the element itself now (i.e. instead of from the original quantity
field); standard qty input event handler removed.[alg_wc_product_wholesale_pricing_table]
- New attributes added: add_total_min_qty_price_row
and total_min_qty_price_row_format
; extra_row_before
and extra_row_after
; table_heading_type
; columns_styles
; table_class
.alg_wc_wholesale_pricing_get_item_product_id
filter added.alg_wc_wholesale_pricing_calculate_totals_product_id
filter added.yes
).%qty%
, %old_price_total%
, %new_price_total%
, %discount_percent%
, %discount_single%
, %discount_total%
placeholders added.change
event added for the quantity input.quantity_pq_dropdown
events handler added.%discount_percent%
, %discount_single%
and %discount_total%
placeholders added.yes
).[alg_wc_wholesale_pricing_products_list]
shortcode added.[alg_wc_product_wholesale_pricing_data]
shortcode added.[alg_wc_wholesale_pricing_data]
shortcode added.