Jump to content

Customizing commerce variant buttons

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://cocoshalom.com/prints/harmonia

Hi all,

I manage a site for an artist who sells prints. When customers go to purchase prints, they are to select the size and colour of print that they'd like. The buttons for these two variants are rather ugly and I would like them to match the other buttons throughout the site. Please help!

Thank you in advance! 

Screen Shot 2021-03-09 at 2.14.48 PM.png

Edited by acjo
Link to comment
  • Solution
2 hours ago, acjo said:

Site URL: https://cocoshalom.com/prints/harmonia

Hi all,

I manage a site for an artist who sells prints. When customers go to purchase prints, they are to select the size and colour of print that they'd like. The buttons for these two variants are rather ugly and I would like them to match the other buttons throughout the site. Please help!

Thank you in advance! 

Screen Shot 2021-03-09 at 2.14.48 PM.png

You could try this css

.collection-type-products .sqs-add-to-cart-button {
    min-width: 220px;
    box-sizing: border-box;
}
#productDetails .product-variants .variant-option select {
  padding: 1em 2.5em;
  min-width: 220px;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-indent: 1px;
  text-overflow: '';
}
.variant-select-wrapper {
  position: relative;
}
.variant-select-wrapper:after {
    content: '';
    position: absolute;
    left: 190px;
  top: 1em;
    transform: rotate(45deg);
    border-bottom: 1px solid #767676;
    border-right: 1px solid #767676;
    height: 1em;
    width: 1em;
    transform-origin: top;
    pointer-events: none;
    font-size: 1em;
}

image.png.525f97bbef5771c67e0f78afb155e251.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 7 months later...

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.