Jump to content

Setting the default form value on a product's page

Recommended Posts

Site URL: https://khaki-gerbil-cdd4.squarespace.com/

Hello everyone,

I'm working on a fine art print shop project. On a certain product page like this:

https://khaki-gerbil-cdd4.squarespace.com/shop/p/no-1-mmedn-ct2my-t8per-pgh8a-z4zl7-l6xez-d2rcz-9tbsl-fx7a4-wbyhw-yxwkc

password: modern84

there is a form for size and color variant selection. The "size" is correlated with price. The color is correlated with a different image loading (black and white variant of the image). My issue is that the price doesn't change until you choose the color and the image correlated with color selection won't show, until I choose the size (which is unnecessary). My solution would be to change the default values of the dropdown menu from "Select size" and "Select color" to "20x20" and "Original color" respectfully. Do I need to do it in javascript or CSS would suffice? Any help appreciated!

cheers,

Tom

 

Edited by ziebol1
language error
Link to comment
9 hours ago, ziebol1 said:

On a...product page...there is a form for size and color variant selection. The "size" is correlated with price. My issue is that the price doesn't change until you choose the color...until I choose the size (which is unnecessary).

We sell a low-cost add-on to solve the issue where the price does not update when a customer selects a single variant. It pre-selects the first option so that an accurate cost can be shown.

Here's a link to the Variant Pricing extension page where you'll find more details, or reach out to us if you have questions.

variant-pricing-tile.thumb.png.8e1bf0b67d41e60cc05079e653d0815d.png

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment
  • 3 weeks later...
On 10/27/2021 at 1:50 AM, paul2009 said:

We sell a low-cost add-on to solve the issue where the price does not update when a customer selects a single variant. It pre-selects the first option so that an accurate cost can be shown.

Here's a link to the Variant Pricing extension page where you'll find more details, or reach out to us if you have questions.

It's unfortunate that SquareSpace doesn't provide such basic functionality but grateful that it is available.  I purchased and installed and it worked as advertised.  Thanks!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.