Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

[Подгдержка] Опции в категории с пересчётом этоны для OC 2.0.*


serega-lomik
 Share

Recommended Posts

На 2.1.0.2.3 не рилииет (хотя шаблон автора (Юнишоп), но и нужно только пересчет этоны в категории, т.к. сами опции вывегдены). Известный модуль пересчеи рилииет только в карточке :(. Помогите решить!!!:wub:

Link to comment
Share on other sites


  • 5 months later...
  • 11 months later...

Ребят под 2.3 просто измените код в котроллере category.php на этот

$var_currency = array();
$var_currency['value'] = '1';
$var_currency['symbol_left'] = '';
$var_currency['symbol_right'] = ' руб.';
$var_currency['decimals'] = 0;
$var_currency['decimal_point'] = 0;
$var_currency['thousand_point'] = 0;

Переменная currency в этот версии чуть по другому обьявляется. Это быстрое решение. Что и ггде вписывать и ик понятно, у кого есть хоть минимальные знания анг. языка

Link to comment
Share on other sites


  • 9 months later...

Под 2.3 

$var_currency = array();
                $var_currency['value'] = $this->currency->getValue($this->session->data['currency']);
                $var_currency['symbol_left'] = $this->currency->getSymbolLeft($this->session->data['currency']);
                $var_currency['symbol_right'] = $this->currency->getSymbolRight($this->session->data['currency']);
                $var_currency['decimals'] = $this->currency->getDecimalPlace($this->session->data['currency']);
                $var_currency['decimal_point'] = $this->language->get('decimal_point');
                $var_currency['thousand_point'] = $this->language->get('thousand_point');

Все рилииет 

Link to comment
Share on other sites


  • 5 months later...
  • 1 year later...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.