• My account
    • (X)Sign in

      I am a returning customer at TYPO3 Multishop

      Enter your username and password here in order to log in on the website:

      Forgot your password?

      Not yet customer of TYPO3 Multishop?

      • Order history
      • Automatic generated e-mail history
      • Track your Order
      New at TYPO3 Multishop
You are here:

Help by translating Multishop in your local language

On the following page you can help by translating Multishop in your local language:

https://translation.typo3.org/projects/TYPO3.ext.multishop/

Spanish:

https://translation.typo3.org/es/TYPO3.ext.multishop/pi1/locallang.xlf

The following language are already translated by our supporters:

  • Dutch
  • German
  • French

Currency symbol on the right side of the price


Author Message
npmdev
Max
Multishop newbie
Topic creator
registered since: 01.12.2013
Posts: 1
Hi.

Some languages have the currency symbol on the right side, so the field of the static_info_currency table is empty and accordingly the $ms['MODULES']['CURRENCY'] variable is also empty.

The suggestion were:
multishop/pi1/classes/class.mslib_befe.php
line 97:
PHP
$settings['CURRENCY_SYMBOL_IS_RIGHT'] = false;


line 104:
PHP
default:
    if (strlen($settings['CURRENCY_ARRAY']['cu_symbol_left']) > 0) {
        $settings['CURRENCY']=$settings['CURRENCY_ARRAY']['cu_symbol_left'];
    } else {
	$settings['CURRENCY']=$settings['CURRENCY_ARRAY']['cu_symbol_right'];
	$settings['CURRENCY_SYMBOL_IS_RIGHT'] = true;
    }
				break;


and then in

multishop/pi1/classes/class.mslib_fe.php

line 3537 (function Money2Cents()):

PHP
if ($ms['MODULES']['CURRENCY_SYMBOL_IS_RIGHT'] === true) {
	return '<span class="amount">' . $array[0].$cu_decimal_point. '</span><span class="amount_cents">'.$array[1].'</span> <span class="currency">' . mslib_fe::currency(1,$customer_currency) . '</span>';
} else {
	return '<span class="currency">'.mslib_fe::currency(1,$customer_currency).'</span> <span class="amount">' . $array[0].$cu_decimal_point.'</span><span class="amount_cents">'.$array[1].'</span>';
}


Best regards,
Max

[This article was edited 1 times, at last 01.12.2013 at 21:59.]
Written on: 01. 12. 2013 [21:58]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
Update to V3. If you still have issues please post on the V3 forum.
Written on: 23. 06. 2014 [19:55]