top of page
  • Writer's pictureRobert Hebert

How to Create an Automatic Coupon For Your Customers in Wix

Updated: Jun 20, 2022

Is it possible to do an automatic coupon rather than requiring customers to enter a coupon for a sale?

The answer is... yes!

Option 1

Yes, it is possible to automate a coupon on your Wix website. However, it requires custom JavaScript code as it is not a feature that currently exists in Wix.

First, create the coupon.

Next, add this custom coding:

Auto CouponJavaScript

import { cart } from 'wix-stores';

$w.onReady(async function() {
    const currentCart = await cart.getCurrentCart();
    if(!currentCart.appliedCoupon) {
        cart.applycoupon('COUPON CODE');

Option 2

A no-code way to manage this, although it would be tedious, would be to edit the prices of the products just for the day of the sale and then change them back to their original price after you end the sale.

Need help implementing coupon codes on your website? Contact us at 225-250-1888!

About our company

RHM specializes in helping businesses of all sizes and across all industries achieve their digital and web marketing needs. Whether it's designing a new website, building an app, performing custom development, or running Google Ads, our goal is to showcase how you are the best at what you do and help people connect with you. Contact us at 225-250-1888 to get started!

79 views0 comments


bottom of page