I am using the Prestige theme.
I would like to disable the automatic selection of options when the page is first loaded.
Does anyone know how to do this?
If there are any costs involved, I am willing to pay.
Goal: Disable automatic option/variant selection on Prestige theme product pages and show a placeholder (āPlease select an optionā) with no preselected variant.
Key steps discussed:
Clarifications:
Latest update/outcome:
Status: Open/ongoing. Pending custom development review of the provided code (external Google Doc link is central) and implementation. No finalized solution posted in-thread.
I am using the Prestige theme.
I would like to disable the automatic selection of options when the page is first loaded.
Does anyone know how to do this?
If there are any costs involved, I am willing to pay.
Hello,
To disable automatic option selection in the Prestig theme go to your Shopify admin panel navigate to āOnline Storeā > āThemesā and click āActionsā > āEdit codeā on the prestige theme. Find the relevant file like theme.js or product-template.liquid and look for any code that selects an option on page load like $(ā#product-selectā).val($(ā#product-select option:firstā).val());. comment out or remove this code. Save the changes and test your store to ensure the automatic selection is disabled.
The code you mentioned is not present in theme.js. I have copied the code from theme.js. Can you check this link?
https://docs.google.com/document/d/12PPRM91qmbFxLeliSTZls46RNk27wE8sBAlCBXV74ys/edit?usp=sharing
Hello @brushy
Do you mean to disable Auto Variant Selection on Product pages?
Please let me confirm for this?
When loading the product page, I do not want Option 1 to be selected automatically. Instead, I want it to display a message saying āPlease select an optionā without any option being pre-selected.
Hello @brushy
I have understood your requirement.
this needs to be custom coded in the theme and you will need a developer to develop this for you. Let me know if you need one. Thanks
I have sent an email to shopify.dev.34@gmail.com. Please check it.