LagoVistaFilmLab Posted August 12, 2019 Share Posted August 12, 2019 (edited) My site: https://www.lagovistafilmlab.com/shop/developandscan I would love to set the default variant of "Select Scanning Size:" to default to "Enhanced JPG [included]. How do I go about doing that? Edited August 12, 2019 by LagoVistaFilmLab Initial Revision Link to comment
ivan-dabbles Posted June 16, 2020 Share Posted June 16, 2020 Same. Would love this feature. Link to comment
Yannis Posted September 29, 2020 Share Posted September 29, 2020 Same here! That would definitely speed up the checkout process Link to comment
Solution SpencerC Posted September 29, 2020 Solution Share Posted September 29, 2020 Hi everyone, Thanks for the valuable input! For any feedback that you would like to be logged, contacting our Customer Support team would be the best approach. As per section 6 of the forum guidelines we don't track feature requests in this forum. Thanks! SPENCER CHRISTIECUSTOMER OPERATIONS ADVISORHE/HIM Link to comment
paul2009 Posted October 1, 2020 Share Posted October 1, 2020 On 8/12/2019 at 10:48 PM, LagoVistaFilmLab said: I would love to set the default variant You can set the default variant on each product using our Variant Pricing extension. Our extension preselects the first option in every variant dropdown so that customers can quickly purchase the default variant. Do contact me if you have questions or want to purchase something more bespoke. -Paul Begona 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
DomBrady Posted June 9 Share Posted June 9 You don't need to pay for an app: use this code <script> function setValue() { var dropdown = document.querySelectorAll('[data-variant-option-name="Type"]')[0]; dropdown.value = 'Summer Flap'; Y.one(dropdown).simulate('change'); var dropdown2 = document.querySelectorAll('[data-variant-option-name="Colour"]')[0]; dropdown2.value = 'Orange $89'; Y.one(dropdown).simulate('change'); } window.onload = setValue; </script> Link to comment
AshAb Posted August 8 Share Posted August 8 (edited) <script> function setValue() { document.querySelectorAll('div.variant-option select').forEach(function(dropdown){ dropdown.selectedIndex = '1'; Y.one(dropdown).simulate('change'); }); } window.onload = setValue ; </script> The above code can put in `Page Header Code Injection` and it will select the first variant option and displays its price as well I modified @DomBrady answer to work with any product variant without having to specify variant details in code Edited August 8 by AshAb Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment