- Product Types
- Prices 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
- Template Customization
- Product Collections
- First-Time Payment Discounts
- Manage Product Access
- 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
- 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
- Update Store Details
- Dark Mode
- Orders & Receipts
- Menu & Slide-out Cart
- Manage Slide-out Cart
- Customers Section Overview
- Create Customer
- Delete Customer
- Update Customer Details
- Edit Invoice Details
- Create Shipping Profiles
- Manage Shipping
- Disable Payment Processor
- Manage Store Notifications
- Manage PayPal Branding
- How to transfer a store to a new organization and assign a license.
- How to Download SureCart Purchase Invoice
- Fix View Order Button
- Fix Express Payment Buttons
- How To Stop Sending WooCommerce Notifications via SureCart?
- 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Â
- Compatibility Guide
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.