Page 1 of 1

Adding new currency

Posted: 08 Jan 2017, 18:22
by mvnaz
Hello everybody! Thank you all for help. I have next problem: how I can add new currency for example Ukrainian currency? It is not exists default.

Re: Adding new currency

Posted: 09 Jan 2017, 10:45
by mvnaz
When I tried to add new currency in e[pert mode I see

Executing statement "
INSERT INTO "mshop_locale_currency" (
"label", "status", "siteid", "mtime", "editor", "id", "ctime"
) VALUES(
'Ukrainian hryvnia', 1, 1, '2017-01-09 10:44:07', 'mvnaz@yandex.ru', 'UAH', '2017-01-09 10:44:07'
)
" failed: An exception occurred while executing '
INSERT INTO "mshop_locale_currency" (
"label", "status", "siteid", "mtime", "editor", "id", "ctime"
) VALUES(
'Ukrainian hryvnia', 1, 1, '2017-01-09 10:44:07', 'mvnaz@yandex.ru', 'UAH', '2017-01-09 10:44:07'
)
':

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'UAH' for key 'PRIMARY'


Can somebody help me ?

Re: Adding new currency

Posted: 09 Jan 2017, 10:49
by aimeos
The language is already available, you only have to activate it.

Re: Adding new currency

Posted: 09 Jan 2017, 11:08
by mvnaz
I already set in expert mode-locale-list Language - Ukrainian, currency Russian ruble and set position 0 only for this. After it my site looks in English language, and prices do not shows! Ukrainian language not exists default, I added it language in expert panel. And Ukraine currency not exists defaultly in aimeos too. It such big problem for me.

My goal is make site looks in Russian language and set Ukrainian as default currence. I can set Russian language in the site, but how I can set UAH currency ? I hope for your help very much. To be honest it is difficult for me now. Thank you!

Re: Adding new currency

Posted: 09 Jan 2017, 11:17
by aimeos
Step by step:
- Make sure language "ru" is active
- Activate currency "UAH"
- Make sure, "ru"/"UAH" is the only active combination in the locale tab
- Add prices with currency "UAH" to your products and remove the others
- Clear the cache with "php artisan aimeos:cache" if you didn't deactivate it

Re: Adding new currency

Posted: 09 Jan 2017, 11:27
by mvnaz
I understand you full! Thank you! But UAH currency is not exists in my currency list. What I must to do in my case ?

Re: Adding new currency

Posted: 09 Jan 2017, 11:40
by mvnaz
Sorry! Excuse me please )) :D Sometimes I am such stupid. I did not see that it is have more one page ))) Thank you, aimeos! ;)