Smart Coupons

Smart Coupons provide a powerful, “all-in-one” solution for gift certificates, store credits, discount coupons, and vouchers.

The plugin allows customers to buy credits for themselves or gift them to others. It automatically issues coupons on product purchase, provides “Apply Coupon with One Click” technology and more.

Installation ↑ Back to top

  1. Download the .zip file from your WooCommerce account.
  2. Go to: WordPress Admin > Plugins > Add New to upload the file you downloaded.
  3. Activate the extension.
  4. After activating Smart Coupons, you will be redirected to Welcome Page of Smart Coupons that describes Features and FAQs.

More information at: Installing and Managing Plugins.

Once installed and activated, four tabs will be added under WooCommerce > Coupons:

  • Coupons
  • Bulk Generate
  • Import Coupons
  • Send Store Credit

Configuration ↑ Back to top

Refer to this article.

Adding coupons ↑ Back to top

Refer to this article.

Sending store credit ↑ Back to top

Refer to this article.

Using coupons and specific cases ↑ Back to top

Linking coupons with products ↑ Back to top

Refer to this article.

Store credit/gift certificate of any amount ↑ Back to top

Refer to this article.

Store credit/gift certificate of variable but a fixed amount ↑ Back to top

Refer to this article.

Creating coupon for new users only ↑ Back to top

Refer to this article.

Coupon action – Add product with/without discount ↑ Back to top

Refer to this article.

Label ‘Store Credit / Gift Certificate’ ↑ Back to top

Refer to this article.

Setting coupon code length ↑ Back to top

Refer to this article.

Using Smart Coupons shortcodes ↑ Back to top

Refer to this article.

Compatibility with PayPal Standard ↑ Back to top

Refer to this article.

Smart coupons store management ↑ Back to top

Viewing sent/received coupon details ↑ Back to top

Smart Coupons v2.1+ comes with a new feature, allowing the store admin and customer to see received coupon’s details.

It shows all coupons/credits that you’ve received from others.

By default, it shows basic details. To see more details like who is sender and receiver, and what is the message, you can click on the coupon.

Smart Coupons: Coupon received closedSmart Coupons: Coupon received opened

As store manager, you can see all the coupons generated in an order, from order admin page. They can also see sender & receiver of that coupon.

Resending coupons ↑ Back to top

Generated coupons sometimes fail to be delivered, and the buyer will ask for the coupon details.

Features available in WooCommerce core can resend some emails to customers, such as the Customer Invoice. Coupons generated after the order are included in the Customer Invoice, so you can use this feature to resend coupon details.

To resend coupon’s details:

  1. Open the order.
  2. Go to: Order Actions
  3. Select Customer Invoice
  4. Click the round button with the arrow (marked in the screenshot).Smart Coupons: Resend coupon's details

Resending coupon details ↑ Back to top

A buyer can send a store credit as a gift card to a friend. If they are asking to send coupon’s details to a friend directly, this is not possible. You can send a Customer Invoice to the buyer and ask them to copy and send the coupon details to his/her friend.

Changing, replacing, and overriding emails ↑ Back to top

All emails sent from Smart Coupons, including the coupon code, are sent via an existing template that is located in the 'templates' directory of Smart Coupons. If you want to change or modify the content of an email or if you want to the change layout, there are two ways to do it.

  1. Apply change in file:
    Open file '/woocommerce-smart-coupons/templates/email.php'. Modify its content and style, as needed. Note: This method is not recommended, as you’ll lose changes after updating Smart Coupons to a newer version.
  2. Use another template file:
    Use your own email template in place of the default one provided by Smart Coupons.
  3. Create a template file and keep the file name as: email.php. Other file names will not work.
  4. Open your themes folder and create a new folder. Keep the folder’s name as: woocommerce-smart-coupons.
  5. Place file email.php inside woocommerce-smart-coupons.
  6. The file path of your email template should be: /wp-content/themes/your-child-theme-folder/woocommerce-smart-coupons/email.php.

Smart Coupons will use your template file (if found) for all emails sent from Smart Coupons.

Note: The above is considered a customization. We are happy to provide guidance, but we are unable to provide support or help to suit your store. Only use it if you are comfortable with PHP and custom coding, and troubleshooting on your own.

Translating Smart Coupons ↑ Back to top

It is possible to translate Smart Coupons in your language. There are various methods to translate a plugin. If those methods are not working, you can try following steps, as these steps are tested:

  1. Check wp-config.php file, whether WP_LANG_DIR is already defined. If not, add following line in your wp-config.php file
    define ('WP_LANG_DIR', '/home/<user>/public_html/<wordpress_directory>/wp-content/languages');
  2. Now go to this path: /home/<user>/public_html/<wordpress_directory>/wp-content/languages
  3. Create a new directory & name it as woocommerce-smart-coupons
  4. Install & activate a free WordPress plugin: Loco Translate.
  5. Navigate to Loco Translate > Manage translations from sidebar admin menu
  6. Locate WooCommerce Smart Coupons under Plugins
  7. Check if a language file for your language already exists. If it exists, click to edit OR if it doesn’t exist, click New language to add the translation for your language
  8. Select your language from the dropdown menu & click Start translating
  9. You’ll see 2 column: left containing texts from the plugin. Select one of them & add translated text for this from below. Repeat the steps for other texts also
  10. Once done, Save it using Save button. If sufficient permissions for saving are not there, download PO & MO file
  11. Upload these files to /home/<user>/public_html/<wordpress_directory>/wp-content/languages/woocommerce-smart-coupons
  12. Make sure these files have proper read permission otherwise, texts will not be translated
  13. You can also place these PO & MO file inside languages directory of the plugin, but it is not recommended, as you’ll lose it when you’ll update the plugin.

Now Smart Coupons should display your texts.

Customer experience ↑ Back to top

Improved receiver details form ↑ Back to top

  • You can send a store credit to yourself or gift a store credit to someone else.
  • If you want to send more than one gift card, you have separate message fields for each gift card.
  • All generated coupon details are stored in order meta.

Smart Coupons: Coupon receiver details form

Received coupons

Smart Coupons: Coupon received closedSmart Coupons: Coupon received opened

Available Coupons & Store Credits

It shows all the coupons/credits that you have earned while shopping on that website. For example, while purchasing product A, you got a coupon with it. So that coupon will come under ‘Available Coupons & Store Credits‘ section.

Smart Coupons: My Account

Apply coupon via URL ↑ Back to top

Smart Coupons provides a feature which allows you to pass coupon code in the URL. Whenever someone will visit this link, the coupon passed in the URL will be applied to cart.

Sample URLs:

  • http://example.com/?coupon-code=50off&sc-page=cart
  • http://example.com/cart/?coupon-code=50off

After applying the coupon to cart, if you want to redirect the customer to a page, there are 2 options to do this:

  1. Use of param ‘sc-page’: If you want to redirect the user to any page from ‘shop’, ‘cart’, ‘checkout’, ‘myaccount’, pass these values under param ‘sc-page’
  2. Pass the coupon code to the page directly: For example: http://example.com/cart/?coupon-code=50off

Additional Settings ↑ Back to top

1. How to show/hide linked coupons on the product page? ↑ Back to top

If you’re using version 3.4.0 or higher, refer this.

From version 3.0, this is hidden by default. To enable it again, you need to change a setting.

To enable:

  1. Open your database & then go to <prefix>options table
  2. Search for the row having option_name as smart_coupons_is_show_associated_coupons
  3. If that row is present in the table, then click on edit and enter option_value as yes and submit the values.
  4. If that row is not present in the table, then Insert a new row with
    option_name => smart_coupons_is_show_associated_coupons
    option_value => yes
  5. Submit the values.

2. How to show/hide coupon description on the coupons? ↑ Back to top

If you’re using version 3.4.0 or higher, refer this.

Coupon description is hidden by default. To show it on the coupon, you need to change a setting.

To show coupon description on the coupon:

  1. Open your database & then go to <prefix>options table
  2. Search for the row having option_name as smart_coupons_show_coupon_description
  3. If that row is present in the table, then click on edit and enter option_value as yes and submit the values.
  4. If that row is not present in the table, then Insert a new row with
    option_name => smart_coupons_show_coupon_description
    option_value => yes
  5. Submit the values.

3. How to disable e-mails getting sent from Smart Coupons? ↑ Back to top

If you’re using version 3.4.0 or higher, refer this.

From version 3.0.6, you can disable all the e-mails that are getting send from Smart Coupons. To disable it, you need to change a setting.

To disable e-mail getting sent from Smart Coupons:

  1. Open your database & then go to <prefix>options table
  2. Search for the row having option_name as smart_coupons_is_send_email
  3. If that row is present in the table, then click on edit and enter option_value as no and submit the values.
  4. If that row is not present in the table, then Insert a new row with
    option_name => smart_coupons_is_send_email
    option_value => no
  5. Submit the values.

4. How to change the number of coupons visible on cart and checkout page? ↑ Back to top

If you’re using version 3.4.0 or higher, refer this.

From version 3.2.1, by default, only 5 coupons will be visible on Cart and Checkout page. To change the number of the coupons, you need to change a setting.

To change the number of coupons cart and checkout page:

  1. Open your database & then go to <prefix>options table
  2. Search for the row having option_name as wc_sc_setting_max_coupon_to_show
  3. If that row is present in the table, then click on edit and enter option_value as <number of coupon you want to show> and submit the values.
  4. If that row is not present in the table, then Insert a new row with
    option_name => wc_sc_setting_max_coupon_to_show
    option_value => <number of coupon you want to show>
  5. Submit the values.

<number of coupon you want to show> = number of coupons you want to show on cart and checkout page.

FAQ ↑ Back to top

1. When I try to add a coupon, I get an Invalid post type error?

Check whether use of Coupon is enabled in your store. If it’s not enabled, enable it. You can find the setting at WooCommerce > Settings > General > Enable coupons.

Enable Coupons in WooCommerce

2. Can coupon code have any spaces in the name?

No. Coupon code should not have any spaces in the name, e.g., Coupon code should be like “gift-certificate” & not “gift certificate”.

3. What’s the URL to my coupon, so it’s automatically inserted when visiting?

http://www.mysite.com/?coupon-code=discount5

Replace www.mysite.com with your own URL then replace discount5 with the generated coupon code.

For more details read “Apply coupon via URL” section on this page.

4. My Store Credit/Gift Certificate is not working (not generating new coupon code).

Ensure your Store Credit/Gift Certificate coupon code doesn’t have space in it, e.g., Coupon code should be like “gift-certificate” & not “gift certificate”.

5. I have problems with coupons after import.

If dates are entered in your import file, ensure they are in the proper format. Expiry date format should match the format of WooCommerce, which is: YYYY-MM-DD. You can find this format used with any WooCommerce coupon. If you are entering a post date, it should match the date format of the post date, which is: YYYY-MM-DD HH:MM:SS. You can find this format in the posts table of your WordPress database.

6. Smart Coupons is not sending emails.

Smart Coupons sends an email only after the order is marked Completed. Ensure all settings of coupons, products are in place. Check if the order complete email is sending, then only emails from Smart Coupons will send. Also, check by switching your theme.

7. Does Smart Coupons allow printing of a coupon as Gift Card?

No, it doesn’t provide any feature which enables you to take a printout of a generated coupon, but if you can take a printout from your email, you can use it as an alternative.

We also had a store owner (360064) who set up a simple virtual product with no price, allowing the buyer to choose the amount to give as a gift. The giver gets the code via Smart Coupons, then pastes the code into a downloadable PDF certificate from the store owner and sends it to his/her recipient.

8. Can I limit the number of characters in the generated coupon code?

Yes, from Smart Coupons v3.7.0+ you can. Go to WooCommerce > Settings > Smart Coupons. There you will find a setting named ‘Number of characters in auto-generated coupon code’. Modify it as per your needs.

9. Is it possible to remove the Store Credit/Gift Certificate product from a shop page and show it on another page?

No, currently it is not possible.

10. Is it possible to have a coupon for each variation of the variable product?

No, currently, you cannot set a coupon for each variation.

11. Can Store Credit be used as Points system to refer/reward a friend?

No, Smart Coupons cannot be used as Points system. Check WooCommerce Points and Rewards.

12. Which should I use for Account Credit/Gift Certificates? Smart Coupons or PDF Product Vouchers?

Smart Coupons works like account credit and is linked to a specific account from the time you purchase. It works more like a gift card. If you purchase three x $10 credits to your store and link them all to your account email address, you receive 3 credits each of $10. You can gift these to others, but you need their email address, as they are linked to specific accounts.

PDF Product Vouchers work more like a traditional paper gift certificate (in fact you make regular paper gift certificates with it), in that it gives you a coupon code that is redeemable for a specific amount of credit to your (physical) store. Your customers can purchase these for a friend, or themselves.

If you want something closer to a gift card, where the funds are linked to your online store account automatically and managed for you there, go with Smart Coupons.

If you want something more like a gift certificate, where you can print a few out for your buddies, but they will have to turn in the certificate at the (physical) store, you’re probably going to want PDF Product Vouchers.

13. Can a customer send a gift certificate to themselves to pass on to someone else? ↑ Back to top

Yes! By default, the coupon is restricted to the email recipient’s address, but you can disable this in the coupon usage restriction settings as shown:

Smart Coupons: Disable email backend

14. I’m using WPML & WPML for multi-currency, but Smart Coupons only changes currency symbol and the price value remains the same.

Currently, Smart Coupon is not compatible with a multi-currency plugin or with WPML.

15. Is Smart Coupons compatible with WooCommerce Subscriptions?

Yes, it works with WooCommerce Subscriptions (separate purchase).

16. Which features of Smart Coupons work with Subscriptions? ↑ Back to top

Give away a discount or credit on signing up a subscription, give away recurring discount or credits, apply credit during sign up, automatic payment for renewals from credit (Note: When using PayPal Standard Gateway, store credit can be applied only during sign up. Automatic payment for renewals by credit will not work for PayPal Standard Gateway).

17. How does automatic payment by store credit work with Subscriptions? ↑ Back to top

Customers can apply store credit on a subscription. If the same store credit has sufficient balance, it’ll keep applying it to renewals till the remainder in store credit is higher than renewal price.

Customers will be able to apply store credit only during signup. They will not get an option to apply store credit in renewals. But if the store credit will not have sufficient balance to pay for the renewals, then the order will go into pending mode. Now when the customer will go to pay for this renewal order, they’ll get an option to apply store credit again.

To activate the subscription again, the customer will have to pay for the renewals. When the customer is paying for the renewals from his/her account, then in that process he/she can use the same store credit which didn’t have the sufficient balance, again & pay for the remaining amount.

18. Is it possible to partially pay for a subscription with store credit and the remainder by another method? ↑ Back to top

No, this is possible only in those cases where subscription amount is more than store credit’s balance. If store credit’s balance is more than subscription’s total then your bank account or credit card will not be charged.

19. How to set start date & time for a coupon? ↑ Back to top

To set a start date & time for a coupon, you can use “Schedule post” feature of WordPress.


Questions & Support ↑ Back to top

Have a question before you buy? Please fill out this pre-sales form.

Already purchased and need some assistance? Get in touch with the developer.

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top