- Product Types
- Adding Products
- One Time Pricing
- Subscription Pricing
- Subscription Trials Setup
- Installment Pricing
- Donation / Pay What You Want
- Inventory Management
- Product Variants
- Variant Images
- Digital Downloads
- Change Product Availability
- Hide Product from Shop Page
- Template Customization
- Product Collections
- First-Time Payment Discounts
- Manage Product Access
- Payment Types
- Free Trials & Setup Fees
- Create Product With Free Trials
- Charge Set Up Fee on Trials
- Product List
- Product Pages
- Create Product Page in Elementor
- Custom Buy Links
- Product SEO
- Change Permalinks
- Custom Fields
- Adding Products
- Test Mode
- Make Test Payments
- Edit & Customize Form
- Change Form Template
- Delete SureCart Forms
- Custom Checkout Form
- Add New Checkout Form
- Checkout Form With Gutenberg
- Checkout Form in Elementor
- Custom Thank You Page
- Create Donation Form
- Customize Confirmation Popup
- Include Coupons in URLs
- Pre-Fill Checkout Fields
- Change Checkout Texts
- Password Field in Checkout
- Default Country Code
- Add Terms to Checkout
- Conditional Block Checkouts
- Remove Coupon Field
- Hide Quantity Option
- Disable Quantity Editing
- Disable Item Removal
- Country Specific Purchases
- Fix View Order Button
- Fix Express Payment Buttons
- Fix PayPal Test Connection
- Fix PayPal Test Connection
- Fix Sign-In Loop
- Fix Order Confirmation Redirect
- Fix Divi Bullet Point Issue
- Fix Customer Dashboard
- Fix JSON Response Error
- Failed Payment Behavior
- Fix Stripe Zip Code Error
- Fix "Product Can’t Be Blank"
- Troubleshooting Guide
- PayPal IPN Warning Emails
- Caching Configuration for SureCart
- Why iDEAL Might Not Appear in Your CheckoutÂ
How to Link Images to Product Variants in SureCart
In SureCart, you can link images to specific product variants to ensure the correct image is displayed when a customer selects a variant option (e.g., color, size) on the product page. This guide will walk you through the steps to link an image to a variant using SureCart settings and the WordPress Media Library.
Set Up Variants in SureCart
Before linking an image to a variant, ensure that your product has variants set up correctly. For more detailed instructions on creating and managing product variants, check out our Creating and Managing Variants guide.
You can do this in the SureCart product settings:
- Option Name: This is the category of the variant (e.g., Color, Size).
- Option Values: These are the specific variants under each category (e.g., White, Black, Light Green for Color).
Example:
Option Name: Color
Option Values: White, Black, Light Green
Link the Image to a Variant
In your product Images gallery, hover over the image you want to link to a variant. When you see the pencil icon appear (as shown in the image below), click on it to edit the image details.
After selecting the image, you will see the attachment details on the right side. Here’s how to link the image to a variant:
- In the Variant field, enter the exact variant name as it appears in the Option Values section of your SureCart product settings.
- Important: The input is not case-sensitive, so “Green,” “green,” and “GREEN” will all link correctly. However, ensure the spelling matches exactly (e.g., Light Green, not LightGreen).
- Click Select to save the changes.
Example:
Variant: Light Green
Verify the Link
To ensure that the image is correctly linked to the variant:
- Go back to your product page in SureCart.
- Select the variant option on the product page (e.g., choose “Light Green” from the color options).
- The image you linked should now appear when the variant is selected.
Frequent Asked Questions
We don't respond to the article feedback, we use it to improve our support content.