Jump to content

Custom code for "Price on request"

Go to solution Solved by paul2009,

Recommended Posts

hi all 

I have a Squarespace site created last year, where I am using the commerce functions to have a "webshop" where I can show used products I have for sale. Some products are difficult to set a price for, so I want to have the price say "price on request" if the price is 0 in the inventory management. Ever since the creation, I have had the following custom code injection to automatically change prices that are 0 to "Price on request". For some reason this has now stopped working. I'm not sure exactly when. 

Any thoughts on why it doesn't work?

Thanks in advance

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution
Posted (edited)
On 3/30/2023 at 9:24 PM, AlbaTroels said:

I have had the following custom code injection to automatically change prices that are 0 to "Price on request". For some reason this has now stopped working. I'm not sure exactly when. 

The code you are using is a very old version of my code from my guide, How to make some prices POA on Squarespace 7.1. If you take a look at the guide, you'll see that I updated it last year when Squarespace made changes to the page markup. The most recent version should work correctly 🙂

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

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.