Ecomz – Discount Coupon
The Ecomz Discount Coupon snippet is designed to highlight special promotions and limited-time offers directly on the product page. It supports up to two deal banners with customizable titles, conditions, and promo codes. You can style the layout, enable gradients, and control the positioning of each element for full flexibility.
❗Custom Placement Instructions❗
To display the coupon banner on your product page:
Go to the Product Information section in your Shopify theme editor.
Add a Custom Liquid block.
Paste the following code:
htmlCopyEdit<div id='ecomz-coupon'></div>Save and reposition the block as needed to control where the coupon appears on the product page.
Accessibility
ARIA Label: Add a label for screen readers. Default:
Promotional Discount Coupon
Section Layout & Styling
Background and Dimensions
Background Color:
TransparentMax Section Width (rem):
80(desktop & mobile)Border Radius:
16px
Spacing (Desktop)
Padding Top:
2.5Padding Bottom:
1Margin Top:
0Margin Bottom:
2Left/Right Padding (px):
0
Spacing (Mobile)
Max Width (rem):
80Left/Right Padding (px):
0
Coupon Gradient Options
Enable Gradient: Toggle to enable
Gradient Colors:
Color 1:
#66BB6AColor 2:
#4CAF50Color 3:
#2E7D32Color 4:
#1B5E20
Gradient Angle:
90°
Deal 1 Settings
Title: Extra 10% Off
Size:
24pxColor:
#FFFFFFPosition: Left / Center / Right
Condition Text: On purchases over $100
Size:
16pxColor:
#FFFFFFPosition: Left / Center / Right
Promo Code: Promo Code: 10OFFTODAY
Size:
16pxColor:
#FFFFFFPosition: Left / Center / Right
Deal 2 Settings
Title: Extra 5% Off
Size:
20pxColor:
#FFFFFFPosition: Left / Center / Right
Condition Text: Available to first-time users
Size:
16pxColor:
#FFFFFFPosition: Left / Center / Right
Promo Code: Promo Code: FIRST5
Size:
16pxColor:
#FFFFFFPosition: Left / Center / Right
Hide Second Deal: Enable this toggle to display only one deal.
Layout Options
Coupon Height (px):
0(Set to0for auto height)Coupon Position: Left / Center / Right
Border Radius (px):
16
This snippet is ideal for creating urgency and incentivizing purchases with limited-time coupon offers. With flexible styling and dual-deal capability, it can be tailored to match any product page layout or brand aesthetic.
Last updated