Magento

In this section:

  1. Getting started
    1. Install Voucherify plugin for Magento 
    2. Configure the plugin
  2. Use Voucherify coupons in your Magento store

In this tutorial, we guide you through the installation of a Voucherify plugin for Magento. Then, we'll show you how Voucherify coupons and referral programs work in Magento stores.

Getting started 🏁

💡Note

Voucherify Magento plugin works for Magento® version 2 or later. 

Installation

Go to the  Magento® Marketplace and install a Voucherify extension.

Installing Voucherify via Magento store

Configuration

After successful installation, the extension has to be configured to work with your instance. To locate configuration page: 

1

Go to Magento administration panel.

2

Open Stores > Configuration page.

Configuring of Voucherify in Magento

3

Expand the Voucherify option from the left menu. 

General Voucherify Configuration

4

The extension configuration consists of two parts:

General configuration which determines:

  • Discount application - define what price components will be discounted: 
    • Only subtotal, 
    • Subtotal including shipping, 
    • Subtotal including taxes, 
    • Subtotal including shipping and taxes. 
  • Order creation - when the customer completes an order, you can send the contents of the cart along with the coupon information. Then, you'll be able to use the order history to draw insights with Voucherify Analytics. 


General Voucherify Configuration

API configuration

API Configuration in Magento

Here you can enter access keys to the Voucherify platform. Go to the Project Settings and copy your keys.

API Keys

Usage: Voucherify coupons in your Magento store 🛍️

After successful configuration, the Voucherify coupon box should be displayed in the Review & Payments section of the order (below payment options). 

Using Voucherify coupons in Magento

An end-user can enter their code and confirm to trigger the discount validation. The validation sends “ validate” request to Voucherify API behind the scenes. 

  • If the coupon is valid, the discount is applied. (The end-user can cancel the discount at this point if they do so the coupon remains unused). The discount is applied to the price components you selected in the configuration step. 

Cancelling coupon in Magento by end-user

  • If the coupon is invalid, an appropriate error message is displayed. 

Error message in Magento

The coupon is marked as redeemed only after the order is completed (paid). The extension achieves that by a sending “ redeem” request to Voucherify API. In the end, the discounted price and other discount details are displayed on the order summary page.

Magento order summary