Jump to content

Redirect Add To Cart button in Product Block & Product Details Page

Recommended Posts

Site URL: https://shuifeng.squarespace.com

Hi all. I need to redirect two Add To Cart buttons to Sendowl (one button in the product block & one button on the product details page. I have tried the below code and it does not work on my site. I have added a text link "Add to cart" to the Additional Info section of the product details. 

I'm trying to accomplish the below task(s). 

  • hide current add to cart
  • change text link style to button style
  • move text link to add to cart position

I need to get this to work on both the product block and the product details page. Thanks in advance.
(if there is another way to redirect to Sendowl please tell me!) 

Site: https://shuifeng.squarespace.com/shop/p/clutter-clear-challenge  Password: ShuiFeng

.ProductItem-details-checkout .sqs-add-to-cart-button-wrapper {
  display: none;
.ProductItem-details-excerpt a[href*=sendowl] {
  text-decoration: none;
  border-radius: .4rem;
  -webkit-transition: .1s opacity linear;
  -moz-transition: .1s opacity linear;
  -o-transition: .1s opacity linear;
  transition: .1s opacity linear;
  -webkit-backface-visibility: hidden;
  color: #fff;
  background-color: #000;
  border-color: #000;
  display: inline-block;
  width: auto;
  height: auto;
  border-width: 0;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 1em;
  font-weight: 500;
  font-style: normal;
  text-transform: none;
  line-height: 1.2em;
  letter-spacing: .05em;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: normal;
  padding: 1.2em 2.004em;
  width: 250px;


Edited by ShuiFeng
Link to comment
  • Replies 3
  • Views 421
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

16 hours ago, ShuiFeng said:

Hi Tuan. I had it incorrect, I apologize. It's https://shuifeng.squarespace.com/shop/p/clutter-clear-challenge , Password: ShuiFeng

Hi, You want

  • Remove current add to cart
  • Change add to cart on Additional Info to button style
  • Move add to cart in Additional Info to current add to cart button position

Is this right?


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.