Documentation Index
Fetch the complete documentation index at: https://docs.yuko.so/llms.txt
Use this file to discover all available pages before exploring further.
Where to find this: Shopify admin → Apps → Yuko Loyalty → Loyalty → Widgets → Product Page Earn
Introduction
Display the points a customer will earn for buying this specific product, right on the product detail page.What problem this solves
Customers who don’t realise they’re earning won’t change behaviour because of the program. Surfacing the earn value at the product page — the moment of consideration — lifts conversion and program enrollment.Where it appears
- Product detail pages on your storefront.
When to use
- You want loyalty visible at the moment customers consider a purchase.
- Your AOV is high enough that the per-product earn is meaningful.
- You want to lift add-to-cart and product-page conversion rate.
Overview
- Calculates per-product earn from the active price and earning rules.
- Updates dynamically when variants change (theme-dependent).
- Customisable message with placeholders.
- Customisable icon and styling.
Before you start
Yuko app is installed on your Shopify store.
Your loyalty program is enabled.
The widget is set to Active in Shopify admin → Apps → Yuko Loyalty → Loyalty → Widgets.
Your active Shopify theme supports Online Store 2.0 app blocks.
Setup guide
1. Configure the widget in Yuko
Open the widget settings
In Shopify admin, go to Apps → Yuko Loyalty → Loyalty → Widgets → Product Page Earn.
Customise the message
Edit the displayed message. Default: “You’ll earn
[points_value] [points_label] on this purchase!”2. Add the widget to your theme
Open the Theme Editor
In your Shopify admin, go to Online Store → Themes, find your active theme, and click Customize.
Pick the right template
Use the template selector at the top to open the page where this widget should appear (Product, Cart, etc.).
Add the Yuko app block
Click Add block in the section where you want the widget. Under Apps, select the Yuko block listed for this widget.
3. Verify
Open any product page on your live storefront and confirm the widget renders with the calculated points.Available placeholders
| Placeholder | Replaced with |
|---|---|
[points_value] | The numeric points value (per product, per cart or per order, depending on widget). |
[points_label] | Your configured points label (e.g., Points, Stars, Coins). |
[point_balance] | The customer’s current points balance. |
[discount_expiry_date] | The date a redeemed reward expires. |
[next_tier] | Name of the customer’s next VIP tier. |
[tier_entry_amount] | Spend or points threshold to reach the next tier. |
[multiplier_value] | Points multiplier applied at the customer’s current tier. |
How it works
- Customer visits a product page.
- The widget runtime detects the active product variant.
- Yuko calculates the earnable points based on active Place an Order and similar campaigns, applying any VIP multiplier for logged-in customers.
- The result is rendered using your configured message.
Decision guidance
- Place near the price for visibility.
- Place near Add to Cart for conversion.
- Use a clear icon (star, gift) so the message is scannable at a glance.
Limitations
- Some themes don’t fire variant-change events; the widget may not update on variant selection in those cases.
- For bundle products, the displayed value is the bundle’s parent price.
- Logged-out customers see base earnings only — VIP multiplier requires login.
Examples
- “Earn 50 Stars on this purchase!” with a star icon, placed below the price.
- “You’ll earn 1 point per $1 spent on this product.” alternate format for points-per-spend programs.
Best practices
FAQs
Why doesn't the widget update when I change variants?
Why doesn't the widget update when I change variants?
Some themes don’t expose variant-change events. Update to a more recent Online Store 2.0 theme or contact your theme developer.
Can I show a different message for VIP customers?
Can I show a different message for VIP customers?
Not in v1. The widget shows the calculated earn including the VIP multiplier; the message text is shared.
Does this widget work on collection pages?
Does this widget work on collection pages?
No — it’s specific to product detail templates.
Related
Product Page Earn
Show points earnable on product detail pages.
Cart Earn
Show total earnable points in cart.
Cart Redeem
Surface points balance and rewards in cart.
Checkout Earn
Show earnable points inside Shopify Checkout.
Checkout Redeem
Apply rewards inside Shopify Checkout.
Order Status Earn
Confirm earned points on the thank-you page.
Order List Balance
Show points balance on the order history page.
Customer Profile Balance
Show balance on the customer profile.
Customer Account Page
Loyalty hub inside Shopify customer accounts.
Rewards Landing Page
Standalone loyalty page for your storefront.
Floating Launcher
Persistent loyalty panel on every page.
Branding & Locale
Cross-widget styling, icons and language.
Theme App Embed
Required to render any storefront widget.
Checkout UI Extension
Show points and rewards inside Shopify checkout.
Customer Account Extension
Add the loyalty hub inside Shopify customer accounts.
Verify Your Setup
Confirm widgets render correctly on the live storefront.
Book a Free Setup Call
Talk to our team for personalised setup help.Time: 30 minutes
Contact Support
Visit our support hub for help articles, live chat and ticket submission.
Browse the Guides
Documentation across loyalty, referrals, memberships and more.
Install Yuko
Add Yuko to your Shopify store from the Shopify App Store.