{"id":1017,"date":"2026-03-18T18:01:18","date_gmt":"2026-03-18T18:01:18","guid":{"rendered":"https:\/\/doncept.com\/help\/?post_type=kb&#038;p=1017"},"modified":"2026-03-18T18:01:18","modified_gmt":"2026-03-18T18:01:18","slug":"how-to-set-discount-and-coupon-codes-in-wordpress","status":"publish","type":"kb","link":"https:\/\/doncept.com\/help\/article\/how-to-set-discount-and-coupon-codes-in-wordpress\/","title":{"rendered":"How to Set Discount and Coupon Codes in WordPress"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Offering discounts and coupon codes is a simple way to encourage purchases, reward loyal customers, and run promotional campaigns in your WooCommerce store. WooCommerce includes a built-in coupon management system that allows you to create different types of discounts, set expiration dates, and control how coupons are used.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This guide explains how to create and configure coupon codes directly from your WordPress dashboard.<\/span><\/p>\n<p><strong>For PC<\/strong><\/p>\n<div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-1017-1\" width=\"1280\" height=\"720\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/doncept.com\/help\/wp-content\/uploads\/2026\/03\/Adding-Coupon-PC.mp4?_=1\" \/><a href=\"https:\/\/doncept.com\/help\/wp-content\/uploads\/2026\/03\/Adding-Coupon-PC.mp4\">https:\/\/doncept.com\/help\/wp-content\/uploads\/2026\/03\/Adding-Coupon-PC.mp4<\/a><\/video><\/div>\n<p><strong>For Mobile<\/strong><\/p>\n<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-1017-2\" width=\"720\" height=\"1080\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/doncept.com\/help\/wp-content\/uploads\/2026\/03\/Adding-Coupon-Mobile.mp4?_=2\" \/><a href=\"https:\/\/doncept.com\/help\/wp-content\/uploads\/2026\/03\/Adding-Coupon-Mobile.mp4\">https:\/\/doncept.com\/help\/wp-content\/uploads\/2026\/03\/Adding-Coupon-Mobile.mp4<\/a><\/video><\/div>\n<h2><b>Step 1: Log in to Your WordPress Dashboard<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Begin by accessing your website\u2019s admin panel.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Open your browser and go to your WordPress login page.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Example: <\/span><span style=\"font-weight: 400;\">yourwebsite.com\/wp-admin<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter your <\/span><b>username<\/b><span style=\"font-weight: 400;\"> and <\/span><b>password<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click <\/span><b>Log In<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">After logging in, you will be taken to the WordPress dashboard where you can manage your store settings.<\/span><\/p>\n<h2><b>Step 2: Navigate to the Coupons Section<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Next, locate the coupon management page in WooCommerce.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">On the <\/span><b>left-hand side panel<\/b><span style=\"font-weight: 400;\">, find <\/span><b>Marketing<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click <\/span><b>Marketing<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Select <\/span><b>Coupons<\/b><span style=\"font-weight: 400;\"> from the submenu.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click <\/span><b>Add Coupon<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">This opens the coupon creation page where you can define the discount settings.<\/span><\/p>\n<h2><b>Step 3: Enter Coupon Details<\/b><\/h2>\n<p><b>Enter the Coupon Code<\/b><\/p>\n<p><span style=\"font-weight: 400;\">At the top of the page, you will see the <\/span><b>Coupon Code<\/b><span style=\"font-weight: 400;\"> field.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter the code customers will use during checkout.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Examples:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">SUMMER10<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">WELCOME20<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">SAVE5<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Customers will enter this code in the <\/span><b>coupon field at checkout<\/b><span style=\"font-weight: 400;\"> to receive the discount.<\/span><\/p>\n<p><b>Add a Coupon Description<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Below the coupon code field, add a <\/span><b>description<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The description is optional but useful for internal reference. It helps store administrators understand the purpose of the coupon.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Example descriptions:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">10% discount for summer promotion<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Welcome discount for new customers<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Black Friday special offer<\/span><\/li>\n<\/ul>\n<p><b>Configure Coupon Data<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Scroll down to the <\/span><b>Coupon Data<\/b><span style=\"font-weight: 400;\"> section. This is where you define the type of discount and other settings.<\/span><\/p>\n<p><b>Discount Type: <\/b><\/p>\n<p><span style=\"font-weight: 400;\">WooCommerce provides several discount types:<\/span><\/p>\n<p><b>Percentage Discount<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Applies a percentage reduction to the cart or product price.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Example:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">10% off an order.<\/span><\/p>\n<p><b>Fixed Cart Discount<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Applies a fixed discount to the entire cart.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Example:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">$10 off the total cart value.<\/span><\/p>\n<p><b>Fixed Product Discount<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Applies a fixed discount to specific products.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Example:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">$5 off a particular item.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Select the discount type that best fits your promotion.<\/span><\/p>\n<p><b>Coupon Amount<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Enter the discount value.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Examples:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">10<\/span><span style=\"font-weight: 400;\"> for a <\/span><b>10% discount<\/b><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">20<\/span><span style=\"font-weight: 400;\"> for a <\/span><b>$20 cart discount<\/b><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">5<\/span><span style=\"font-weight: 400;\"> for a <\/span><b>$5 product discount<\/b><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">The meaning of the number depends on the <\/span><b>discount type<\/b><span style=\"font-weight: 400;\"> you selected.<\/span><\/p>\n<p><b>Expiry Date<\/b><\/p>\n<p><span style=\"font-weight: 400;\">You can set a date when the coupon will automatically expire.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Locate the <\/span><b>Coupon Expiry Date<\/b><span style=\"font-weight: 400;\"> field.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose a date from the calendar.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Once the expiration date passes, the coupon will no longer work.<\/span><\/p>\n<h2><b>Optional Coupon Settings<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">WooCommerce also provides additional settings that allow you to control how coupons are used.<\/span><\/p>\n<p><b>Usage Restrictions<\/b><\/p>\n<p><span style=\"font-weight: 400;\">You can limit coupons based on conditions such as:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Minimum or maximum order amount<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Specific products<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Product categories<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Customer email addresses<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">This helps ensure the coupon is applied only to eligible purchases.<\/span><\/p>\n<p><b>Usage Limits<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Usage limits allow you to control how often a coupon can be used.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Examples include:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Limit the total number of times the coupon can be used.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Restrict usage to <\/span><b>one per customer<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">This is useful for promotions like <\/span><b>first-time buyer discounts<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h2><b>Step 4: Publish the Coupon<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">After configuring all settings:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Review the coupon details.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click <\/span><b>Publish<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">The coupon will now be active, and customers can use it during checkout.<\/span><\/p>\n<h2><b>How Customers Apply a Coupon<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">When customers reach the <\/span><b>checkout page<\/b><span style=\"font-weight: 400;\">:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">They enter the coupon code in the <\/span><b>Coupon field<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click <\/span><b>Apply Coupon<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The discount will automatically be applied to the order total.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Well-planned coupon campaigns can increase conversions and encourage repeat purchases.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Offering discounts and coupon codes is a simple way to encourage purchases, reward loyal customers, and run promotional campaigns in<\/p>\n","protected":false},"author":123468,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[23],"kbtag":[],"class_list":["post-1017","kb","type-kb","status-publish","hentry","kbtopic-coupons-promotions"],"_links":{"self":[{"href":"https:\/\/doncept.com\/help\/wp-json\/wp\/v2\/kb\/1017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doncept.com\/help\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/doncept.com\/help\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/doncept.com\/help\/wp-json\/wp\/v2\/users\/123468"}],"replies":[{"embeddable":true,"href":"https:\/\/doncept.com\/help\/wp-json\/wp\/v2\/comments?post=1017"}],"version-history":[{"count":3,"href":"https:\/\/doncept.com\/help\/wp-json\/wp\/v2\/kb\/1017\/revisions"}],"predecessor-version":[{"id":1022,"href":"https:\/\/doncept.com\/help\/wp-json\/wp\/v2\/kb\/1017\/revisions\/1022"}],"wp:attachment":[{"href":"https:\/\/doncept.com\/help\/wp-json\/wp\/v2\/media?parent=1017"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/doncept.com\/help\/wp-json\/wp\/v2\/kbtopic?post=1017"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/doncept.com\/help\/wp-json\/wp\/v2\/kbtag?post=1017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}