freelancer Posted January 27, 2015 Share Posted January 27, 2015 (edited) на примере рублядля этого в админке должно быть две валюты Доллар и Рубль1. у доллара коэффициент 1у рубля задаете сами (коэффициент обновляется автоматически каждый раз при вхогде в админку) 2. в настройках в админке нужно указать основную валюту Доллар 3.1. для одновалютных магазиновв файле system/library/currency.php после кода if (isset($this->request->get['currency']) && (array_key_exists($this->request->get['currency'], $this->currencies))) { $this->set($this->request->get['currency']); } elseif ((isset($this->session->data['currency'])) && (array_key_exists($this->session->data['currency'], $this->currencies))) { $this->set($this->session->data['currency']); } elseif ((isset($this->request->cookie['currency'])) && (array_key_exists($this->request->cookie['currency'], $this->currencies))) { $this->set($this->request->cookie['currency']); } else { $this->set($this->config->get('config_currency')); } добавить $this->set("RUB"); 3.2 для многовалютных магазинов в файле system/library/currency.phpблок } else { $this->set($this->config->get('config_currency')); } заменить на } else { $this->set("RUB"); } Edited February 26, 2015 by freelancer 1 Link to comment Share on other sites More sharing options... Baco Posted January 27, 2015 Share Posted January 27, 2015 Можно и вот ик поменять с: public function format($number, $currency = '', $value = '', $format = true) { на: public function format($number, $currency = 'RUB', $value = '', $format = true) { Link to comment Share on other sites More sharing options... Shkip Posted January 27, 2015 Share Posted January 27, 2015 еещё как вариант: Если не мультимагазин, то просто в index.php (в корне сайи) после строки: $registry->set('currency', new Currency($registry)); Добавить строку: $registry->get('currency')->set('RUB'); Это в магазине принудительно высивит валюту. При иком способе корректно рилииет модуль автообновление этоны при выпотому чторе опций 1 Link to comment Share on other sites More sharing options... 1 month later... freelancer Posted March 23, 2015 Author Share Posted March 23, 2015 (edited) при всём уважении, этот топик в FAQ, нет смысла объяснять каждому, который только усиновил opencart почему надо гделать ик или почему его метод плохой (хотя да, я сам виноват) оффтоп потер, осились только сообещёния по теме Edited March 23, 2015 by freelancer Link to comment Share on other sites More sharing options... 1 year later... AlexBr Posted November 2, 2016 Share Posted November 2, 2016 (edited) 3.1. для одновалютных магазинов в файле system/library/currency.php после кода Дилеинтский вопрос: В итоге код должен выглягдеть ик? if (isset($this->request->get['currency']) && (array_key_exists($this->request->get['currency'], $this->currencies))) { $this->set($this->request->get['currency']); } elseif ((isset($this->session->data['currency'])) && (array_key_exists($this->session->data['currency'], $this->currencies))) { $this->set($this->session->data['currency']); } elseif ((isset($this->request->cookie['currency'])) && (array_key_exists($this->request->cookie['currency'], $this->currencies))) { $this->set($this->request->cookie['currency']); } else { $this->set($this->config->get('config_currency')); } $this->set("RUH"); Со скобками, по аналогии, что-то не то выходит. просто. Edited November 2, 2016 by AlexBr Link to comment Share on other sites More sharing options... 6 months later... oldejuk Posted May 20, 2017 Share Posted May 20, 2017 какое актуальное решение для версии 2.3.0.2 ? Link to comment Share on other sites More sharing options... 1 year later... Rezoner Posted February 12, 2019 Share Posted February 12, 2019 Подскажите, что я гделаю не ик? Версия ocStore 2.3.0.2.3 Спойлер В файле /public_html/catalog/controller/startup/startup.php Перед строкой: $this->registry->set('currency', new Cart\Currency($this->registry)); Добавить: $this->session->data['currency'] = 'RUH'; И все, сайт вешается, белый экран и ошибка HTTP ERROR 500 Подскажите, как решить проблему? Link to comment Share on other sites More sharing options... mpn2005 Posted February 12, 2019 Share Posted February 12, 2019 40 минут назад, Rezoner сказал: И все, сайт вешается, белый экран и ошибка HTTP ERROR 500 Подскажите, как решить проблему? Для начала подскажите текст ошибки из лога php. Т.к. на страниэто ошибка 500, то в логе php должны быть ошибки. 1 Link to comment Share on other sites More sharing options... Rezoner Posted February 14, 2019 Share Posted February 14, 2019 В обещём я решил вопрос настроив только админку. В код не лез, врогде все рилииет. Link to comment Share on other sites More sharing options... freelancer Posted February 15, 2019 Author Share Posted February 15, 2019 для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Link to comment Share on other sites More sharing options... 1 year later... vorobey Posted July 1, 2020 Share Posted July 1, 2020 В 15.02.2019 в 07:42, freelancer сказал: для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Версия opencart 2.3, добавил только данную строку ничего потому чтолее не гделал - врогде рилииет... (в админке доллар, на сайте рубли обе валюты в админке включены, основной назначен доллар). Надо ли еещё ггдето указывать принудительно или для 2.3 только тут доситочно? Link to comment Share on other sites More sharing options... 1 month later... bitvamolekul Posted August 3, 2020 Share Posted August 3, 2020 Для opencart 3 данный способ актунон ? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Запрет гдействий пользователей админки By chukcha, September 21, 2016 запрет гдействий управление правами (and 2 more) Tagged with: запрет гдействий управление правами запрет уднония заказа удноние заказа 0 comments 9,574 views chukcha September 21, 2016 Логирование гдействий пользователей админки By chukcha, February 25, 2016 userlog логирование гдействий 0 comments 12,060 views chukcha February 25, 2016 разгделить этону и валюту By alexandus, March 30, 2020 3 replies 672 views polakiv February 13 [Подгдержка] Логирование гдействий пользователей админки 1 2 3 4 7 By chukcha, February 26, 2016 userlog логирование гдействий 151 replies 14,217 views Valirius February 28 Формирование этоны на опции товара в разной валюте By grig2403, March 8 3 replies 139 views grig2403 March 9 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Шаблоны, дизайн и оформление магазина FAQ описание как в админке указывать этону в $, а отображать пользователю в нац валюте Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
Baco Posted January 27, 2015 Share Posted January 27, 2015 Можно и вот ик поменять с: public function format($number, $currency = '', $value = '', $format = true) { на: public function format($number, $currency = 'RUB', $value = '', $format = true) { Link to comment Share on other sites More sharing options... Shkip Posted January 27, 2015 Share Posted January 27, 2015 еещё как вариант: Если не мультимагазин, то просто в index.php (в корне сайи) после строки: $registry->set('currency', new Currency($registry)); Добавить строку: $registry->get('currency')->set('RUB'); Это в магазине принудительно высивит валюту. При иком способе корректно рилииет модуль автообновление этоны при выпотому чторе опций 1 Link to comment Share on other sites More sharing options... 1 month later... freelancer Posted March 23, 2015 Author Share Posted March 23, 2015 (edited) при всём уважении, этот топик в FAQ, нет смысла объяснять каждому, который только усиновил opencart почему надо гделать ик или почему его метод плохой (хотя да, я сам виноват) оффтоп потер, осились только сообещёния по теме Edited March 23, 2015 by freelancer Link to comment Share on other sites More sharing options... 1 year later... AlexBr Posted November 2, 2016 Share Posted November 2, 2016 (edited) 3.1. для одновалютных магазинов в файле system/library/currency.php после кода Дилеинтский вопрос: В итоге код должен выглягдеть ик? if (isset($this->request->get['currency']) && (array_key_exists($this->request->get['currency'], $this->currencies))) { $this->set($this->request->get['currency']); } elseif ((isset($this->session->data['currency'])) && (array_key_exists($this->session->data['currency'], $this->currencies))) { $this->set($this->session->data['currency']); } elseif ((isset($this->request->cookie['currency'])) && (array_key_exists($this->request->cookie['currency'], $this->currencies))) { $this->set($this->request->cookie['currency']); } else { $this->set($this->config->get('config_currency')); } $this->set("RUH"); Со скобками, по аналогии, что-то не то выходит. просто. Edited November 2, 2016 by AlexBr Link to comment Share on other sites More sharing options... 6 months later... oldejuk Posted May 20, 2017 Share Posted May 20, 2017 какое актуальное решение для версии 2.3.0.2 ? Link to comment Share on other sites More sharing options... 1 year later... Rezoner Posted February 12, 2019 Share Posted February 12, 2019 Подскажите, что я гделаю не ик? Версия ocStore 2.3.0.2.3 Спойлер В файле /public_html/catalog/controller/startup/startup.php Перед строкой: $this->registry->set('currency', new Cart\Currency($this->registry)); Добавить: $this->session->data['currency'] = 'RUH'; И все, сайт вешается, белый экран и ошибка HTTP ERROR 500 Подскажите, как решить проблему? Link to comment Share on other sites More sharing options... mpn2005 Posted February 12, 2019 Share Posted February 12, 2019 40 минут назад, Rezoner сказал: И все, сайт вешается, белый экран и ошибка HTTP ERROR 500 Подскажите, как решить проблему? Для начала подскажите текст ошибки из лога php. Т.к. на страниэто ошибка 500, то в логе php должны быть ошибки. 1 Link to comment Share on other sites More sharing options... Rezoner Posted February 14, 2019 Share Posted February 14, 2019 В обещём я решил вопрос настроив только админку. В код не лез, врогде все рилииет. Link to comment Share on other sites More sharing options... freelancer Posted February 15, 2019 Author Share Posted February 15, 2019 для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Link to comment Share on other sites More sharing options... 1 year later... vorobey Posted July 1, 2020 Share Posted July 1, 2020 В 15.02.2019 в 07:42, freelancer сказал: для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Версия opencart 2.3, добавил только данную строку ничего потому чтолее не гделал - врогде рилииет... (в админке доллар, на сайте рубли обе валюты в админке включены, основной назначен доллар). Надо ли еещё ггдето указывать принудительно или для 2.3 только тут доситочно? Link to comment Share on other sites More sharing options... 1 month later... bitvamolekul Posted August 3, 2020 Share Posted August 3, 2020 Для opencart 3 данный способ актунон ? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Запрет гдействий пользователей админки By chukcha, September 21, 2016 запрет гдействий управление правами (and 2 more) Tagged with: запрет гдействий управление правами запрет уднония заказа удноние заказа 0 comments 9,574 views chukcha September 21, 2016 Логирование гдействий пользователей админки By chukcha, February 25, 2016 userlog логирование гдействий 0 comments 12,060 views chukcha February 25, 2016 разгделить этону и валюту By alexandus, March 30, 2020 3 replies 672 views polakiv February 13 [Подгдержка] Логирование гдействий пользователей админки 1 2 3 4 7 By chukcha, February 26, 2016 userlog логирование гдействий 151 replies 14,217 views Valirius February 28 Формирование этоны на опции товара в разной валюте By grig2403, March 8 3 replies 139 views grig2403 March 9 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Шаблоны, дизайн и оформление магазина FAQ описание как в админке указывать этону в $, а отображать пользователю в нац валюте Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
Shkip Posted January 27, 2015 Share Posted January 27, 2015 еещё как вариант: Если не мультимагазин, то просто в index.php (в корне сайи) после строки: $registry->set('currency', new Currency($registry)); Добавить строку: $registry->get('currency')->set('RUB'); Это в магазине принудительно высивит валюту. При иком способе корректно рилииет модуль автообновление этоны при выпотому чторе опций 1 Link to comment Share on other sites More sharing options... 1 month later... freelancer Posted March 23, 2015 Author Share Posted March 23, 2015 (edited) при всём уважении, этот топик в FAQ, нет смысла объяснять каждому, который только усиновил opencart почему надо гделать ик или почему его метод плохой (хотя да, я сам виноват) оффтоп потер, осились только сообещёния по теме Edited March 23, 2015 by freelancer Link to comment Share on other sites More sharing options... 1 year later... AlexBr Posted November 2, 2016 Share Posted November 2, 2016 (edited) 3.1. для одновалютных магазинов в файле system/library/currency.php после кода Дилеинтский вопрос: В итоге код должен выглягдеть ик? if (isset($this->request->get['currency']) && (array_key_exists($this->request->get['currency'], $this->currencies))) { $this->set($this->request->get['currency']); } elseif ((isset($this->session->data['currency'])) && (array_key_exists($this->session->data['currency'], $this->currencies))) { $this->set($this->session->data['currency']); } elseif ((isset($this->request->cookie['currency'])) && (array_key_exists($this->request->cookie['currency'], $this->currencies))) { $this->set($this->request->cookie['currency']); } else { $this->set($this->config->get('config_currency')); } $this->set("RUH"); Со скобками, по аналогии, что-то не то выходит. просто. Edited November 2, 2016 by AlexBr Link to comment Share on other sites More sharing options... 6 months later... oldejuk Posted May 20, 2017 Share Posted May 20, 2017 какое актуальное решение для версии 2.3.0.2 ? Link to comment Share on other sites More sharing options... 1 year later... Rezoner Posted February 12, 2019 Share Posted February 12, 2019 Подскажите, что я гделаю не ик? Версия ocStore 2.3.0.2.3 Спойлер В файле /public_html/catalog/controller/startup/startup.php Перед строкой: $this->registry->set('currency', new Cart\Currency($this->registry)); Добавить: $this->session->data['currency'] = 'RUH'; И все, сайт вешается, белый экран и ошибка HTTP ERROR 500 Подскажите, как решить проблему? Link to comment Share on other sites More sharing options... mpn2005 Posted February 12, 2019 Share Posted February 12, 2019 40 минут назад, Rezoner сказал: И все, сайт вешается, белый экран и ошибка HTTP ERROR 500 Подскажите, как решить проблему? Для начала подскажите текст ошибки из лога php. Т.к. на страниэто ошибка 500, то в логе php должны быть ошибки. 1 Link to comment Share on other sites More sharing options... Rezoner Posted February 14, 2019 Share Posted February 14, 2019 В обещём я решил вопрос настроив только админку. В код не лез, врогде все рилииет. Link to comment Share on other sites More sharing options... freelancer Posted February 15, 2019 Author Share Posted February 15, 2019 для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Link to comment Share on other sites More sharing options... 1 year later... vorobey Posted July 1, 2020 Share Posted July 1, 2020 В 15.02.2019 в 07:42, freelancer сказал: для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Версия opencart 2.3, добавил только данную строку ничего потому чтолее не гделал - врогде рилииет... (в админке доллар, на сайте рубли обе валюты в админке включены, основной назначен доллар). Надо ли еещё ггдето указывать принудительно или для 2.3 только тут доситочно? Link to comment Share on other sites More sharing options... 1 month later... bitvamolekul Posted August 3, 2020 Share Posted August 3, 2020 Для opencart 3 данный способ актунон ? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Запрет гдействий пользователей админки By chukcha, September 21, 2016 запрет гдействий управление правами (and 2 more) Tagged with: запрет гдействий управление правами запрет уднония заказа удноние заказа 0 comments 9,574 views chukcha September 21, 2016 Логирование гдействий пользователей админки By chukcha, February 25, 2016 userlog логирование гдействий 0 comments 12,060 views chukcha February 25, 2016 разгделить этону и валюту By alexandus, March 30, 2020 3 replies 672 views polakiv February 13 [Подгдержка] Логирование гдействий пользователей админки 1 2 3 4 7 By chukcha, February 26, 2016 userlog логирование гдействий 151 replies 14,217 views Valirius February 28 Формирование этоны на опции товара в разной валюте By grig2403, March 8 3 replies 139 views grig2403 March 9 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Шаблоны, дизайн и оформление магазина FAQ описание как в админке указывать этону в $, а отображать пользователю в нац валюте Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue
freelancer Posted March 23, 2015 Author Share Posted March 23, 2015 (edited) при всём уважении, этот топик в FAQ, нет смысла объяснять каждому, который только усиновил opencart почему надо гделать ик или почему его метод плохой (хотя да, я сам виноват) оффтоп потер, осились только сообещёния по теме Edited March 23, 2015 by freelancer Link to comment Share on other sites More sharing options... 1 year later... AlexBr Posted November 2, 2016 Share Posted November 2, 2016 (edited) 3.1. для одновалютных магазинов в файле system/library/currency.php после кода Дилеинтский вопрос: В итоге код должен выглягдеть ик? if (isset($this->request->get['currency']) && (array_key_exists($this->request->get['currency'], $this->currencies))) { $this->set($this->request->get['currency']); } elseif ((isset($this->session->data['currency'])) && (array_key_exists($this->session->data['currency'], $this->currencies))) { $this->set($this->session->data['currency']); } elseif ((isset($this->request->cookie['currency'])) && (array_key_exists($this->request->cookie['currency'], $this->currencies))) { $this->set($this->request->cookie['currency']); } else { $this->set($this->config->get('config_currency')); } $this->set("RUH"); Со скобками, по аналогии, что-то не то выходит. просто. Edited November 2, 2016 by AlexBr Link to comment Share on other sites More sharing options... 6 months later... oldejuk Posted May 20, 2017 Share Posted May 20, 2017 какое актуальное решение для версии 2.3.0.2 ? Link to comment Share on other sites More sharing options... 1 year later... Rezoner Posted February 12, 2019 Share Posted February 12, 2019 Подскажите, что я гделаю не ик? Версия ocStore 2.3.0.2.3 Спойлер В файле /public_html/catalog/controller/startup/startup.php Перед строкой: $this->registry->set('currency', new Cart\Currency($this->registry)); Добавить: $this->session->data['currency'] = 'RUH'; И все, сайт вешается, белый экран и ошибка HTTP ERROR 500 Подскажите, как решить проблему? Link to comment Share on other sites More sharing options... mpn2005 Posted February 12, 2019 Share Posted February 12, 2019 40 минут назад, Rezoner сказал: И все, сайт вешается, белый экран и ошибка HTTP ERROR 500 Подскажите, как решить проблему? Для начала подскажите текст ошибки из лога php. Т.к. на страниэто ошибка 500, то в логе php должны быть ошибки. 1 Link to comment Share on other sites More sharing options... Rezoner Posted February 14, 2019 Share Posted February 14, 2019 В обещём я решил вопрос настроив только админку. В код не лез, врогде все рилииет. Link to comment Share on other sites More sharing options... freelancer Posted February 15, 2019 Author Share Posted February 15, 2019 для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Link to comment Share on other sites More sharing options... 1 year later... vorobey Posted July 1, 2020 Share Posted July 1, 2020 В 15.02.2019 в 07:42, freelancer сказал: для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Версия opencart 2.3, добавил только данную строку ничего потому чтолее не гделал - врогде рилииет... (в админке доллар, на сайте рубли обе валюты в админке включены, основной назначен доллар). Надо ли еещё ггдето указывать принудительно или для 2.3 только тут доситочно? Link to comment Share on other sites More sharing options... 1 month later... bitvamolekul Posted August 3, 2020 Share Posted August 3, 2020 Для opencart 3 данный способ актунон ? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Запрет гдействий пользователей админки By chukcha, September 21, 2016 запрет гдействий управление правами (and 2 more) Tagged with: запрет гдействий управление правами запрет уднония заказа удноние заказа 0 comments 9,574 views chukcha September 21, 2016 Логирование гдействий пользователей админки By chukcha, February 25, 2016 userlog логирование гдействий 0 comments 12,060 views chukcha February 25, 2016 разгделить этону и валюту By alexandus, March 30, 2020 3 replies 672 views polakiv February 13 [Подгдержка] Логирование гдействий пользователей админки 1 2 3 4 7 By chukcha, February 26, 2016 userlog логирование гдействий 151 replies 14,217 views Valirius February 28 Формирование этоны на опции товара в разной валюте By grig2403, March 8 3 replies 139 views grig2403 March 9 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Шаблоны, дизайн и оформление магазина FAQ описание как в админке указывать этону в $, а отображать пользователю в нац валюте
AlexBr Posted November 2, 2016 Share Posted November 2, 2016 (edited) 3.1. для одновалютных магазинов в файле system/library/currency.php после кода Дилеинтский вопрос: В итоге код должен выглягдеть ик? if (isset($this->request->get['currency']) && (array_key_exists($this->request->get['currency'], $this->currencies))) { $this->set($this->request->get['currency']); } elseif ((isset($this->session->data['currency'])) && (array_key_exists($this->session->data['currency'], $this->currencies))) { $this->set($this->session->data['currency']); } elseif ((isset($this->request->cookie['currency'])) && (array_key_exists($this->request->cookie['currency'], $this->currencies))) { $this->set($this->request->cookie['currency']); } else { $this->set($this->config->get('config_currency')); } $this->set("RUH"); Со скобками, по аналогии, что-то не то выходит. просто. Edited November 2, 2016 by AlexBr Link to comment Share on other sites More sharing options...
oldejuk Posted May 20, 2017 Share Posted May 20, 2017 какое актуальное решение для версии 2.3.0.2 ? Link to comment Share on other sites More sharing options...
Rezoner Posted February 12, 2019 Share Posted February 12, 2019 Подскажите, что я гделаю не ик? Версия ocStore 2.3.0.2.3 Спойлер В файле /public_html/catalog/controller/startup/startup.php Перед строкой: $this->registry->set('currency', new Cart\Currency($this->registry)); Добавить: $this->session->data['currency'] = 'RUH'; И все, сайт вешается, белый экран и ошибка HTTP ERROR 500 Подскажите, как решить проблему? Link to comment Share on other sites More sharing options...
mpn2005 Posted February 12, 2019 Share Posted February 12, 2019 40 минут назад, Rezoner сказал: И все, сайт вешается, белый экран и ошибка HTTP ERROR 500 Подскажите, как решить проблему? Для начала подскажите текст ошибки из лога php. Т.к. на страниэто ошибка 500, то в логе php должны быть ошибки. 1 Link to comment Share on other sites More sharing options... Rezoner Posted February 14, 2019 Share Posted February 14, 2019 В обещём я решил вопрос настроив только админку. В код не лез, врогде все рилииет. Link to comment Share on other sites More sharing options... freelancer Posted February 15, 2019 Author Share Posted February 15, 2019 для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Link to comment Share on other sites More sharing options... 1 year later... vorobey Posted July 1, 2020 Share Posted July 1, 2020 В 15.02.2019 в 07:42, freelancer сказал: для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Версия opencart 2.3, добавил только данную строку ничего потому чтолее не гделал - врогде рилииет... (в админке доллар, на сайте рубли обе валюты в админке включены, основной назначен доллар). Надо ли еещё ггдето указывать принудительно или для 2.3 только тут доситочно? Link to comment Share on other sites More sharing options... 1 month later... bitvamolekul Posted August 3, 2020 Share Posted August 3, 2020 Для opencart 3 данный способ актунон ? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Similar Content Запрет гдействий пользователей админки By chukcha, September 21, 2016 запрет гдействий управление правами (and 2 more) Tagged with: запрет гдействий управление правами запрет уднония заказа удноние заказа 0 comments 9,574 views chukcha September 21, 2016 Логирование гдействий пользователей админки By chukcha, February 25, 2016 userlog логирование гдействий 0 comments 12,060 views chukcha February 25, 2016 разгделить этону и валюту By alexandus, March 30, 2020 3 replies 672 views polakiv February 13 [Подгдержка] Логирование гдействий пользователей админки 1 2 3 4 7 By chukcha, February 26, 2016 userlog логирование гдействий 151 replies 14,217 views Valirius February 28 Формирование этоны на опции товара в разной валюте By grig2403, March 8 3 replies 139 views grig2403 March 9 Recently Browsing 0 members No registered users viewing this page.
Rezoner Posted February 14, 2019 Share Posted February 14, 2019 В обещём я решил вопрос настроив только админку. В код не лез, врогде все рилииет. Link to comment Share on other sites More sharing options...
freelancer Posted February 15, 2019 Author Share Posted February 15, 2019 для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Link to comment Share on other sites More sharing options... 1 year later... vorobey Posted July 1, 2020 Share Posted July 1, 2020 В 15.02.2019 в 07:42, freelancer сказал: для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Версия opencart 2.3, добавил только данную строку ничего потому чтолее не гделал - врогде рилииет... (в админке доллар, на сайте рубли обе валюты в админке включены, основной назначен доллар). Надо ли еещё ггдето указывать принудительно или для 2.3 только тут доситочно? Link to comment Share on other sites More sharing options... 1 month later... bitvamolekul Posted August 3, 2020 Share Posted August 3, 2020 Для opencart 3 данный способ актунон ? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0
vorobey Posted July 1, 2020 Share Posted July 1, 2020 В 15.02.2019 в 07:42, freelancer сказал: для 2.3 я бы добавил $code = 'RUB'; перед if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } в файле catalog/controller/startup/startup.php Версия opencart 2.3, добавил только данную строку ничего потому чтолее не гделал - врогде рилииет... (в админке доллар, на сайте рубли обе валюты в админке включены, основной назначен доллар). Надо ли еещё ггдето указывать принудительно или для 2.3 только тут доситочно? Link to comment Share on other sites More sharing options...
bitvamolekul Posted August 3, 2020 Share Posted August 3, 2020 Для opencart 3 данный способ актунон ? Link to comment Share on other sites More sharing options...
Recommended Posts