Skip to main content

Bundle

A bundle (a set) is several products sold together as one: its own page (/bundle/{id}-{slug}), with its own price, images and texts. A bundle is made of variants of products; every variant is one colour (the main characteristic) of a product, in one or more sizes. A bundle is listed while every colour of every product in it has at least one size on sale, so a sold-out black does not keep a set alive because the red is still available.

The bundle pages use bundle.twig; the lists of bundles (a group of bundles at /bundles/{id}-{slug} or the bundles of a category at /category/{id}-{slug}/bundles) use list.twig.

Bundle card​

In a list the bundle is a product card with is_bundle: true. These values differ from a variant card:

VariableDescription
id, variant_idID of the bundle (the bundle page's ID)
is_bundletrue; is_variant is false
serialBUNDLE-{id}
titleThe bundle's name in the current language
url/bundle/{id}-{slug} on the current sale channel
product_idsThe IDs of the products in the bundle
variant_idsThe IDs of the variants in the bundle (every size of every colour)
price, original_price, discount_priceThe sum of the pieces' prices (one piece of every product): price is the discount price when the sum is lower, discount_price is null otherwise
stock1 while every colour has a size in stock, else 0
preorderAlways false

Bundles made of the same pieces in other colours are the "other colours" of a set: variant_ids show which colour of a product a set is made of.

Bundle page​

VariableDescription
bundleThe bundle object, see below
titleThe bundle's name; the page title
descriptionMeta description of the bundle page
langCurrent language code
currencyCodeThe currency of the sale channel
mainVariantThe main variant of the set: the values of a product (codes, images, availability)
variantsThe pieces of the set, by product: each has its mainVariant, its variants and sizes, and the size tables (measurements) of its category
measurementsThe size tables of all the pieces together, every table once
shopsList of available shops or sales channels
top_categoriesThe category path of the main variant, for the breadcrumb
layoutLayout data for rendering the page
similar_productsOther bundles of the same group, for recommendation blocks
recommended_products"Recommended for you": products picked from the visitor's recent activity
other_bundlesOther bundles that contain at least one product of this one
delivery_estimateThe estimated delivery: from, to (Y-m-d) and country
delivery_dateThe estimated delivery as a text

The bundle object​

VariableDescriptionComment
idID of the bundle
product_idsThe IDs of the products in the bundle
serialBUNDLE-{id}
name, titleThe bundle's name in the current language
short_descriptonEmpty
descriptionFull description in the current language
slug, urlThe slug, and the full URL of the bundle page
imagesThe bundle's images
price, original_price, discount_priceAs on the card (amount, currency)discount_price is null without a discount
availability, availability_buttonAvailability of the main variant
stock1
release_dateRelease date of the main variantNullable
sales_channelSales channels of the main variant
created_at, updated_atTimestamps of the main variant