Jump to content

Create pre-order badge with tagging

Recommended Posts

Posted
On 4/7/2020 at 9:05 PM, TheArtisanStudio said:

I would like to add a third badge that would look like the "Sale" and "Sold out" badges, saying "Pre-order". I don't believe this feature exists yet. [I would like to add the badge... to display over the top of the product image both when in the groups of products and the individual product page.  This is the website: https://theartisanstudio.uk/ 

There's not a built in feature to do what you need, but it can be achieved with some code. Take a look at the guide I put together:

https://sf.digital/squarespace-solutions/adding-a-custom-product-badge-to-squarespace

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted (edited)

Again for some reason I couldn't see your reply until now.

Your guide is awesome Paul! Truly awesome. The clearest instructions to do anything I have seen for years. It took me all of two minutes to get it up and running. How can I thank you?

Something really weird is happening - the pre-order badge only appears when I refresh pages (same on desktop computer and mobile) and not the first time it loads. Any ideas why?

Looking at your code, and how it works sublimely across all of my product pages (I have three due to Squarespace's 200 product limit) I wonder whether it can be used to do other things across all product pages at the same time? Like pulling them to a single link (to make a selection on one page of products from more than one product page? Or tagging across product pages?

Edited by TheArtisanStudio
Issue arose after I wrote the first version
  • 1 month later...
Posted (edited)

Paul,

I am using (and LOVING) your Wishlist extension and would like to add a 'New' custom status badge to items as they get added to our site. Followed the instructions and the badges show up when viewing the product page, but they do not appear when using a summary block.

Thanks!

Edited by b_eddy
  • 2 months later...
Posted
On 6/2/2020 at 5:43 PM, b_eddy said:

Paul,

I am using (and LOVING) your Wishlist extension and would like to add a 'New' custom status badge to items as they get added to our site. Followed the instructions and the badges show up when viewing the product page, but they do not appear when using a summary block.

Thanks!

Any luck on getting this to work?

  • 1 year later...
Posted
43 minutes ago, TheArtisanStudio said:

The current code you did before shows the word "pre-order" below the product but no badge.

The code in my guide changes the wording of the 'badges' so that you can have custom names. It doesn't change the formatting. 🙂

As you'll have seen, Squarespace changed the style of their 'badges' on 7.1. Previously they appeared as small shapes on the images, but on 7.1 they are plain text, added below the product image. However, you can change this styling of badges with some Custom CSS. For example:

.products.collection-content-wrapper .product-mark {
  position: absolute;
  top: 17px;
  right: 17px;
  background: #444;
  padding: 3px 5px;
  font-size: 11px;
}

928473449_Screenshot2021-08-31at16_00_40.thumb.png.32ee71e375262d2890118cf1584fba2a.png

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

  • 4 weeks later...
Posted

First of all I apologise profusely - once again I got no alert for your reply and only just found it. Fantastic Paul it works! Can I have more than one wording for the badge? i.e. "pre-order" and "Arriving next week!" ?

  • 5 months later...

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.