{"id":125341,"date":"2017-09-12T17:12:25","date_gmt":"2017-09-12T16:12:25","guid":{"rendered":"https:\/\/d689c4c32f5390333.temporary.link\/?p=826"},"modified":"2024-02-02T16:40:09","modified_gmt":"2024-02-02T15:40:09","slug":"create-woocommerce-discount-based-customer-email-domain","status":"publish","type":"post","link":"https:\/\/www.orionorigin.com\/create-woocommerce-discount-based-customer-email-domain\/","title":{"rendered":"How to create a woocommerce discount based on the customer email domain?"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Email addresses from a company are grouped under the same email domain and can be easily used to target a group of customers for multiple purposes. If you wish for example to apply a discount on all customers from a group or company, one of the best way to do it is to target their company email address domain. <\/span><\/p>\n<p><span style=\"font-weight: 400\">In today\u2019s article, you will learn how to create a discount on an order subtotal or a product price based on the customers email domain using Conditional Discounts for WooCommerce.<\/span><\/p>\n<p><span style=\"font-weight: 400\">An email address is usually structured as <\/span><a href=\"mailto:pseudo@domain.com\"><span style=\"font-weight: 400\">pseudo@domain.com<\/span><\/a><span style=\"font-weight: 400\"> where domain.com is the domain name. It can be gmail, yahoo, hotmail or your company\u2019s. Anybody that work in a company will have a professional email based on that company domain name. <\/span><\/p>\n<p><span style=\"font-weight: 400\">This is a woocommerce bulk discount demo that will show you how to create a discount based on the customers email domain, follow the steps below: <\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click on <\/span><b>Discounts &gt; New discount<\/b><span style=\"font-weight: 400\"> to access the discount creation page.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Then scroll down to the rules section and click on the <\/span><b>Add rules group<\/b><span style=\"font-weight: 400\"> button to create a new set of rules.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the rules dropdown that will show up, select \u201c<\/span><b>If customer email domain<\/b><span style=\"font-weight: 400\">\u201d as discount condition.<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\"><span style=\"font-weight: 400\"><a href=\"https:\/\/www.orionorigin.com\/wp-content\/uploads\/2017\/06\/customer-email-domain-discount.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1919 aligncenter\" src=\"https:\/\/www.orionorigin.com\/wp-content\/uploads\/2017\/06\/customer-email-domain-discount.png\" alt=\"woocommerce discount email domain\" width=\"1898\" height=\"1270\" title=\"\" srcset=\"https:\/\/www.orionorigin.com\/wp-content\/uploads\/2017\/06\/customer-email-domain-discount.png 1898w, https:\/\/www.orionorigin.com\/wp-content\/uploads\/2017\/06\/customer-email-domain-discount-300x201.png 300w, https:\/\/www.orionorigin.com\/wp-content\/uploads\/2017\/06\/customer-email-domain-discount-600x401.png 600w, https:\/\/www.orionorigin.com\/wp-content\/uploads\/2017\/06\/customer-email-domain-discount-1024x685.png 1024w, https:\/\/www.orionorigin.com\/wp-content\/uploads\/2017\/06\/customer-email-domain-discount-150x100.png 150w, https:\/\/www.orionorigin.com\/wp-content\/uploads\/2017\/06\/customer-email-domain-discount-768x514.png 768w, https:\/\/www.orionorigin.com\/wp-content\/uploads\/2017\/06\/customer-email-domain-discount-1536x1028.png 1536w\" sizes=\"auto, (max-width: 1898px) 100vw, 1898px\" \/><\/a><\/span><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Then enter the domain name in the value field. If you want to apply the discount on multiple domains, you can add all of them, separated them by a comma.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select <\/span><b>Percentage off product price<\/b><span style=\"font-weight: 400\"> or <\/span><b>Percentage off order subtotal<\/b><span style=\"font-weight: 400\"> or any other action according to your needs.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the other discount parameters and then save your discount.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\">The plugin will then check the customer\u2019s email domain against the email of the logged-in customer and apply the discount if it matches any of the domains set in the discount rules.<\/span><\/p>\n<p><span style=\"font-weight: 400\">This completes our woocommorce bulk discount demo tutorial on the creation of discounts based on the customers email domain using <\/span><b>Conditional Discounts for WooCommerce<\/b><span style=\"font-weight: 400\">. If you have any questions, please ask via the comments section.<\/span><\/p>\n<div class=\"clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Email addresses from a company are grouped under the same email domain and can be easily used to target a group of customers for multiple purposes. If you wish for example to apply a discount on all customers from a group or company, one of the best way to do it is to target their [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":149671,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[416],"tags":[186,75,176,17],"class_list":["post-125341","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-discount","tag-email-domain","tag-woocommerce-all-discounts","tag-woocommerce-bulk-discounts-demo","tag-wordpress"],"acf":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.orionorigin.com\/service\/wp\/v2\/posts\/125341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.orionorigin.com\/service\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.orionorigin.com\/service\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.orionorigin.com\/service\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.orionorigin.com\/service\/wp\/v2\/comments?post=125341"}],"version-history":[{"count":2,"href":"https:\/\/www.orionorigin.com\/service\/wp\/v2\/posts\/125341\/revisions"}],"predecessor-version":[{"id":162772,"href":"https:\/\/www.orionorigin.com\/service\/wp\/v2\/posts\/125341\/revisions\/162772"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.orionorigin.com\/service\/wp\/v2\/media\/149671"}],"wp:attachment":[{"href":"https:\/\/www.orionorigin.com\/service\/wp\/v2\/media?parent=125341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.orionorigin.com\/service\/wp\/v2\/categories?post=125341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.orionorigin.com\/service\/wp\/v2\/tags?post=125341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}