Switching variants

Switching variants

To switch Variants, call the setVariants function, e.g. from your click-handler, providing an array containing the respective part numbers (as string).

e.g. 01:

<button onclick="setVariant(['option_01', 'option_02', '...'])">Config 01</button>

e.g. 02 jQuery:

jQuery(".buttonType").on("click", function (e) {
    let partNumberArray = [
        "option_01",
        "option_02",
        "option_03",
        "option_04",
        "option_05",
        "..."
    ]
    setVariant (partNumberArray);
});