{"id":153,"date":"2018-03-09T14:07:27","date_gmt":"2018-03-09T14:07:27","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/?p=153"},"modified":"2023-08-17T13:00:56","modified_gmt":"2023-08-17T13:00:56","slug":"set-conditions-to-check-during-the-purchase","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/","title":{"rendered":"Set conditions to check during the purchase"},"content":{"rendered":"\n<p>To have a smart registration to your MailChimp lists, you have the possibility to insert an unlimited number of conditions that will be checked during the purchase.<br>Users will be registered to the lists and\/or interest groups\u00a0<b>only if all the conditions will be satisfied<\/b>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1456\" height=\"972\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions.jpg\" alt=\"Conditions\" class=\"wp-image-387\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions.jpg 1456w, https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions-300x200.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions-1024x684.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions-768x513.jpg 768w\" sizes=\"auto, (max-width: 1456px) 100vw, 1456px\" \/><\/a><\/figure>\n\n\n\n<p>As shown in the image above, the user will be registered only if:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>the order includes at least one &#8220;YITH Cushion&#8221;<\/li>\n\n\n\n<li>the order includes at least one of the products in &#8220;Shoes&#8221; category<\/li>\n\n\n\n<li>the order amount is lower than 50$<\/li>\n<\/ul>\n\n\n\n<p>You can also check the value of a specific checkout field.<br>To spot the field, you need to specify the value of\u00a0&#8220;name&#8221;\u00a0attribute (the value that will be sent to the $_POST variable at the checkout). The data can be easily recovered by opening the browser console and selecting a specific field.<\/p>\n\n\n\n<p>Here is an example: we would like to check that the email field doesn&#8217;t include the word &#8220;yopmail&#8221;.<br>We recover the value of &#8220;name&#8221; attribute in the email field.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2018\/03\/07-08.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"363\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2018\/03\/07-08.jpg\" alt=\"Get field name\" class=\"wp-image-155\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2018\/03\/07-08.jpg 900w, https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2018\/03\/07-08-300x121.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2018\/03\/07-08-768x310.jpg 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/a><\/figure>\n\n\n\n<p>Now we insert our condition and save the options set.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Custom-condition.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1376\" height=\"314\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Custom-condition.jpg\" alt=\"Custom condition\" class=\"wp-image-388\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Custom-condition.jpg 1376w, https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Custom-condition-300x68.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Custom-condition-1024x234.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Custom-condition-768x175.jpg 768w\" sizes=\"auto, (max-width: 1376px) 100vw, 1376px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>To have a smart registration to your MailChimp lists, you have the possibility to insert an unlimited number of conditions that will be checked during the purchase.Users will be registered to the lists and\/or interest groups\u00a0only if all the conditions will be satisfied. As shown in the image above, the user will be registered only &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Set conditions to check during the purchase<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,8],"tags":[],"class_list":["post-153","post","type-post","status-publish","format-standard","hentry","category-advanced-integration","category-settings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YITH MailChimp: Set conditions to check during the purchase<\/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:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YITH MailChimp: Set conditions to check during the purchase\" \/>\n<meta property=\"og:description\" content=\"To have a smart registration to your MailChimp lists, you have the possibility to insert an unlimited number of conditions that will be checked during the purchase.Users will be registered to the lists and\/or interest groups\u00a0only if all the conditions will be satisfied. As shown in the image above, the user will be registered only &hellip; Continue reading Set conditions to check during the purchase\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce MailChimp\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-09T14:07:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-17T13:00:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions.jpg\" \/>\n<meta name=\"author\" content=\"Alessio Torrisi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alessio Torrisi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/\",\"name\":\"YITH MailChimp: Set conditions to check during the purchase\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions.jpg\",\"datePublished\":\"2018-03-09T14:07:27+00:00\",\"dateModified\":\"2023-08-17T13:00:56+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/#primaryimage\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions.jpg\",\"contentUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set conditions to check during the purchase\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/\",\"name\":\"YITH WooCommerce MailChimp\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\",\"name\":\"Alessio Torrisi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"caption\":\"Alessio Torrisi\"},\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/author\/alessio\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YITH MailChimp: Set conditions to check during the purchase","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:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/","og_locale":"en_US","og_type":"article","og_title":"YITH MailChimp: Set conditions to check during the purchase","og_description":"To have a smart registration to your MailChimp lists, you have the possibility to insert an unlimited number of conditions that will be checked during the purchase.Users will be registered to the lists and\/or interest groups\u00a0only if all the conditions will be satisfied. As shown in the image above, the user will be registered only &hellip; Continue reading Set conditions to check during the purchase","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/","og_site_name":"YITH WooCommerce MailChimp","article_published_time":"2018-03-09T14:07:27+00:00","article_modified_time":"2023-08-17T13:00:56+00:00","og_image":[{"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions.jpg","type":"","width":"","height":""}],"author":"Alessio Torrisi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alessio Torrisi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/","name":"YITH MailChimp: Set conditions to check during the purchase","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/#primaryimage"},"image":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions.jpg","datePublished":"2018-03-09T14:07:27+00:00","dateModified":"2023-08-17T13:00:56+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/#primaryimage","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions.jpg","contentUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-content\/uploads\/sites\/90\/2023\/08\/Conditions.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/settings\/advanced-integration\/set-conditions-to-check-during-the-purchase\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/"},{"@type":"ListItem","position":2,"name":"Set conditions to check during the purchase"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/","name":"YITH WooCommerce MailChimp","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5","name":"Alessio Torrisi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","caption":"Alessio Torrisi"},"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/author\/alessio\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-json\/wp\/v2\/posts\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":4,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":435,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-json\/wp\/v2\/posts\/153\/revisions\/435"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-mailchimp\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}