|
Home > Archive > Commerce Server General > September 2004 > product with multiple variants adding to basket
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
product with multiple variants adding to basket
|
|
|
| Hi all,
I'm struggling to get my head round the best way to add a product with
multiple variants to a basket. For instance, say I had a product with size
variants and colour variants, which variant ID do I pass into the basket? Do
I concatenate the variant IDs for Commerce Server to somehow work out?!... Or
would I create a variant for every combination, and just add that? If this is
the case, how would I display the colour in one drop down and the size in
another. Sorry if it seems like I'm asking alot here, I just can't get my
head round it - the penny is taking a while to drop on this one!
Many thanks in advance,
Scott
| |
| Dinesh Chadha 2004-09-28, 5:52 pm |
| Hi Scott,
As per Commerce Server, Each product can have multple variants. But
each Variant is recognised by a VariantId. So in your case, the
combination of "Size" & "Color" makes "One Variant Id". You have 2
solutions:
1. Display the combination of "Size - Color" as one Variant and in
BizDesk assign variantid to each of these combinations. e.g.
SM - Red (VariantID in BizDesk = smred)
SM - Blue (VariantID in BizDesk = smblue)
XL - Red (VariantID in BizDesk = xlred)
XL - Blue (VariantID in BizDesk = xlblue)
etc etc.
2. If you want to show "Colors" & "Size" in separate drop downs, in
that case you have to dynamically generate VariantIds in from based
upon user selection and pass that to basket.
#1 is much easier to impelement. If you still have any doubts, let me
know.
Good Luck
Dinesh Chadha
"Scott" <Scott@discussions.microsoft.com> wrote in message news:<14DF18ED-7C60-4C6F-B6FB-E3A20369E76E@microsoft.com>...
> Hi all,
>
> I'm struggling to get my head round the best way to add a product with
> multiple variants to a basket. For instance, say I had a product with size
> variants and colour variants, which variant ID do I pass into the basket? Do
> I concatenate the variant IDs for Commerce Server to somehow work out?!... Or
> would I create a variant for every combination, and just add that? If this is
> the case, how would I display the colour in one drop down and the size in
> another. Sorry if it seems like I'm asking alot here, I just can't get my
> head round it - the penny is taking a while to drop on this one!
>
> Many thanks in advance,
> Scott
|
|
|
|
|