Skip to content
How to Set Up the Discount Block in Our Shopify Themes

How to Set Up the Discount Block in Our Shopify Themes

πŸ“Œ Steps to Set Up the Discount Block in Shopify

This guide will help you correctly display multiple discount offers using Shopify Metafields in the format:

Discount Title | Discount Subtitle

Step 1: Create the Discount Block Metafield

1. Log in to your Shopify Admin Panel.

2. Go to Settings β†’ Custom Data.

3. Click Products (since this discount applies to products).

4. Click Add definition.

5. Set the Name as "Discount Block".

6. Set the Namespace and Key as custom.discount_block.

7. Under Type, select β€œSingle Line Text (List)”.

8. Click Save.

Step 2: Add Discounts to a Product

1. Go to Products in Shopify.

2. Select the product you want to apply the discount to.

3. Scroll down to the Metafields section.

4. Locate the Discount Block metafield (custom.discount_block).

5. Click Add Item and enter each discount in the format:

EXTRA 10% OFF | On purchase of $100+ (use code: 10OFFTODAY)
EXTRA 5% OFF | For first-time users (use code: FIRST5)


6. Click Save.

Step 3: Test the Setup

1. Go to the Product Page of the product where you added discounts.

2. Check if the discount block appears correctly with multiple discount offers.

3. Try removing or editing a discount in the metafield and refresh the page.

4. Ensure formatting is correct (Title in bold, Subtitle below).

βœ… Final Notes:

β€’ Metafield Type: "Single Line Text (List)"

β€’ Namespace & Key: custom.discount_block

β€’ Format: "Discount Title | Discount Subtitle"

β€’ Customization: Modify CSS for better styling if needed.


πŸš€ Now, your Shopify store will dynamically display discount offers per product!Β 

Β 

Cart (0)

10% OFF for your first order. Use code NEW10

Your cart is currently empty

Thirste Shopify Theme

Market Luxe Shopify Theme

The Malkin Shopify Theme

The Omcarat Shopify Theme

The Street Shopify Theme

The Matcha Shopify Theme

Sophie's Skin Shopify Theme

The Health Shopify Theme

Wishlist

Thirste Shopify Theme

Market Luxe Shopify Theme

The Malkin Shopify Theme

The Omcarat Shopify Theme

The Street Shopify Theme

The Matcha Shopify Theme

Sophie's Skin Shopify Theme

The Health Shopify Theme

Recently Viewed

Thirste Shopify Theme

Market Luxe Shopify Theme

The Malkin Shopify Theme

The Omcarat Shopify Theme

The Street Shopify Theme

The Matcha Shopify Theme

Sophie's Skin Shopify Theme

The Health Shopify Theme