Product Variant Level Metafields
1. Selling Plan IDs Metafield
Configuration
Key:
selling_plan_idsType:
jsonNamespace:
restockrocket_productionOwner: Product Variant
Purpose
Stores the list of selling plan IDs associated with a variant
Used to track which preorder plans are available for a variant
Enables quick lookup of available preorder options
Stored as a JSON array of selling plan IDs
Accessing in Liquid
{% assign selling_plan_ids = product_variant.metafields.restockrocket_production.selling_plan_ids.value | json %}2. Preorder Count Metafield
Configuration
Key:
preorder_countType:
number_integerNamespace:
restockrocket_productionOwner: Product Variant
Purpose
Tracks the current number of preorders for a specific variant
Used for inventory management and display
Automatically updated when orders are processed
Accessing in Liquid
3. Preorder Max Count Metafield
Configuration
Key:
preorder_max_countType:
number_integerNamespace:
restockrocket_productionOwner: Product Variant
Purpose
Sets the maximum number of preorders allowed for a variant
Controls inventory policy switching
Triggers blocking orders when count reaches max
Accessing in Liquid
Example Usage: Preorder Count and Max count
4. Shipping Text Metafield
Configuration
Key:
shipping_textType:
jsonNamespace:
restockrocket_productionOwner: Product Variant
Purpose
Stores shipping/delivery timeline text for a product variant
Stored as a JSON object with market IDs as keys and shipping text as values
Accessing in Liquid
Here's an example of how to access the above metafields via GraphQL
Accessing via GraphQL
Simple examples of using STOQ's variant-level metafields with basic Shopify liquid
Use Case: Show current preorder count and remaining spots.
Use Case: Show shipping info specific to the selected variant.
Last updated