Jump to content

How can I get the summary grid 'SALE' badges to show on the store page view too?

Go to solution Solved by creedon,

Recommended Posts

Hi Tom

Definitely something not quite right still.

I'll insert a screen grab below. The 'sale' badge is taking precedent on an item that's out of stock. I think it's more logical to show it as 'sold out' on the badge even though it was a sale item.

(https://stoneandspectra.com/shop   amethyst 7)

 

Screen grab:

image.thumb.png.d7f6aea9a1903a7134a0ca15c4367759.png

 

I'll leave the css as it is so you can see it.

Thanks for your help 😊

Edited by victoria85
Link to comment
Quote

Definitely something not quite right still.

Move the sold out code after the sale code. In CSS the last ruleset wins and it's declarations are applied over previous ones.

Let us know how it goes.

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

Hi Tom!

 

This has worked perfect!!

I'm not completely fluent in css, I know a lot more than I did (I get by and I'm learning!) so thank you for your patience. I really appreciate the help. My shop is looking exactly how I want it to now in terms of the sale badges and sold out badges. I'm super happy with them!

Here's how it's looking:

image.thumb.png.cd023e0d01384ee22a7659d40cba7ee9.png

 

Thanks for all your help 😃

 

Link to comment
  • 3 months later...
56 minutes ago, AntonioSantos said:

I was wondering if you have a similar code but to use on summary block

I do not. Summary blocks natively support badges.

ScreenShot2023-09-19at2_09_05PM.thumb.png.222692b5fb75caf98e485b90c93958a2.png

Product list pages natively use a mixture of badges and text to indicate state.

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

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.