Following this article: https://support.wix.com/en/article/velo-tutorial-adding-a-product-configurator-to-a-wix-stores-site
I found that $w ( # ${ option } Img ). src = choiceData.displayImage
Is not performing as it should. I’ve tried to figure out why, but I’ve turned up empty. I’ve spent 8 hours on this so far and still can not figure out why
export function mbselectionRepeater_itemReady ( $w , itemData , index ) {
// Set the action that occurs when a user clicks a choice for the body option.
$w ( ‘#mbbutton’ ). onClick ( () => {
// Select the choice using the selectChoiceForOption() function.
selectChoiceForOption ( $w , ‘motherboard’ , itemData );
//on mobile, collapse the repeater and expand the next one
if ( wixWindow.formFactor === 'Mobile' ) {
toggleFold ( 2 );
}
});
}
wont interact with buttons
please help