How to Add Reset Days for Restriction (for example, only two hats can be purchased in seven days)?

Adding Reset Days for Restriction

To add a reset duration for a restriction in the WooCommerce Cart & Order Restriction plugin, such as allowing customers to purchase a limited number of items within a specified time frame (e.g., only two hats can be purchased in seven days), follow these steps:

Install and Activate the Plugin:

Make sure you have already installed and activated the WooCommerce Cart & Order Restriction plugin on your WordPress website.

Access the Plugin Settings:

Go to your WordPress dashboard and navigate to WooCommerce > Order Restriction.

Create or Edit a Restriction Rule:

To set up a reset duration for a restriction, you can either create a new cart and order restriction rule by clicking “Add New Rule” or edit an existing rule.

Configure the Reset Duration

In the rule settings, you’ll find a section for “Restricting Orders Based on Duration.”

Reset Duration:

Select the “Reset duration” option.

Duration:

Specify the number of days for which the rule applies to orders. For example, if you want to allow customers to purchase only two hats in a seven-day period, you would set the “Duration” to 7 days.

Save the Rule:

After configuring the reset duration, click the “Save Changes” button to save the rule.

Test the Restriction:

To ensure that the reset duration is working as intended, you can test it by adding products to your cart and going through the checkout process. The system should track the number of products purchased within the specified duration and prevent customers from exceeding the allowed quantity.

By following these steps, you can set up a reset duration for a restriction using the WooCommerce Cart & Order Restriction plugin. This feature allows you to limit the number of specific items that can be purchased within a defined time frame, helping you control and manage your store’s order restrictions more effectively.