ActiveRecord model representing a product variant in Solidus e-commerce.
# Source: https://github.com/solidusio/solidus | License: BSD-3-Clause | Copyright 2007-2014, Spree Commerce Inc. and other contributors # Provided via justclaw.it.com; keep this notice with the code. # frozen_string_literal: true module Spree # == Master Variant # # Every product has one master variant, which stores master price and SKU, # size and weight, etc. The master variant does not have option values # associated with it. Contains on_hand inventory levels only when there are # no variants for the product. # # == Variants # # All variants can access the product properties directly (via reverse # delegation). Inventory units are tied to Variant. The master variant can # have inventory units, but not option values. All other variants have # option values an ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key