Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#3805 by mvnaz
08 Jan 2017, 18:22
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.
#3806 by mvnaz
09 Jan 2017, 10:45
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 ?
#3807 by aimeos
09 Jan 2017, 10:49
The language is already available, you only have to activate it.
#3808 by mvnaz
09 Jan 2017, 11:08
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!
#3809 by aimeos
09 Jan 2017, 11:17
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
#3810 by mvnaz
09 Jan 2017, 11:27
I understand you full! Thank you! But UAH currency is not exists in my currency list. What I must to do in my case ?
#3811 by mvnaz
09 Jan 2017, 11:40
Sorry! Excuse me please )) :D Sometimes I am such stupid. I did not see that it is have more one page ))) Thank you, aimeos! ;)