Labacha - Shopify Theme Documentation
  • Introduction
  • Changelog
  • Full Theme Features in Labacha
  • Installation
    • Install Theme
  • BASIC CONFIGURATION
    • Customer Registration
    • Shipping Rates
    • Navigation
    • Sticky Toolbar Mobile
    • Online Store 2.0
      • Color Gradient
      • Dynamic Source
  • Theme Settings
    • Multiple Layouts
    • Typography
    • General
      • Container Width
      • Favicon
      • Wishlist
      • Terms and conditions
      • Swatch
      • Hot stock function
      • Add To Cart Action
      • Lazyload image
      • Slider Dots
      • Slider Arrows
      • Pagination
      • Trust Image
      • Button Style
      • Social Share
    • Product Card
      • Set up for Product Card
      • Product badges
      • Product Swatch
      • Product Action
      • Product Review
      • Product Quick Shop
    • Theme Language
      • How to set up a different language?
      • How to set up Multiple Languages?
    • Multiple Currencies
    • Multi-Level Categories
    • Quick Search
    • Quick Cart/ Quick Edit Cart
    • Quick View
    • Countdown
    • Calculator Free Shipping Message
    • Someone Purchase
    • GDPR Popup
    • Newsletter Popup
    • Recently Viewed
    • Notify Me: Out Of Stock
    • Ask An Expert
    • Social Media
    • Color (Products)
    • Colors (General)
    • Typography (Products)
    • Adding custom CSS to your theme
  • Header
    • Header
    • Search
    • Megamenu/Drop Down Menu
      • Label For Menu
  • Footer
  • SECTIONS
    • Section On Every Page
    • All Sections in Theme
      • Slideshow
      • Slideshow Grid
      • Slideshow Category
      • Collection List Packery
      • Collection List Packery 2
      • Modern Page Banner
      • Modern Banner
      • Modern Grid
      • Modern Image With Content
      • Gallery Section
      • Image Banner
      • Image Banner 2
      • Product Block
      • Product Block 2
      • Product Block 3
      • Product Block 4
      • Product Tab
      • Collection Grid
      • Collection Grid 2
      • Collection Grid Slider
      • Brand Slider
      • Category Slider
      • Featured Blog
      • Newsletter
      • Newsletter 2
      • Newsletter 3
      • Newsletter 4
      • Custom Liquid
      • Rich Text
      • Google Map
      • Page Banner
      • Image With Content
      • Image With Content 2
      • Image With Content 3
      • Video Popup Banner
      • Custom Service Block
      • FAQs Section
      • Latest Blog
      • Customer Review
      • Recently Viewed Products
      • Instagram
      • Offer Gird
      • Breadcrumb
      • Page
      • Marquee
  • Collection & Product
    • Collection
      • Demo & Settings Data
      • Sidebar
      • Category
      • Filter
    • Sub Collection
    • Collections List Section
    • Product Page
      • Demo & Settings Data
      • Product Media
      • Product Tab
      • Product Variant
      • Size Chart
      • Short Description
      • Checkout Button
      • Compare Color
      • Sticky Add To Cart
      • Infomation
      • Sold In Last
      • Hot Stock Function
      • Countdown
      • Customers Viewing Function
      • Trust Image
      • Custom Information
      • Product Review
      • Product Description Tab
      • List Tags
      • Variant Image Grouped
    • Product Recommendations
    • Recently Viewed Products
    • Product Combo
  • Other
    • How To Create A Page?
    • Find A Store/ Store Locator Page
    • Wishlist Page
    • About us
    • Contact Us
      • Layout 01
      • Layout 02
    • 404 error
    • Blog
    • Cart Page
    • Search Page
    • Checkout
  • Browsers Compatibility
  • Official Support
  • Copyright
Powered by GitBook
On this page
  • Setup Color Variant
  • 1. Basic Color
  • 2. Advanced Color
  • How to add a new Metafields?
  • How to insert content for Product Metafields?
  1. Collection & Product
  2. Product Page

Product Variant

PreviousProduct TabNextSize Chart

Last updated 1 month ago

You add variants to a product that comes in more than one option, such as size or color. Each combination of option values for a product can be a variant for that product. For more information, see .

Labacha offers 2 type for Product Variant: Dropdown and Square / Rectangle / Swatch.

Steps:

  1. Go to Customize -> Choose Default product template in the dropdown of editor window to open theme editor of product page.

  2. Click Add block from Product Information -> Choose Variant Picker

Setup Color Variant

Labacha offers 2 type for Color Variant: Basic Color, Advance

1. Basic Color

  1. From your Shopify admin, go to Online Store -> Themes.

  2. Find the theme that you want to edit, and then click Customize.

  3. Click Theme settings -> General.

  4. Scroll to Swatch and choose Type as Default

2. Advanced Color

'Advanced Color' use color name or image with PNG format. use image with PNG format from metafields.

  1. From your Shopify admin, go to Online Store -> Themes.

  2. Find the theme that you want to edit, and then click Customize.

  3. Click Theme settings -> General.

  4. Scroll to Swatch and choose Type as Advanced Color

After that, please upload an image with the same name as the color name (Go to Settings → Files -> Upload Files).

Naming convention: Lower cap and use a hyphen "-" to replace white space if your color image name has the white space. For example: your special color will have this name: "Holo Rainbow", you will upload the png image is holo-rainbow.png

You need to make sure your color name match with the color name at:

How to add a new Metafields?

  • From your Shopify admin, go to Settings -> Custom data.

  • Click Variants → Add Definition.

Please enter the correct Namespace and Key as we noted below.

Name: Variant Color
Namespace and key: custom.variant_color
Select content type: Text

How to insert content for Product Metafields?

  1. From your Shopify admin, go to Products -> All products.

  2. Find and choose the product that you want to edit.

  3. Find and choose the variant that you want to edit.

  4. In the Metafields, you need to insert "Color codes" or "Image with PNG format" for "Variant Color".

  • Image with PNG format

After that, please upload an image with the same name as the color name (Go to Settings → Files -> Upload Files).

Naming convention: Lower cap and use a hyphen "-" to replace white space if your color image name has the white space. For example: your special color will have this name: "Dark Gray Custom", you will upload the png image is dark-gray-custom.png

For more information, see .

. If the color name doesn't exist on the w3schools website, it will not display on your site.

Adding images to product variants
http://www.w3schools.com/tags/ref_colornames.asp
Variants