Jump to content

Text under PRICE on SHOP PAGE

Go to solution Solved by paul2009,

Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
On 6/25/2020 at 6:53 PM, Shanika said:

I need help I want to put "excluding VAT" under the £ price on the shop page.

You can do this by adding the following to Design > Custom CSS:

.product-price:after {
  content: 'Excluding VAT';
  display: block;
  margin-top: 7px;
  color: red;
  text-transform: uppercase;
}

233050990_Screenshot2020-06-25at19_04_27.thumb.png.3ec6d9437996ade21300a51bfb21e78e.png

Updated in August 2022 due to the Squarespace Price Formatting update (23 August 2022).

Edited by paul2009
Squarespace Price Formatting update

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation 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.

Buy me a coffee

Link to comment
5 minutes ago, paul2009 said:

You can do this by adding the following to Design > Custom CSS:


.product-price .sqs-money-native:after {
  content: 'Excluding VAT';
  display: block;
  margin-top: 7px;
  color: red;
  text-transform: uppercase;
}

233050990_Screenshot2020-06-25at19_04_27.thumb.png.3ec6d9437996ade21300a51bfb21e78e.png

 

Hi Paul, THANK YOU! I tried that still I don't see anything. I am using version 7.1.

Please see attached. Am I doing something wrong? sorry new to this

Screenshot 2020-06-25 at 19.17.17.png

Link to comment
1 minute ago, Shanika said:
10 minutes ago, paul2009 said:

You can do this by adding the following to Design > Custom CSS:



.product-price .sqs-money-native:after {
  content: 'Excluding VAT';
  display: block;
  margin-top: 7px;
  color: red;
  text-transform: uppercase;
}

233050990_Screenshot2020-06-25at19_04_27.thumb.png.3ec6d9437996ade21300a51bfb21e78e.png

Never mind I removed the other css and it worked 🙂 amazing thank you so much!

 

Link to comment
  • 2 months later...

Hello Paul

Sorry to hijack Shanika's thread but is it possible to go one step further and instead of adding Excluding VAT on next line to add it as a suffix to price? If so is it also possible to do a calculation based on ex vat price and show inc vat pricing something like below...

£100.00 + VAT [£120.00 inc VAT}

Thanks in advance
Nick

Link to comment
On 8/27/2020 at 10:37 AM, nickcadsoftuk said:

is it possible to go one step further and instead of adding Excluding VAT on next line to add it as a suffix to price? If so is it also possible to do a calculation based on ex vat price and show inc vat pricing

You can add the label as a suffix by removing some of the lines of code that I supplied. For example:

.product-price:after { 
  content: '+VAT'; 
}

However, this will only work for products without variants. Also, if you want to show the ex/inc pricing, you’ll need to do it entirely differently, using JavaScript.

Updated because of the Squarespace Price Formatting update that started rolling out on 23 August 2022.

Edited by paul2009
Updated due to Squarespace Price Formatting update

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation 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.

Buy me a coffee

Link to comment
  • 1 year later...
1 hour ago, HG-Design said:

as the product has variables, once you select the dropdown options, the added ex vat test is not displayed

When a valid variant is selected, the span with the sqs-money-native class will disappear but the parent div with the product-price class will still exist and can be used instead.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation 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.

Buy me a coffee

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.