• Resolved orgiz

    (@orgiz)


    Hi,
    We need to change side of the currency symbol so it ends up after the amount, is that possible? I have searched for a way to change it in the settings of the plugin, but i can’t find it.

    I did see a old forum thread where you can solve this by editing the CSS and we have tried that, to no success. The CSS will fix it on some views, but not on checkout and not on the detiled page of the booking etc..

    .room_cost, .vbsrowprice .vbsrowpricediv > .room_cost {
        display: inline-block;
    }
    .room_cost .vbo_currency {
        float: right;
    }

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    We do not recommend applying such a customization, especially if you are going to offer online currency conversion through the apposite widget, or if your website is regularly visited by international guests.

    We understand that many countries in Europe are used to see the currency symbol after the amount (we are based in Italy, and so we know what you’re saying), but this does not apply to all currencies, and no ISO standard is actually stating what’s the proper position for a specific currency on an e-commerce website visited by international guests. Although one day we may add a specific configuration setting in Vik Booking with a future release, facts say that the majority of the users will expect to see the currency symbol before the actual amount, which is a practice that does not disturb those who are used to see the currency symbol after the amount either. For example, an English client may prefer to see the currency symbol before the amount. This preference cannot be related to the website language, as it would be completely wrong for the simple reason that there is no relation between the currency symbol position and the website language, which does not necessarily identify the country of residence of the client visiting your website.

    Our suggestion is to actually leave the system as it is for the moment, because Vik Booking is used by accommodations from over 140 different countries, and also those who are used to see the currency symbol after the amount are displaying it before the amount on their websites. For sure this is good for those who have international guests visiting their own website.

    If you would like to use CSS to change the position, then you will have to find all the necessary selectors in the various pages of the plugin, and you should either declare a “float” property set to “right” or a “direction” property set to “rtl”. However, please notice that this may not work on PDF documents (i.e. invoices), as CSS rules may not be applied when converting an HTML structure to a PDF document through the PHP native class TCPDF.

    Best regards,
    The VikWP Team

    Thread Starter orgiz

    (@orgiz)

    Ok, that’s was very bad news for our specific case. We are building a website that will be used by international visitors only.
    Unfortunately if we were to leave the symbol on the left, the visitor will think that there is somthing really off with the site and probably leave the site and not use it at all. So it’s a big deal for us to have it on the right side.

    Vikbooking is otherwise a great plugin and probably works very well internationally, but unfortunately we have to look for another plugin.

    Thanks for the quick response!

    Br,





    Plugin Author e4jvikwp

    (@e4jvikwp)

    International visitors may prefer to see the currency symbol exactly where it is by default in Vik Booking. As I said, if an English customer will visit your website, seeing the currency symbol before the amount is what they would expect to see. The situation would have been different if the website you are building is exclusively for local visitors.

    Also, I’m sure we’ve got hundreds of properties from your country, not sure if the property is in Sweden, but believe us, all our clients from Sweden are not losing any clients because the currency symbol is displayed before the amount.

    In any case, we do understand this may be a requirement for you, and you can always force the position of the symbol via CSS. Our message was simply suggesting to leave the currency symbol as it is for the provided reasons, but you are obviously free to override it anywhere in the plugin. You just need to find the proper CSS selectors manually without relying on old forums, because Vik Booking is constantly updated, and so those class-selectors may no longer exist.

    This is not something you cannot achieve, we are just suggesting to abandon the whole idea for the explained reasons, but of course the choice is up to you.

    Best regards,
    The VikWP Team

    Thread Starter orgiz

    (@orgiz)

    Yes, that’s for sure how it is for international visitors.
    Unfortunately this website will only to be used by locals (in the very near area). Maby i’m locked up in my mind and mixes up SYMBOL vs international codes..

    For example, in my mind the currency symbol goes before in the majority of countrys. And i’m aware of that:
    $900
    £900
    900kr

    However the international code goes after the amount:
    900 USD
    900 GBP
    900 SEK

    So.. maby there is more logical to use international codes instead of currency symbols in an international site? ??

    • This reply was modified 1 year, 9 months ago by orgiz.

    @e4jvikwp
    Quick comment from one of the global WordPress Polyglots’ mentors:
    I didn’t read all details, but what you’re mentioning here is normally quite possible.
    Just use printf() and something like:

    //Translators: 1-currency symbol, 2-amount
    printf(_x('%1$s %2$s', 'currency and amount', 'vikbooking'), $CurrencySymbol, $amount)
    Plugin Author e4jvikwp

    (@e4jvikwp)

    @orgiz yes, we agree with what you said, even though there is no ISO standard that really regulates this behavior. Vik Booking uses the currency symbol there, because the currency ISO code is only used to start certain payment transactions or to generate reports for local authorities.

    In any case, the best solution for us is to include a dedicated configuration setting, so that anyone could choose to display even the currency symbol, like “€”, after the amount. We could adopt a similar technique to the one described by @tobifjellner or we could simply use an internal class-method to properly display the amount depending on the configuration preferences. We just need to evaluate if this has to be something tied to the active language or if it has to be tied to the global configuration settings of Vik Booking. In the end, the currency does not change depending on the active language, and so a global configuration setting in Vik Booking may be sufficient at least to determine the default position before any language override.

    For the moment we’ve got no proper solutions, because by default Vik Booking asks for the currency symbol, and this is placed before the amount. The only temporary solution is to add some custom CSS rules to match the correct selectors/elements .vbo_currency and .vbo_price. Most of the times you can just apply the rule .vbo_currency { float: right; } and this will do the trick.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change side of currency symbol’ is closed to new replies.