Skip to content
All Answers
Commerce

How do I style out of stock products on Squarespace?

When a product is sold out in Squarespace 7.1, the add-to-cart button gets a .sqs-editable-button-state-disabled class and the product item receives a sold-out data attribute. You can use these hooks to visually indicate unavailability.

Graying out the product image and reducing opacity on the card makes it immediately clear to shoppers which items are unavailable without removing them from the grid.

.ProductList-item[data-product-sold-out="true"] img {
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.ProductItem .sqs-add-to-cart-button[disabled],
.sqs-editable-button-state-disabled {
  background-color: #ccc !important;
  cursor: not-allowed;
  opacity: 0.6;
}
Generate this with our Products V2 StylerTry it free →

Related Questions

Commerce

How do I change the Add to Cart button style in Squarespace?

Commerce

How do I style the product price in Squarespace?

Commerce

How do I hide the quantity selector on Squarespace product pages?

Commerce

How do I style the product variant dropdown in Squarespace?

A little over your head?

No shame — this stuff is hard. Let the pros handle it.

Long Drive MarketingTalk to Long Drive Marketing →