Posted on 01/09/2025 11:20:19
Hi Michael,
Yes, when you combine products into multiple dimension variants, the variant option id's will be separated by a dot sign.
It that the situation here? That you receive products and variants from BC and combine them in PIM? Variants in BC are very similar to "simple variants" in DW, where you have one record in EcomProducts representing the item and a number of records in EcomVariantOptionsProductRelation representing the variants.
When they are combined and receive a dotted variant id, each variant will have its own record in EcomProducts also, and when importing prices and other related information, you need to keep track of the original item number and variant code from BC, as suggested by Matthias in ProductExternalId and ProductExternalVariantId. Then, you can resolve the DW ProductId and ProductVariantId by looking the record using these fields when importing prices.
You also need this information when submitting an order back to BC, so there's probably a need for tweaking that integration too :)
An alternative to use variants could be to use product families (https://doc.dynamicweb.dev/manual/dynamicweb10/products/concepts/variants-families.html). They use the same tables as variants, but the structure is a bit different, since each item will have a record in EcomVariantGroups containing the Item Number, and the variant codes will be saved in ProductVariantId in a releate record in EcomVariantOptionsProductRelation. This structure fits nicely when sending over orders to BC but of cause it doesn't contain any variant dimension information.
Feel free to post back if you have comments or questions :)
Br.
Lars