All Collections
Partner Integrations
eCommerce
Using VoucherCart with WooCommerce
Using VoucherCart with WooCommerce

Integrate VoucherCart vouchers for use with your WooCommerce shop

Steve avatar
Written by Steve
Updated over a week 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 voucher code generated to apply the value of the voucher as a discount at checkout in WooCommerce when paying for products you sell.

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 it 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

Next, 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.

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.

eg.

  • $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 onscreen 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 (this is needed later).

NB: When exporting your codes as a .txt file, remember to name the file corresponding to the voucher that the codes will relate to when you import them to VoucherCart. So in this example 50-codes.txt or similar.

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:

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

2 Click New

3. Give your code import a name like 50-Codes

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

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

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

7. Click Next to continue

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

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 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.

NB: At such time as all voucher codes have been issued from the pool of codes you have uploaded, new voucher codes will be issued from the VoucherCart platforms global pool and 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 becomes 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, FAQ's, and self-help guides go back to the Help Center

Did this answer your question?