LauraKamphuis Posted April 18, 2022 Share Posted April 18, 2022 Site URL: https://www.laurakamphuis.com/ Hi, I have update my website to the Hyde template and after having applied this theme I see that the pricing of a product (whether this is on the homepage or on my paintings page) is not visible the first time I load the website. The prices are however visible after a reload. Anyone has a clue why this is? Link to comment
Solution paul2009 Posted April 18, 2022 Solution Share Posted April 18, 2022 This is being caused by the script you (or someone else! 🙂) has added to the code injection header. It is supposed to hide the sold out prices but to be totally honest it is poorly written, is unnecessarily slowing down the site and is the cause of prices being hidden because it hasn't been written to take account of Ajax Page Loading that Hyde uses (I wrote about it here). You could just disable Ajax Page Loading in Site Styles, but you'll have a slower site. The better alternative is to remove this very old (vulnerable) jQuery and the script here first: Then, you can use some CSS instead to hide the sold out prices instead. You can do this by adding the following to the end of Design > Custom CSS: /* Hide SOLD OUT price on PLP */ .collection-type-products .sold-out .grid-prices { display:none!important; } /* Hide SOLD OUT price on PDP */ .ProductItem.sold-out .ProductItem-details .product-price { display: none!important; } Squarespace are dealing with a bug right now (details), so you'll need to save this and then view your site in another browser (one where you aren't logged into Squarespace) to see the changes work. Was this post informative? Please give feedback by clicking an icon below ⬇️ About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
LauraKamphuis Posted April 19, 2022 Author Share Posted April 19, 2022 @paul2009 Thank you so much for your efforts. Have done the changes and all is working great again! Have a great day. paul2009 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment