Questions tagged [variants]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
21 views

Craft Commerce: fixed product variants/multiplier

We have a client that is selling products with fixed rate variants. In other words so that the base cost is the only price defined whilst others are based on a globally defined multiplier, eg. 1.5x or ...
0
votes
0answers
13 views

Updating a `purchasableId` on an existing `lineItem` in Craft Commerce

The design for our cart is such that there are lines items listed in the UI which represent a product each. For each of those there is a drop-down selector which allows the user to change the variant ...
1
vote
0answers
15 views

Adding Product Variant and Related Product to the cart together on Craft Commerce 2

I want to add a product variant as well as a related product (chosen from a select list) together when the user clicks the add to cart button. I can see you can add multiple products together with ...
1
vote
1answer
27 views

Get and display a product's variant fields in twig

I'm working on a product template that can display products of any type. Various product types have varying numbers of variant fields each with their own options as other products. (All of my variant ...
1
vote
1answer
120 views

Get only enabled variants of a product

I would like to get all enabled variants for a product. I refer to the following question, where a method for limiting a for-loop is given: Disabled product variant still shows in {% for %} loop In ...
2
votes
1answer
58 views

Order products by lowest product variant

Currently using Craft Commerce 2. I was wondering if it's possible to order products by the lowest priced variant. I have tried something along the lines of this, but it doesn't do anything ...
1
vote
1answer
79 views

Accessing Commerce product variant dimensions in the template

I have been unable to locate anything in the docs or any questions on here regarding how to print the dimensions associated with a variant in the template. All I have managed to find is how to print ...
1
vote
0answers
32 views

Product variant association

On my Products details page I have 2 selects. The 1st select list out the Primary variants. Based on the selected Primary variant the 2nd select is auto-completed in with Secondary variants that have ...
1
vote
0answers
47 views

Creating variants

I need to create variants for my entries ( the entry type is Product but I'm not on Craft Commerce ). The variants have a number of features. Those features may change between products ( ex. variants ...