Jump to content

How can I move an add-on product above 'Add to Cart'?

Go to solution Solved by Lesum,

Recommended Posts

  • Replies 2
  • Views 194
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

@CSSnoob Hi! To move add-on products above the 'Add to Cart' button and add-on's plus symbol to the left, add this code Website > Pages > Website Tools > Custom CSS

#pdp .ProductItem-details .ProductItem-details-checkout {
    display: flex !important;
}

.ProductItem-details .ProductItem-product-price {
    order: 1 !important;
}

.ProductItem-details .ProductItem-details-excerpt.ProductItem-details-excerpt-below-price {
    order: 2 !important;
}

.ProductItem-details .pdp-product-add-ons {
    order: 3 !important;
}

.ProductItem-details .ProductItem-quantity-add-to-cart {
    order: 4 !important;
}

// move the add-on plus symbol to the left

.product-details .pdp-product-add-ons .add-on-card {
  flex-direction: row-reverse !important;
}
.product-details .pdp-product-add-ons .add-on-details {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    flex-direction: column !important;
    align-content: flex-end !important;
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.