Jump to content

Hiding Country prefix of a price "A$x.xx" Prestashop 1.7.4.2


Recommended Posts

I'm a bit stuck trying to figure out why my store keeps displaying all my prices with an 'A' in front of them, eg 'A$1.00' rather than '$1.00'.

The store is for Australia and have set everything I can find to be Australian.

Debugging the code (using XDebug), I find that src\Core\CLDR\Repository.php getPrice() is still thinking that my locale is set to 'en-US'...And this is where the problem really is.... because in the 'culture' tables for the US, it says that Australian currencies should be displayed with an 'A' in the front of it. (It's wrong btw: it should display AUD afterwards... but that's beside the point).

I've tried:

- "Localization > Import a localization pack". It seems to do nothing

- Creating my own 'Language' with country code 'OZ' (a nonsensical one) and region as 'en-AU' (I've tried en and AU variants too)

- Deleting / Creating a currency

- In "Localization > Configuration" I have set Langage (Oz), "Set Language from Browser" AND "set default Country from browser" to FALSE, Default Country is "Australia", Timezone is Sydney

Any ideas?

 

Thanks,

Craig

 

 

Screen Shot 2018-10-14 at 10.22.58 pm.png

Screen Shot 2018-10-14 at 10.23.26 pm.png

Edited by cmroanirgo (see edit history)
Link to comment
Share on other sites

Hey there Craig,

It is maddening right! is that version 1.7.4.2 or .3?

I was going to use the Prestashop demo back office to help you, but some smart butt deleted the user:) It auto resets every 10 minutes or so.. so it will be back:)

So the manual states "International" menu, "Localization" page, "Configuration" section. " is where to set this BUT as you mentioned the data is wrong. So lets fix it shall we?

I believe you can change this in the backoffice under the Translations section

Open it up and see if you can find the sections there will be more then 1 backoffice front end etc  marked ISO  when I look at the code that is where it pulls the text from for the A before the $ amount.

I do not have a shop set up with that local, and i do not want to log into a live one to play around (and possibly break it ) so that is the best i can do atm to help.

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...