Jump to content

Help! Quantity and 'Add to Cart' button have moved above the product description...

Go to solution Solved by Lesum,

Recommended Posts

Hi

The 'Quantity' and 'Add to Cart' button have moved above the product description on my site. I actually wouldn't mind but the 'Variants' dropdown and price are still below. I need to either move them all above or below the description.

It may have been some code I added and didn't notice but I didn't think that was the case... Help!

 

LarryAP

product page issue.png

Link to comment
  • Replies 5
  • Views 705
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Solution

@LarryAP You can try adding this code snippet under Utilities > Website Tools > Custom CSS.

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

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

Make sure you add the code after all the code you've added so far. 

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

The reason these elements moved is because Squarespace changed the structure of the page so your CSS is no longer targeting the correct elements.

The quantity and add to cart used to be siblings with other elements such as excerpt, price, and etc...

Quantity and atc are still siblings to each other but they are now wrapped in a div with a class name of ProductItem-quantity-add-to-cart. This new div is now the sibling of excerpt, price, and etc...

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
5 hours ago, Lesum said:

@LarryAP You can try adding this code snippet under Utilities > Website Tools > Custom CSS.

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

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

Make sure you add the code after all the code you've added so far. 

Thanks so much for this, may you live to be a thousand years old.

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.