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

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

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.