Can someone tell me how I can change the currently selected variant with velo code.
What editor element do you want to change?
If it dropdown you can use a selectedIndex property
$w("#myDropdown").selectedIndex = 0;
The drop down element is in a wix product page not a custom created page so the drop down cannot be accessed with code.
This is why i try never to use apps → CUSTOM-MODE → BEST!