Jump to content

How to change the currency symbol ? 

Go to solution Solved by paul2009,

Recommended Posts

Site URL: https://www.afroposters.com/posters/p/carte-abidjan-noirblanc

 

How to change the currency symbol ? 

Hello, my website is targeted at customers in West Africa, our currency symbol being" XOF ".
(I do not use the e-commerce payment features, but still need the store structure for my business.)

I was using a CSS code I found to just change the currency symbol (full tutorial here) :

.sqs-money-native:before {
   content:none !important;
}

.sqs-money-native:after {
   content:' XOF '!important;
}
 

But with the changes to the price formatting, this has stopped working (it is back to showing the "€" symbol) !

How it is :" 15 000,00 €" ---- what I want ----> "15 000 XOF"


Can someone please help me, for the moment I will try and hide the prices, but it's terrible for business.

The website is :

www.afroposters.com

We are on the commerce basic plan. (I read that some JavaScript might be required)

Thank you all very much in advance !

Edited by African_Kid
Link to comment
  • Solution
13 hours ago, African_Kid said:

I was using a CSS code I found to just change the currency symbol (full tutorial here) but with the changes to the price formatting, this has stopped working (it is back to showing the "€" symbol)!

Hi @African_Kid

You were following my guide 🙂 Changing the currency symbol in Squarespace but it would have stopped working when Squarespace introduced a price formatting update (starting on 23 August 2022). 

I have now updated the guide so please take a look and then let me know how you get on. As you'll be the first to try it, please DM me if you experience any issues.

Edited by paul2009

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

Hi @paul2009

The updated code has worked like a charm to change the currency symbol !

Thank you very much for how fast you answered 🙂

Now I just need to find a way to remove the ",00" which doesn't apply to our currency. I had an old line of code I was using for that, but it has stopped working as well ... Any chance you could help me with that as well ? 

Anyhow, thank you very much again !

Link to comment
1 hour ago, African_Kid said:

Thank you very much for how fast you answered. Now I just need to find a way to remove the ",00" which doesn't apply to our currency

You're welcome 🙂. I've added a section to the guide called Removing the decimal fraction.

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 hours ago, Amanda_in_NZ said:

I followed the instructions and now my prices are showing as NZ$

How do you want prices to show? They can show as NZ$ or $ without using any code 🙂

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
4 hours ago, Amanda_in_NZ said:

I want prices to show as NZ$(price) - for now at least! - but I want people to be purchasing in NZD not in Euros when they make payment.

The guide isn’t what you need. It was written for people who need to display a currency that Squarespace doesn’t support.

As Squarespace supports NZD you can simply select this currency in the Checkout settings. After doing so, you should see prices like this: $9.99.

Next, if you change your site’s language from English (New Zealand) to something like English (United Kingdom) or English (United States), the symbol will change and your prices will show as NZ$9.99 instead.

I hope this helps 🙂.

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

Hi everyone,

Thanks @paul2009, that code is working perfectly for me (7.1). I needed a "€ / linear meter" instead of "€". But, within the same shop, I ALSO need a "€ / squared meter" and a "€".

Do you think it is something that I can fix with specific tags calling for "linear/squared/units" tagged products? 

Thanks for your answer !

Link to comment
2 hours ago, Coralie said:

I needed a "€ / linear meter" instead of "€". But, within the same shop, I ALSO need a "€ / squared meter" and a "€".

Do you think it is something that I can fix with specific tags calling for "linear/squared/units" tagged products?

Yes, you should be able to do this with code.

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
2 hours ago, Coralie said:

I have no idea where to place the ".product-mark.linear" into the code

Please provide a working link to the product. This allows us to take a look at the site and explain how to achieve what you require.

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

@Coralie I have updated the original guide to explain how to set the price by the linear metre and square metre. Let me know how you get on.

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.