6. Code Campaigns

Campaign codes are similar to Shopify's discount codes but allow for a single code to be specified for multiple discounts.

Since we have already created two automatic campaigns, let's now create our first Code campaign. Lets name the campaign "Special Offer" and choose the method "Campaign code." Specify the code that you will share with customers.

Next, select customer eligibility. You can choose to apply the campaign to all customers, specific customer segments, or specific customers. Optionally, specify usage limits per customer or in total.

Define the active dates for the campaign. Add discounts to the campaign, similar to what we did for automatic campaigns. For this example, we will add two discounts. Finally, click "Save."

On the campaigns page, you will see that our Code discount has been created.

Preview the app. In the widget, you will now see a Discount Code input field and an apply button alongside our two automatic campaigns. If you input the campaign code and click "Apply," the "Special Offer" campaign will become visible.

Customers can add products to their cart to qualify for the discounts in this campaign.

Click "Checkout." On the checkout page, the code is already applied, and the discount is calculated. Customers can apply the code directly from the checkout page without using the widget.

Optionally, add a Discount code block to the cart page. To do this, go to "Online Store" > "Themes" > "Customize." Change the page to "Cart." Click "Add block" below the Subtotal price (or your preferred location). Choose "App" and click "Campaign Code." Save your changes.

Now, on the cart page, customers can apply the campaign code from the Campaign Code block.

Active automatic campaigns will continue to function alongside the Code campaign, but customers can apply only one campaign code at a time.

Last updated