{"id":2866,"date":"2022-08-26T21:48:38","date_gmt":"2022-08-26T16:18:38","guid":{"rendered":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/"},"modified":"2022-09-02T14:27:56","modified_gmt":"2022-09-02T08:57:56","slug":"coupon","status":"publish","type":"docs","link":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/","title":{"rendered":"Coupon"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/09\/image-26.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"782\" src=\"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/09\/image-26-1024x782.png\" alt=\"\" class=\"wp-image-2952\" srcset=\"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/09\/image-26-1024x782.png 1024w, https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/09\/image-26-300x229.png 300w, https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/09\/image-26-768x587.png 768w, https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/09\/image-26.png 1096w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Coupon Rules<\/h2>\n\n\n\n<p>Add coupon code generation rules here. The rule is based on 3 factors<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Cart Value (sub-total)<\/li><li>Discount value<\/li><li>Percentage or fixed amount type<\/li><\/ol>\n\n\n\n<p>The format for the coupon rule is <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cart value : discount value : percentage \/ fixed<\/pre>\n\n\n\n<p>So a rule <strong>100:10:p<\/strong> means 10% discount coupon for cart more than $100<\/p>\n\n\n\n<p>Similarly, <strong>100:10:f<\/strong> means $10 (default currency) discount coupon for cart more than $100<\/p>\n\n\n\n<p>You can add multiple rules using commas <\/p>\n\n\n\n<p>for example: <strong>100:10:p, 200:15:p, 300:20:f<\/strong><\/p>\n\n\n\n<p>the above example means if the cart value is more than $100, then 10% discount coupon will be generated.<\/p>\n\n\n\n<p>If the cart value is more than $200, then 15% discount coupon will be generated. <\/p>\n\n\n\n<p>If the cart value is more than $300, then 20$ discount coupon will be generated. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>If you want to use one common rule for coupon generation regardless of the cart value, then mention value like this<\/p>\n\n\n\n<p><strong>0:10:p<\/strong><\/p>\n\n\n\n<p>The above rule means 10% discount coupon code.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>You can set up to 2 coupon code rules.<\/p>\n\n\n\n<p>One for the first abandoned email to the customer, and another rule for the reminder abandoned cart email to give more discounts to the customer.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>In some cases where coupon codes cannot be generated because none of the rules can be applied to the cart value, in such cases, you would like to hide the coupon block text. <\/p>\n\n\n\n<p>Therefore enclose the coupon block with shortcode {coupon_block_start} and {coupon_block_end}<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How to use coupon shortcodes in the template?<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"541\" src=\"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-9-1024x541.png\" alt=\"\" class=\"wp-image-2896\" srcset=\"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-9-1024x541.png 1024w, https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-9-300x158.png 300w, https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-9-768x405.png 768w, https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-9-1536x811.png 1536w, https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-9.png 1608w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>The below screenshot shows the email generated from the template shown in the screenshot above.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"656\" height=\"654\" src=\"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-8.png\" alt=\"\" class=\"wp-image-2894\" srcset=\"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-8.png 656w, https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-8-300x300.png 300w, https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/08\/image-8-150x150.png 150w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p><strong>Note: <\/strong>You can use shortcodes for the subject lines as well. <\/p>\n","protected":false},"featured_media":0,"parent":2865,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-2866","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Coupon - HuntBee Resources<\/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:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Coupon - HuntBee Resources\" \/>\n<meta property=\"og:description\" content=\"Coupon Rules Add coupon code generation rules here. The rule is based on 3 factors Cart Value (sub-total) Discount value Percentage or fixed amount type The format for the coupon rule is cart value : discount value : percentage \/ fixed So a rule 100:10:p means 10% discount coupon for cart more than $100 Similarly, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/\" \/>\n<meta property=\"og:site_name\" content=\"HuntBee Resources\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/huntbee.opencart\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-02T08:57:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/09\/image-26-1024x782.png\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/abandoned-cart-email\\\/setup\\\/coupon\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/abandoned-cart-email\\\/setup\\\/coupon\\\/\",\"name\":\"Coupon - HuntBee Resources\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/abandoned-cart-email\\\/setup\\\/coupon\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/abandoned-cart-email\\\/setup\\\/coupon\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/image-26-1024x782.png\",\"datePublished\":\"2022-08-26T16:18:38+00:00\",\"dateModified\":\"2022-09-02T08:57:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/abandoned-cart-email\\\/setup\\\/coupon\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/abandoned-cart-email\\\/setup\\\/coupon\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/abandoned-cart-email\\\/setup\\\/coupon\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/image-26.png\",\"contentUrl\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/image-26.png\",\"width\":1096,\"height\":837},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/abandoned-cart-email\\\/setup\\\/coupon\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Abandoned Cart Email\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/abandoned-cart-email\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Setup\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/abandoned-cart-email\\\/setup\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Coupon\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"name\":\"HuntBee Resources\",\"description\":\"OpenCart Extension Documentations - Guides - Blogs - Projects\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\",\"name\":\"HuntBee OpenCart\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"contentUrl\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"width\":945,\"height\":200,\"caption\":\"HuntBee OpenCart\"},\"image\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/huntbee.opencart\",\"https:\\\/\\\/www.instagram.com\\\/opencart.huntbee\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Coupon - HuntBee Resources","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:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/","og_locale":"en_US","og_type":"article","og_title":"Coupon - HuntBee Resources","og_description":"Coupon Rules Add coupon code generation rules here. The rule is based on 3 factors Cart Value (sub-total) Discount value Percentage or fixed amount type The format for the coupon rule is cart value : discount value : percentage \/ fixed So a rule 100:10:p means 10% discount coupon for cart more than $100 Similarly, [&hellip;]","og_url":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/","og_site_name":"HuntBee Resources","article_publisher":"https:\/\/www.facebook.com\/huntbee.opencart","article_modified_time":"2022-09-02T08:57:56+00:00","og_image":[{"url":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/09\/image-26-1024x782.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/","url":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/","name":"Coupon - HuntBee Resources","isPartOf":{"@id":"https:\/\/www.huntbee.com\/resources\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/#primaryimage"},"image":{"@id":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/#primaryimage"},"thumbnailUrl":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/09\/image-26-1024x782.png","datePublished":"2022-08-26T16:18:38+00:00","dateModified":"2022-09-02T08:57:56+00:00","breadcrumb":{"@id":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/#primaryimage","url":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/09\/image-26.png","contentUrl":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2022\/09\/image-26.png","width":1096,"height":837},{"@type":"BreadcrumbList","@id":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/coupon\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.huntbee.com\/resources\/"},{"@type":"ListItem","position":2,"name":"Abandoned Cart Email","item":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/"},{"@type":"ListItem","position":3,"name":"Setup","item":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/"},{"@type":"ListItem","position":4,"name":"Coupon"}]},{"@type":"WebSite","@id":"https:\/\/www.huntbee.com\/resources\/#website","url":"https:\/\/www.huntbee.com\/resources\/","name":"HuntBee Resources","description":"OpenCart Extension Documentations - Guides - Blogs - Projects","publisher":{"@id":"https:\/\/www.huntbee.com\/resources\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.huntbee.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.huntbee.com\/resources\/#organization","name":"HuntBee OpenCart","url":"https:\/\/www.huntbee.com\/resources\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/","url":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","contentUrl":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","width":945,"height":200,"caption":"HuntBee OpenCart"},"image":{"@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/huntbee.opencart","https:\/\/www.instagram.com\/opencart.huntbee\/"]}]}},"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/comments?post=2866"}],"version-history":[{"count":8,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2866\/revisions"}],"predecessor-version":[{"id":2953,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2866\/revisions\/2953"}],"up":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2865"}],"next":[{"title":"Cart Item Templates","link":"https:\/\/www.huntbee.com\/resources\/docs\/abandoned-cart-email\/setup\/cart-item-templates\/","href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2901"}],"wp:attachment":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/media?parent=2866"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=2866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}