{"id":3730,"date":"2023-11-07T07:12:11","date_gmt":"2023-11-07T07:12:11","guid":{"rendered":"https:\/\/addify.store\/documentation\/?page_id=3730"},"modified":"2023-11-07T07:12:12","modified_gmt":"2023-11-07T07:12:12","slug":"how-to-apply-restrictions-based-on-start-and-end-date","status":"publish","type":"page","link":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/","title":{"rendered":"How to Apply Restrictions Based on Start and End Date?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Applying Restrictions Based on Date Range<\/h2>\n\n\n\n<p>To apply restrictions based on start and end dates using the WooCommerce Cart &amp; Order Restriction plugin, follow these steps:<\/p>\n\n\n\n<p><strong>Install and Activate the Plugin:<\/strong><\/p>\n\n\n\n<p>Ensure that you have already installed and activated the WooCommerce Cart &amp; Order Restriction plugin on your WordPress website.<\/p>\n\n\n\n<p><strong>Access the Plugin Settings:<\/strong><\/p>\n\n\n\n<p>Go to your WordPress dashboard and navigate to <strong>WooCommerce <\/strong>&gt; <strong>Order Restriction<\/strong>.<\/p>\n\n\n\n<p><strong>Create or Edit a Restriction Rule:<\/strong><\/p>\n\n\n\n<p>To set up restrictions based on specific date ranges, you can either create a new cart and order restriction rule by clicking<strong> &#8220;Add New Rule&#8221; <\/strong>or edit an existing rule.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configure the Date Range Restriction<\/h3>\n\n\n\n<p>In the rule settings, you&#8217;ll find a section for <strong>&#8220;Restricting Orders Based on Duration.&#8221;<\/strong><\/p>\n\n\n\n<p><strong>Date Range:<\/strong><\/p>\n\n\n\n<p>Choose the &#8220;Date Range&#8221; option to set limitations based on time.<\/p>\n\n\n\n<p><strong>Start Date:<\/strong> Set the start date for the rule. This is the date from which the restriction will be applied. For example, if you want to limit a promotion to run from November 1st, you would enter &#8220;2023-11-01&#8221; in the &#8220;Start&#8221; field.<\/p>\n\n\n\n<p><strong>End Date:<\/strong> Set the end date for the rule. This is the date until which the restriction will be applied. If you want the promotion to end on November 15th, you would enter &#8220;2023-11-15&#8221; in the &#8220;End&#8221; field.<\/p>\n\n\n\n<p><strong>Leaving Fields Empty:<\/strong> If you want the restriction to have no date limits, simply leave the &#8220;Start&#8221; and &#8220;End&#8221; fields empty. This means the rule will be applied without any date restrictions.<\/p>\n\n\n\n<p><strong>Save the Rule:<\/strong><\/p>\n\n\n\n<p>After configuring the date range restrictions, click the <strong>&#8220;Save Changes&#8221;<\/strong> button to save the rule.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/BJSd3UMUbdiGIY6a6opaSel9RWS63AFeYn_ovGWFSuFwh-SegZ5stfLhEsKY3wfNBPMXfNFNF-CV27CR4xK7RXpd35foXnISTPqIfCU13wq0R5rX-20tzWea0eGlOj0k7VM47A0R4lgMQdJLg26Hh3I7Ls7wVQkGt_rvJID37p8rvMEg3NSk6sxBxoOYew\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Test the Restriction:<\/strong><\/p>\n\n\n\n<p>To ensure that the date-based restrictions are working as intended, you can test by attempting to place orders before or after the specified date range. The rule should only apply during the defined date range.<\/p>\n\n\n\n<p>By following these steps, you can apply restrictions based on start and end dates using the WooCommerce Cart &amp; Order Restriction plugin. This feature allows you to control when specific rules or promotions are active within your WooCommerce store.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Applying Restrictions Based on Date Range To apply restrictions based on start and end dates using the WooCommerce Cart &amp; Order Restriction plugin, follow these steps: Install and Activate the Plugin: Ensure that you have already installed and activated the WooCommerce Cart &amp; Order Restriction plugin on your WordPress website. Access the Plugin Settings: Go [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3720,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"template-parts\/multiple-page-template.php","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-3730","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Apply Restrictions Based on Start and End Date? - Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Apply Restrictions Based on Start and End Date? - Documentation\" \/>\n<meta property=\"og:description\" content=\"Applying Restrictions Based on Date Range To apply restrictions based on start and end dates using the WooCommerce Cart &amp; Order Restriction plugin, follow these steps: Install and Activate the Plugin: Ensure that you have already installed and activated the WooCommerce Cart &amp; Order Restriction plugin on your WordPress website. Access the Plugin Settings: Go [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-07T07:12:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lh7-us.googleusercontent.com\/BJSd3UMUbdiGIY6a6opaSel9RWS63AFeYn_ovGWFSuFwh-SegZ5stfLhEsKY3wfNBPMXfNFNF-CV27CR4xK7RXpd35foXnISTPqIfCU13wq0R5rX-20tzWea0eGlOj0k7VM47A0R4lgMQdJLg26Hh3I7Ls7wVQkGt_rvJID37p8rvMEg3NSk6sxBxoOYew\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-cart-order-restriction\\\/how-tos\\\/how-to-apply-restrictions-based-on-start-and-end-date\\\/\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-cart-order-restriction\\\/how-tos\\\/how-to-apply-restrictions-based-on-start-and-end-date\\\/\",\"name\":\"How to Apply Restrictions Based on Start and End Date? - Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-cart-order-restriction\\\/how-tos\\\/how-to-apply-restrictions-based-on-start-and-end-date\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-cart-order-restriction\\\/how-tos\\\/how-to-apply-restrictions-based-on-start-and-end-date\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lh7-us.googleusercontent.com\\\/BJSd3UMUbdiGIY6a6opaSel9RWS63AFeYn_ovGWFSuFwh-SegZ5stfLhEsKY3wfNBPMXfNFNF-CV27CR4xK7RXpd35foXnISTPqIfCU13wq0R5rX-20tzWea0eGlOj0k7VM47A0R4lgMQdJLg26Hh3I7Ls7wVQkGt_rvJID37p8rvMEg3NSk6sxBxoOYew\",\"datePublished\":\"2023-11-07T07:12:11+00:00\",\"dateModified\":\"2023-11-07T07:12:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-cart-order-restriction\\\/how-tos\\\/how-to-apply-restrictions-based-on-start-and-end-date\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-cart-order-restriction\\\/how-tos\\\/how-to-apply-restrictions-based-on-start-and-end-date\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-cart-order-restriction\\\/how-tos\\\/how-to-apply-restrictions-based-on-start-and-end-date\\\/#primaryimage\",\"url\":\"https:\\\/\\\/lh7-us.googleusercontent.com\\\/BJSd3UMUbdiGIY6a6opaSel9RWS63AFeYn_ovGWFSuFwh-SegZ5stfLhEsKY3wfNBPMXfNFNF-CV27CR4xK7RXpd35foXnISTPqIfCU13wq0R5rX-20tzWea0eGlOj0k7VM47A0R4lgMQdJLg26Hh3I7Ls7wVQkGt_rvJID37p8rvMEg3NSk6sxBxoOYew\",\"contentUrl\":\"https:\\\/\\\/lh7-us.googleusercontent.com\\\/BJSd3UMUbdiGIY6a6opaSel9RWS63AFeYn_ovGWFSuFwh-SegZ5stfLhEsKY3wfNBPMXfNFNF-CV27CR4xK7RXpd35foXnISTPqIfCU13wq0R5rX-20tzWea0eGlOj0k7VM47A0R4lgMQdJLg26Hh3I7Ls7wVQkGt_rvJID37p8rvMEg3NSk6sxBxoOYew\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-cart-order-restriction\\\/how-tos\\\/how-to-apply-restrictions-based-on-start-and-end-date\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WooCommerce\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"WooCommerce Cart &amp; Order Restriction\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-cart-order-restriction\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How To\u2019s WCOR\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-cart-order-restriction\\\/how-tos\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How to Apply Restrictions Based on Start and End Date?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#website\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\",\"name\":\"Documentation\",\"description\":\"Documentation for Addify Extensions\",\"publisher\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/addify.store\\\/documentation\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#organization\",\"name\":\"Documentation\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/Asset-21-2x.png\",\"contentUrl\":\"https:\\\/\\\/addify.store\\\/documentation\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/Asset-21-2x.png\",\"width\":6761,\"height\":1853,\"caption\":\"Documentation\"},\"image\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Apply Restrictions Based on Start and End Date? - Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/","og_locale":"en_US","og_type":"article","og_title":"How to Apply Restrictions Based on Start and End Date? - Documentation","og_description":"Applying Restrictions Based on Date Range To apply restrictions based on start and end dates using the WooCommerce Cart &amp; Order Restriction plugin, follow these steps: Install and Activate the Plugin: Ensure that you have already installed and activated the WooCommerce Cart &amp; Order Restriction plugin on your WordPress website. Access the Plugin Settings: Go [&hellip;]","og_url":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/","og_site_name":"Documentation","article_modified_time":"2023-11-07T07:12:12+00:00","og_image":[{"url":"https:\/\/lh7-us.googleusercontent.com\/BJSd3UMUbdiGIY6a6opaSel9RWS63AFeYn_ovGWFSuFwh-SegZ5stfLhEsKY3wfNBPMXfNFNF-CV27CR4xK7RXpd35foXnISTPqIfCU13wq0R5rX-20tzWea0eGlOj0k7VM47A0R4lgMQdJLg26Hh3I7Ls7wVQkGt_rvJID37p8rvMEg3NSk6sxBxoOYew","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/","url":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/","name":"How to Apply Restrictions Based on Start and End Date? - Documentation","isPartOf":{"@id":"https:\/\/addify.store\/documentation\/#website"},"primaryImageOfPage":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/#primaryimage"},"image":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/#primaryimage"},"thumbnailUrl":"https:\/\/lh7-us.googleusercontent.com\/BJSd3UMUbdiGIY6a6opaSel9RWS63AFeYn_ovGWFSuFwh-SegZ5stfLhEsKY3wfNBPMXfNFNF-CV27CR4xK7RXpd35foXnISTPqIfCU13wq0R5rX-20tzWea0eGlOj0k7VM47A0R4lgMQdJLg26Hh3I7Ls7wVQkGt_rvJID37p8rvMEg3NSk6sxBxoOYew","datePublished":"2023-11-07T07:12:11+00:00","dateModified":"2023-11-07T07:12:12+00:00","breadcrumb":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/#primaryimage","url":"https:\/\/lh7-us.googleusercontent.com\/BJSd3UMUbdiGIY6a6opaSel9RWS63AFeYn_ovGWFSuFwh-SegZ5stfLhEsKY3wfNBPMXfNFNF-CV27CR4xK7RXpd35foXnISTPqIfCU13wq0R5rX-20tzWea0eGlOj0k7VM47A0R4lgMQdJLg26Hh3I7Ls7wVQkGt_rvJID37p8rvMEg3NSk6sxBxoOYew","contentUrl":"https:\/\/lh7-us.googleusercontent.com\/BJSd3UMUbdiGIY6a6opaSel9RWS63AFeYn_ovGWFSuFwh-SegZ5stfLhEsKY3wfNBPMXfNFNF-CV27CR4xK7RXpd35foXnISTPqIfCU13wq0R5rX-20tzWea0eGlOj0k7VM47A0R4lgMQdJLg26Hh3I7Ls7wVQkGt_rvJID37p8rvMEg3NSk6sxBxoOYew"},{"@type":"BreadcrumbList","@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/how-to-apply-restrictions-based-on-start-and-end-date\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/addify.store\/documentation\/"},{"@type":"ListItem","position":2,"name":"WooCommerce","item":"https:\/\/addify.store\/documentation\/woocommerce\/"},{"@type":"ListItem","position":3,"name":"WooCommerce Cart &amp; Order Restriction","item":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/"},{"@type":"ListItem","position":4,"name":"How To\u2019s WCOR","item":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-cart-order-restriction\/how-tos\/"},{"@type":"ListItem","position":5,"name":"How to Apply Restrictions Based on Start and End Date?"}]},{"@type":"WebSite","@id":"https:\/\/addify.store\/documentation\/#website","url":"https:\/\/addify.store\/documentation\/","name":"Documentation","description":"Documentation for Addify Extensions","publisher":{"@id":"https:\/\/addify.store\/documentation\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/addify.store\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/addify.store\/documentation\/#organization","name":"Documentation","url":"https:\/\/addify.store\/documentation\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/#\/schema\/logo\/image\/","url":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/11\/Asset-21-2x.png","contentUrl":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/11\/Asset-21-2x.png","width":6761,"height":1853,"caption":"Documentation"},"image":{"@id":"https:\/\/addify.store\/documentation\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/3730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/comments?post=3730"}],"version-history":[{"count":1,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/3730\/revisions"}],"predecessor-version":[{"id":3731,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/3730\/revisions\/3731"}],"up":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/3720"}],"wp:attachment":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/media?parent=3730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}