Product Variant Object Reference

Overview

Product Variants are different variations of the same product. For example, small, medium and large, or red, green or blue. Each product can have an unlimited number of Product Variants, each of which is just another product. By having 2 variant records per product (one for colour and one for size), you could achieve a combination like Red Small, Red Large, Blue Small, Blue Large. This would represent 4 products, but require 8 product variant records.

Property Value
API Name s_c__Product_Variant__c
Label Product Variant
Plural Label Product Variants
Type Custom Object

Fields

Field Label API Name Type Required Description
Master Product s_c__Master_Product_Id__c Lookup (Product2) No A Lookup to the product the variants are grouped under.
Position s_c__Position__c Number(18,0) No The position of the product variant in relation to others related to the same master product with the same variant type. Lower numbers are shown first, records without a number are then sorted alphabetically by value.
Variant Label s_c__Variant_Label__c Text(255) No The button text or picklist value shown on the product page. If no value is provided we use Variant Value instead.
Variant Product s_c__Variant_Product_Id__c Lookup (Product2) No A Lookup to the product that can be selected under the master product.
Variant Type s_c__Variant_Type__c Picklist Yes The grouping this variant record belongs to within the master product. i.e. Size, Colour, Type etc.
Variant Value s_c__Variant_Value__c Text(255) Yes Defines the specific value of the variant for selection. i.e Red, Blue, Large, Small etc. This vlaue does not need to be what the customer sees as you can use the Variant Label field for the customer facing value.
StoreConnect External ID s_c__sC_Id__c Text(36) No StoreConnect External ID, do not modify in Salesforce.

Relationships

Field Type Related Object Relationship Name
s_c__Master_Product_Id__c Lookup Product2 Master_Product_Variant_Products
s_c__Variant_Product_Id__c Lookup Product2 Variant_Product_Master_Products