I remember seeing a thread or two in here before about this but i'm having trouble finding them and I'm curious if there have been any updates.
I'm trying to set up sizes for shoes, the different products have different options available (a simplified example: e.g. one shoe product maybe available in sizes 8M, 9M, 10M, another may be available in 6M,7M,8M). It seems like shared choices would be the best way to set these up so i set up a ShoeSize shared choice dropdown with all of the possible shoe sizes, then when I apply it to a product, I am able to deselect particular options which are not available.
This method makes complete sense to me. Where it begins to get extremely confusing is: why are the non-selected options still shown in the dropdown? I understand that if a customer selects them, they still won't be able to check out, but for the purposes mentioned above this makes the shared choices worthless.
I've taken a look at the code and it looks like the relevant section lies in the VariantsDisplay.ascx.vb control, in the Initialize section:
Code:
If TypeOf item Is Catalog.ProductChoice Then
Dim choice As Catalog.ProductChoice = DirectCast(item, Catalog.ProductChoice)
Dim choiceTemplate As Content.ProductChoiceTemplate = Content.ModuleController.LoadProductChoice(choice.Type, Me.Page)
If choiceTemplate IsNot Nothing Then
AddHandler choiceTemplate.SelectionChanged, AddressOf Me.SelectionChanged
choiceTemplate.BlockId = choice.Bvin
choiceTemplate.ID = "choiceTemplate" + count.ToString()
choiceTemplate.Product = Me.BaseProduct
choiceTemplate.InitializeDisplay()
VariantsPlaceHolder.Controls.Add(choiceTemplate)
End If
ElseIf
Can anyone shed some light on the Content.ProductChoiceTemplate or offer any solutions to possibly parse through the choice template to remove irrelevant options?
Product Modifiers:Also, I looked at using a shared product modifier, but it looks like you can't even select/deselect choices from this when applying to a product (since it doesn't create any combination/variants).
Choice entry:Looks like the alternative is to add the sizes manually for each product via the extremely slow Product Modifier Edit section. Has anyone looked at or thought of integrating some sort of ajax/grid entry for this capability so you dont have to keep bouncing back and forth to new pages every time you add a single choice?
If anyone could help, I'd greatly appreciate any advice!