LiquidFractal Posted December 3, 2020 Posted December 3, 2020 (edited) I've been experimenting with adding physical objects to the Store, and notice that whenever I add the physical dimensions of an object (height/width/weight) I can choose cm over in., kg over lb, etc., but when products display in the website store they are always displayed using Imperial measurements. Moreover, if I return to the product in the AdminCP the suite has reverted my data back to Imperial in the product edit screen. 😶 I can't possibly be the first one to notice this, so I was wondering if this is going to be fixed at some point as a nod to those of us who have embraced the Metric system? 😄 Edited December 3, 2020 by liquidfractal Ay hazea 1
bfarber Posted December 3, 2020 Posted December 3, 2020 What locale are you using? If you are using a locale that defines USD as the currency, inches will be used, otherwise centimeters should be used. Meddysong and LiquidFractal 1 1
LiquidFractal Posted December 3, 2020 Author Posted December 3, 2020 (edited) Thanks for the response @bfarber. By "locale" do you mean something definable in the adminCP, or does that mean the selected currency? If you mean the latter, I don't have USD configured at all in Commerce - only AUD. Either way though, I do find it strange that even in the adminCP view the suite reverts my back-end configuration to Imperial every time. Edited December 3, 2020 by liquidfractal
Ryan Ashbrook Posted December 3, 2020 Posted December 3, 2020 It would be the locale defined by your language pack. Edit your language pack in the AdminCP and make sure it is set correctly. The default is English (United States) whereas you likely want English (Australia) instead. LiquidFractal 1
CoffeeCake Posted December 3, 2020 Posted December 3, 2020 This got us when we first began testing IPS. You may need to install/enable the locale on your server to make it available within ACP. Debian specific instructions, but look at https://wiki.debian.org/Locale and use your google fu + distro of your choosing to get where you need to be. LiquidFractal 1
LiquidFractal Posted December 3, 2020 Author Posted December 3, 2020 Thanks to everyone for their responses! It was lurking in the back of my mind that it might have to do with the language pack, which is a bit surprising, but copying my default language and changing the locale to Australia did the trick, so thanks for that. 🙂 However, this has led to another wrinkle. In the Store on my test site, prices were previously listed correctly in AUD, e.g., "AUD 35". Now, however, with the Aus-locale language set as default, the same price displays as "A$35" when I expected something more like "AUD $35." My default currency is also clearly specified as AUD. Is this a bug or a feature? 😉 Thanks for your help so far! Ay hazea 1
CoffeeCake Posted December 3, 2020 Posted December 3, 2020 16 minutes ago, liquidfractal said: Is this a bug or a feature? All the things come from the set locale. You'll want to pick (or create) a locale that matches what you want. LC_MONETARY is what controls the output of currency related things. LiquidFractal, Zdeněk Tůma and Ay hazea 1 1 1
LiquidFractal Posted December 4, 2020 Author Posted December 4, 2020 9 hours ago, Paul E. said: LC_MONETARY is what controls the output of currency related things. Thanks for this, but how do I use this? Is this something I'd look up in the language settings? Ay hazea 1
Meddysong Posted December 5, 2020 Posted December 5, 2020 No, it's outside of Invision Community. A locale is a file stored on your server and accessed by the software.
Recommended Posts