Option Selection Deactivation

Solved

Option Selection Deactivation

brushy
Tourist
7 0 0

 

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.

Accepted Solution (1)
Sweet_Savior_3
Shopify Partner
1372 104 145

This is an accepted solution.

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

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!

View solution in original post

Replies 6 (6)

rory586
Visitor
1 0 0

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.

Best regards,
ky kynect
brushy
Tourist
7 0 0

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

Sweet_Savior_3
Shopify Partner
1372 104 145

Hello @brushy 
Do you mean to disable Auto Variant Selection on Product pages?

Please let me confirm for this?

 

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!
brushy
Tourist
7 0 0

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.

Sweet_Savior_3
Shopify Partner
1372 104 145

This is an accepted solution.

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

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!
brushy
Tourist
7 0 0

I have sent an email to shopify.dev.34@gmail.com. Please check it.