Jump to content

arbuzas

Members
  • Posts

    0
  • Joined

  • Last visited

Profile Information

  • First Name
    Irmantas
  • Last Name
    Rojus

arbuzas's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Right.. I see what you mean. Well it looks like you can't override symfony based pages. I guess you can edit Tools.php directly and live till next update that way... I saw somewhere mentioned that instead of overriding the code you can extend it or something like that.. but can't find any documentation about it so not sure whats the story with that.
  2. Offtopic... Nah.. I'm still just playing with 1.7, and I'm not sure if I like it or if I'll use it. It looks like it was patched with bits and bobs from the 1.6v and everything is all over the place. In my opinion they just had to start from scratch if they wanted to change everything... pretty much everything broke anyway. 1.6 is also rusty.. so yeah not sure, I might look somewhere else if I can't make 1.7 to work.
  3. I don't care, irrelevant for European business.. If its true I'm sure they will come up with something.
  4. See my post https://www.prestashop.com/forums/topic/589765-how-to-change-eur-to-%E2%82%AC/?do=findComment&comment=2494665 Just toy with the return line to get your desired result.
  5. Ok so it looks like PrestaShop 1.7 is using new fancy pancy Cldr framework (ICanBoogie). Basically it drags all localisation stuff from the Cldr database (repo). It's all good but unfortunately this framework does not give many option for customisation (not that I found any) so you have to be happy what Cldr provides. In my case Cldr dictates that currency sign is "EUR" on the left, when we actually more used to "€" on the left. Anyway, it is possible to override this by creating file in: override/classes/Tools.php <?php /** * Forcing to use Euro (Currency) sign */ class Tools extends ToolsCore { public static function displayPrice($price, $currency = null, $no_utf8 = false, Context $context = null) { if (!is_numeric($price)) { return $price; } if (!$context) { $context = Context::getContext(); } if ($currency === null) { $currency = $context->currency; } elseif (is_int($currency)) { $currency = Currency::getCurrencyInstance((int)$currency); } $numberFormatter = new ICanBoogie\CLDR\NumberFormatter; return $numberFormatter->format($price, "#0.#0").' '.$currency->getSign(); } } ?> This workaround is bit crusty but meh.. it works.
  6. 1.6 will be discontinued in a year or so, I don't see a point wasting time with it, will have to migrate to 1.7 anyway.
  7. It looks like in version 1.7 invoices display Euro as 'EUR' instead of '€' symbol. I can't seem to find any way to change this, any ideas?
×
×
  • Create New...