Skip to main content

Using VoucherCart with WooCommerce

Integrate VoucherCart vouchers for use with your WooCommerce shop

Updated over 2 weeks ago

The WooCommerce integration below allows you to integrate VoucherCart vouchers for use with your WooCommerce shop.

When a voucher is purchased, your customers can use the generated voucher code to apply the value of the voucher as a discount at checkout in WooCommerce.

Prerequisites: Coupon Generator for WooCommerce (WordPress Plugin)

(This is required to generate the coupon codes that will be assigned to your VoucherCart vouchers. If you have not already installed the plugin, let’s do that now.)

  1. Login to your WordPress CMS dashboard, go to Plugins > Add New, then search “Coupon Generator” in the search field.

  2. Click Install Now

3. Log in to your VoucherCart dashboard and create your vouchers available for sale (Vouchers must be SINGLE-USE FIXED-VALUE vouchers, e.g. $25, $50, $100, $250).

The value of the voucher will equate to the value of the cart discount in WooCommerce.

4. Next, we’re going to create a unique set of coupon codes for each of the voucher values we’re going to sell and export. We will then import these codes into VoucherCart and assign each set of codes to the corresponding voucher.

E.g.

  • £50 Voucher (1000 unique codes)

  • £100 Voucher (1000 unique codes)

  • And so on for each value of voucher you will sell.

In WordPress, open Coupon generator - Marketing > Coupon generator and follow the on-screen steps to generate your WooCommerce coupon codes as per the settings below:

Coupon options: General

  • Discount type: Fixed cart discount

  • Coupon amount: Value of the voucher (50 represents our £50 voucher in this example)

  • Coupon expiry date: Leave blank

Coupon options: Usage limits

  • Usage limit per coupon: 1

Generator Options

  • Number of coupons: Enter the number of coupon codes you wish to generate.

Click Continue and generate coupons to generate your coupon codes, then click Export as txt file to download the code list (you will need this later).

Note: When exporting your codes as a .txt file, remember to name the file in a way that corresponds to the voucher & its related codes for your import into VoucherCart.

In this example, something like "50GBP-codes-x100.txt" would be a clear naming convention.

5. The final step is to assign the coupon codes from WooCommerce to your vouchers in VoucherCart.

Log in to your dashboard and follow the steps below:

5.1. Navigate to Vouchers > Voucher Codes from the main navigation menu

5.2. Click New


5.3. Give your code import a name like "50-Codes"

5.4. Select Voucher and assign the voucher from the list ($50 Gift Voucher in this example)

5.5. Select an order of use (We highly recommend Random to maintain voucher code security)

5.6. Upload the .txt file containing your voucher codes (downloaded from Coupon Code Generator)

5.7. Click Next to continue


5.8. Check all details are correct and all codes are uploaded

5.9. Click Create to complete the upload

The coupon codes generated from your WooCommerce Coupon Generator have now been assigned to your voucher of equal value in VoucherCart, and one of the unique codes you assigned will be issued (and removed from the list of issuable codes) each time a voucher is purchased.

The voucher buyer (or recipient if purchased as a gift for someone else) can then enter their unique voucher code at checkout in WooCommerce when purchasing your products online.

Note: Once all voucher codes have been issued from your uploaded pool of codes, new voucher codes will be issued from the VoucherCart platform's global pool, which will not be recognised in WooCommerce.

To prevent this from occurring, ensure that new voucher codes are uploaded when the number of available codes from the codes you have uploaded runs low.

Simply repeat the steps above to generate new codes using the Coupon Generator plugin and upload them into your existing code list.

Please note the following when using VoucherCart with WooCommerce:

  • Coupons are redeemed only via WooCommerce, as there is no synchronisation between WooCommerce and VoucherCart to tell your VoucherCart account when a voucher has been used/redeemed during a WooCommerce checkout event.

    WooCommerce, however, will know when any unique code has been used and based on the 1-time use rule you applied when creating the codes, it will be impossible for the voucher holder to try to use the code again.

  • The expiry date is unknown as this needs to be set to never expires in WooCommerce.

  • Statistics/Reporting won’t be accurate because of the above points for these vouchers.


Need more help?

Speak to our support team via chat or call us on +44 (0) 131 608 0111. You can also contact us by email at help@vouchercart.com

For more video tutorials, FAQs, and self-help guides, go back to the Help Center

Did this answer your question?