Hi, I want to use code to change the text string that is displayed for the ProductOption from my ProductPage, without renaming it in the database. I have a custom product configurator, but when on mobile I redirect the user to the default, premade Wix product page, that includes the productPage1 element. My store only offers one product. The naming structure for the options are shorthand, for example "hs" instead of "heatshrink". Simply changing the option name is not possible for me, the custom code I have written and custom elements I have attached to my site's more fully-featured configurator would take forever to rename, even using a utility. I have more than one option, also. So I have instead written this code, but it doesn't work. Any ideas why? Thanks.
var str = "hs"; var res = str.replace("hs", "heatshrink");