Jump to content

Move Add To Cart button in a Product Block?

Recommended Posts

I'm trying to re-order the Add To Cart/Purchase button in a Product block so that it's above the description and below the Price. I've tried snippets of code I found on this site but none of them are working. 

I have this code that reorders the buttons on a Product Page, but I need it for the Product Blocks. How can I modify it to accomplish this task?
Thanks.

#page .ProductItem-details-checkout {
  display: flex;
  flex-direction: column;

  /* Set Orders */
   .ProductItem-product-price {
    order: 1;
  }
  .sqs-add-to-cart-button-wrapper {
    order: 2;
  }
  .product-variants {
    order: 3;
  }
  .product-quantity-input {
    order: 4;
  }

  .ProductItem-details-excerpt {
    order: 5;  
  }

Edited by ShuiFeng
Link to comment
  • Replies 6
  • Views 364
  • Created
  • Last Reply

Top Posters In This Topic

Hi tuanphan,

I was able to get the Add To Cart button positioned below the price with the code below but I still need to add a Checkout Now button next to it (to the right). Could you help me with that please? Thanks in advance

.product-block .productDetails{
  display: flex !important;
  flex-wrap: wrap;
  flex-direction: column !important;
  .product-title{
    order: 1 !important;
  }
  .product-price{
    order: 2 !important;
  }
  .sqs-add-to-cart-button-wrapper{
    order: 3 !important;
  }
  .product-quantity-input{
    order: 4 !important;
  }
  .product-variants{
    order: 5 !important;
  }
  .product-excerpt{
    order: 6 !important;
  }
}

 

 

 

Link to comment
5 hours ago, ShuiFeng said:

Hi tuanphan,

I was able to get the Add To Cart button positioned below the price with the code below but I still need to add a Checkout Now button next to it (to the right). Could you help me with that please? Thanks in advance

.product-block .productDetails{
  display: flex !important;
  flex-wrap: wrap;
  flex-direction: column !important;
  .product-title{
    order: 1 !important;
  }
  .product-price{
    order: 2 !important;
  }
  .sqs-add-to-cart-button-wrapper{
    order: 3 !important;
  }
  .product-quantity-input{
    order: 4 !important;
  }
  .product-variants{
    order: 5 !important;
  }
  .product-excerpt{
    order: 6 !important;
  }
}

 

 

 

Click checkout >> it will redirect to product page or..?

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
9 hours ago, ShuiFeng said:

There isn't a Checkout button yet, I've included a screenshot. The right side is how it looks now and the left side is how I want to create and align a Checkout Button (if possible).   1637298324_ProductBlocks1.thumb.png.501a3ac56a86329c81a1a6055d41dad4.png

If you can add a text link in excerpt, then we can move it there

If not possible, let me know. We will need to use script code to add button

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.