Support » Plugin: PrestaShop Integration » Change Price format from Euro to Pound

  • Resolved ukbaz

    (@ukbaz)


    Hi have been tring this on a test server and all seems to be going OK apart from one thing.

    I have successfully changed the price format & currency from Euro and a , separator to £ and a . separator

    Currency format for Euro places the currency symbol after the price, whereas Currency format places symbol before the price. i.e £25.99

    Seems ti need changing in the following:
    if ($dto!=”){
    $precio_con_final=($precio_final-$dto);
    $txt_dto=number_format($dto, 2, ‘.’, ”).” £”;
    }
    Can you show me how to get the £ in front?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author aytechnet

    (@aytechnet)

    Hi ukbaz,

    Can you tell me where this display does not work ? Is it specific to WordPress plugin (PrestaShop Integration) itself or the whole PrestaShop ?

    Where can I see the problème so that I can try to reproduce it or at least tell you how to fix it ?

    Kind regards,
    François.

    Hi Francois

    Its The Euro format being hard coded into imacprestashop.php in th WordPress plugin
    The code used is as follows:
    if ($dto!=”){
    $precio_con_final=($precio_final-$dto);
    $txt_dto=number_format($dto, 2, ‘,’, ”).” €”;
    }
    As you can see above it places the Euro symbol after the numbers
    Rendering price of 25.99, € in Euros correctly
    But using £s
    The price displays as 25.99, £
    but should be £25.99

    Hope that clarifies

    Best regards

    Plugin Author aytechnet

    (@aytechnet)

    There are no currency hardcoded in my plugin for what I remenber, but I may have missing something. Anyway, there are no imacprestashop.php file inside it. Maybe you used another plugin instead of mine ?

    Kind regards, François.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.