开发者 |
wpcodefactory
Karzin algoritmika anbinder omardabbas kousikmukherjeeli karzin |
---|---|
更新时间 | 2024年12月10日 01:58 |
PHP版本: | 4.4 及以上 |
WordPress版本: | 6.7 |
版权: | GNU General Public License v3.0 |
版权网址: | 版权信息 |
“Great plugin: This plugin is fantastic, simple, light, compatible with all my other plugins (80 installed), and effective. Perfect if you sell services and to limit problems related to order duplications Support Is brilliant and fast. Strongly advised!” – ⭐⭐⭐⭐⭐ tommaso78Pro Version | Support | Documentation & How to | Demo Have you ever wanted to restrict the products your customer can purchase? Either in lifetime or in specific period? While this might not be the case for everyone (since we all want to sell as much as we can), in many cases you want to maintain your inventory and guarantee fairness across your customers (specially when running massive promotions), and here comes a handy plugin to restrict the amount, quantities, or orders that each customer can place on your store. In a nutshell, here is what you can do with this plugin:
“Great plugin & support: This plugin does exactly what it says it does. The creator Tom offers amazing support, and was very willing to help make sure everything was working perfectly. I definitely recommend this plugin and Tom’s support.” – ⭐⭐⭐⭐⭐ jburkhart24 “perfect service!: unbelievably good service. WPFactory quickly and accurately customized the plugin for us. This is how a plugin manufacturer must be. Thank you very much Pablo!” – ⭐⭐⭐⭐⭐ rawagmbh🏆 Do More: PRO Version All what's listed above (and more) is available in the free version, but for those who would like to go further and beyond, we have a premium version of Maximum Products per User for WooCommerce Pro plugin. 🏆Specify Limits by Category & Tags The plugin by default deals with products quantities, the Pro feature allows you to add limits (all limits mentioned above) based on category & tag. This option adds a new meta key in products categories & tags where you can specify the maximum limit you want to be enforced. 🏆Specify Limits by Product Want to specify a maximum amount by product and not quantity? You can configure the maximum amount/quantity of any particular product using this option, by having a new key in each product page to set the limit you need. 🏆Set Limits using Advanced Formulas The default limiting options aren't enough for you? Those who love math equations & formulas can use advanced methods to calculate limits for users, based on various shortcodes like: user_role, payment_method, product_id, term_id, product_sku. And much more. 🏆 Guest Users Advanced Options In the Pro version, you can select to prevent guest customers from buying anything on your store, or allow regular guest checkout but prevent exceeding plugin limits. Multiple options are also available to customize the error/notice messages to show to guest users. You can even change "Add to cart" button text/label for guest users to something like "Login to purchase", furthermore, you can hide products blocked from guest users from shop/category & search pages. 🏆 Allow Exceeding Limits If you just want error messages to become notices, you can allow users to place orders with exceeding limits without preventing them from checkout. 🏆 3rd Party Compatibility The plugin works seamlessly with most plugins in their standard functionalities, but we've added several advanced compatibility options with Point of Sale for WooCommerce (by Actuality Extensions) & WPC Composite Products for WooCommerce (by WPClever) to provide more integration with these plugins. 💯 Why WPFactory?
optimistex/math-expression
library.Alg_WC_MPPU_Users::get_order_products_by_term()
.is_singular()
function.[alg_wc_mppu_user_terms_limits]
and [alg_wc_mppu_user_product_limits]
shortcodes.alg_wc_mppu_datetime_to_compare
.wc_get_orders()
to avoid problems with HPOS.Alg_WC_MPPU_Core
.Alg_WC_MPPU_Core::$multilanguage
in Alg_WC_MPPU_Core
".[alg_wc_mppu_user_bought]
doesn't work if the formula option is not enabled.is_product
from alg_wc_mppu_user_bought
is not consistent.Alg_WC_MPPU_Shortcodes
.show_restrictions_col
param for the [alg_wc_mppu_user_product_limits] shortcode. Default value is "true".Alg_WC_MPPU_Core::get_max_qty_for_product()
.is_user_logged_in()
in some circumstances.is_user_logged_in()
in some circumstances.identify guests by checkout billing email address
.product_limit_meta
.show_unbought
parameter as false
.[alg_wc_mppu_user_product_limits]
.alg_wc_mppu_order_data_saved
.user_id
from [alg_wc_mppu_current_product_limit]
shortcode is not working.class-alg-wc-mppu-pro.php
.is_downloadable
and is_virtual
checks.[alg_wc_mppu_current_product_limit]
possibly triggers error on admin.[alg_wc_mppu_current_product_limit]
triggers error on admin.show_unbought
parameter performance from [alg_wc_mppu_user_product_limits]
shortcode when used as false
.limit_type
attribute to [alg_wc_mppu]
shortcode. Allowed values: grouped
, individual
. Default: individual
. It has to be used with multiple term ids or product ids. Example: [alg_wc_mppu limit="5" limit_type="grouped" term_id="77,96"]
.alg_wc_mppu_date_to_check
filter.[alg_wc_mppu_user_product_limits]
won't show "remain" and "bought" columns.swpm_membership_id
param to [alg_wc_mppu]
shortcode, adding compatibility to the WordPress Membership Plugin.bought_value
parameter to [alg_wc_mppu_user_product_limits]
shortcode. Possible values: smart
, per_product
. Default value set as smart
.show_unbought
parameter to [alg_wc_mppu_user_product_limits]
shortcode. Default is true
.show_unbought
parameter to [alg_wc_mppu_user_terms_limits]
shortcode. Default is true
.alg_wc_mppu_user_product_limits_item_validation
filter to [alg_wc_mppu_user_product_limits]
shortcode.alg_wc_mppu_user_terms_limits_item_validation
filter to [alg_wc_mppu_user_terms_limits]
shortcode.[alg_wc_mppu_current_product_limit]
shortcode param from 'template' to 'msg_template'.condition
to alg_wc_mppu_current_product_limit
shortcode. Default is empty. Example: %remaining% == 0
.sumo_membership_plan
param to [alg_wc_mppu]
shortcode.memberpress_plan_id
param to [alg_wc_mppu]
shortcode.delete_meta_data()
function.is_product
boolean param from [alg_wc_mppu_user_bought]
shortcode.return
param to [alg_wc_mppu_user_bought]
shortcode. Possible values: amount_bought
, boolean
.Y-m-d
date on date_range
parameter from [alg_wc_mppu_user_bought]
shortcode.Alg_WC_MPPU_Core::get_date_to_check()
to check for a fixed Y-m-d
date.alg_wc_mppu_validate_on_add_to_cart_quantity_do_add
filter.alg_wc_mppu_totals_data_increase_qty
filter.alg_wc_mppu_totals_data_decrease_qty
filter.alg_wc_mppu_totals_data
filter.alg_wc_mppu_orders_data_increase_qty
filter.woocommerce_before_checkout_form
.alg_wc_mppu_output_notices_args
filter.max_qty_by_formula()
function.hide_products_by_id
param for the [alg_wc_mppu_user_product_limits]
shortcode allowing to hide the products from the list.alg_wc_mppu_user_terms_limits
shortcode with taxonomy
parameter that can be set as product_cat
or product_tag
.is_plugin_active()
function.%first_order_date_exp_timeleft%
is not returning the correct time left for expiring.output_template
param to alg_wc_mppu_current_product_limit
shortcode having <span class="alg-wc-mppu-current-product-limit">{output_msg}</span>
as default value.is_product_blocked_for_guests()
function.[alg_wc_mppu_customer_msg]
shortcode with bought_msg
, not_bought_msg
, and bought_msg_min
params.[alg_wc_mppu_customer_msg]
shortcode and allow its use there.alg_wc_mppu_is_product_blocked_for_guests
hook.%payment_method_title%
placeholder added.payment_method
shortcode attribute added.no
). This changes the previous behaviour in plugin, where lifetime data was always retrieved from totals.alg_wc_mppu_data_product_or_term_id
filter added.alg_wc_mppu_get_cart_item_amount_by_term
filter added.alg_wc_mppu_get_cart_item_amount_by_parent
filter added.alg_wc_mppu_cart_item_amount
filter added.alg_wc_mppu_user_already_bought_do_count_order
filter added.alg_wc_mppu_user_already_bought
filter added.alg_wc_mppu_get_max_qty
- Filter applied to empty (i.e. zero) result as well now.product_sku
attribute - Product variable is now correctly reset for each new product check.checkbox
to radio
).checkbox
to select
).alg_wc_mppu_get_notice_placeholders
filter added.load_plugin_textdomain
moved to the init
hook.[alg_wc_mppu_user_product_limits]
- Negative values replaced with zero in "Remaining" and "Max" columns.-1
) in all limits settings now.[alg_wc_mppu_user_bought]
shortcode added.[alg_wc_mppu_current_product_limit]
shortcode) - Placeholders added: %in_cart%
, %bought_plus_in_cart%
, %remaining_minus_in_cart%
; also (for consistency): %adding%
, %in_cart_plus_adding%
, %bought_plus_in_cart_plus_adding%
, %remaining_minus_in_cart_minus_adding%
.alg_wc_mppu_get_first_order_date_exp
filter added.product_sku
attribute added to the [alg_wc_mppu]
shortcode.[alg_wc_mppu_placeholder]
shortcode added.%first_order_date_exp%
, %first_order_date%
- Getting date and time format from WordPress settings now (i.e. instead of hard-coded Y-m-d H:i:s
).[alg_wc_mppu_current_product_limit]
, [alg_wc_mppu_term_limit]
shortcodes) - %first_order_date%
, %first_order_amount%
, %first_order_date_exp%
, %first_order_date_exp_timeleft%
placeholders added.[alg_wc_mppu]
- Getting time for start_date
and end_date
shortcode attributes according to "Advanced > Time function" option now.%in_cart%
, %bought_plus_in_cart%
, %remaining_minus_in_cart%
, %adding%
, %in_cart_plus_adding%
, %bought_plus_in_cart_plus_adding%
, %remaining_minus_in_cart_minus_adding%
, %term_name%
placeholders added.is_downloadable
, is_virtual
attributes added to the [alg_wc_mppu]
shortcode.start_date
, end_date
, not_date_limit
attributes added to the [alg_wc_mppu]
shortcode.[alg_wc_mppu_term_limit]
shortcode added.alg_wc_mppu_date_to_check
filter - product_or_term_id
, current_user_id
and is_product
params added.limit
attribute vs deprecated max_qty
attribute) fixed.pcs.
removed; placeholders changed (%max_qty%
to %limit
, %qty_already_bought%
to %bought%
, %remaining_qty%
to %remaining%
)).product-limits
).Product limits
).[alg_wc_mppu_max_qty]
to [alg_wc_mppu]
); max_qty
attribute renamed to limit
.[alg_wc_mppu_user_product_quantities]
shortcode renamed to [alg_wc_mppu_user_product_limits]
.[alg_wc_mppu_current_product_quantity]
shortcode renamed to [alg_wc_mppu_current_product_limit]
.no
).Alg_WC_MPPU_Core::check_quantities()
).[alg_wc_mppu_current_product_quantity]
shortcode added.get_user_already_bought_qty()
- Making sure that the returned value is always numeric (i.e. returning zero instead of empty).alg_wc_mppu_check_quantities_for_product
filter - Now applying filter to false
results also.[alg_wc_mppu_user_product_quantities]
shortcode added.3600
(was 1
).alg_wc_mppu_save_quantities
filter added.alg_wc_mppu_calculate_data_wc_get_orders_args
filter added.alg_wc_mppu_check_quantities_for_product
filter added.membership_plan
shortcode attribute added.alg_wc_mppu_get_cart_item_quantities
filter added.alg_wc_mppu_validate_on_add_to_cart_quantity
filter added.alg_wc_mppu_save_quantities_item_qty
filter added.alg_wc_mppu_get_max_qty
filter added.alg_wc_mppu_date_range
filter added.alg_wc_mppu_date_to_check
filter added.[alg_wc_mppu_translate]
shortcode added (for "Customer message").