Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Leaderboard

Popular Content

Showing content with the highest reputation on 10/16/2011 in Posts

  1. Добавляю в "C:\xampp\htdocs\opencart\catalog\view\theme\default\template\product\product.tpl" строку: <a href="http://google.com"><?php echo $text_123; ?></a> Добавляю в "С:\xampp\htdocs\opencart\catalog\language\russian\product\product.php" строку: $_['text_123'] = "Тестовый_текст_123"; Получаю ошибку: Notice: Undefined variable: text_123 in C:\xampp\htdocs\opencart\catalog\view\theme\default\template\product\product.tpl on line 56 Куда смотреть, много перепробовал, добавлял $_['text_123'] = "Тестовый_текст_123"; в "С:\xampp\htdocs\opencart\catalog\language\russian\russian.php" тоже не помогло. Спасибо.
    1 point
  2. catalog/controller/product/product.php $this->data['text_123'] = $this->language->get('text_123');
    1 point
  3. Заработало только когда переименовал папку colorbox в ColorBox. Да, в IE не работает вообще.
    1 point
  4. я тоже надеялся,да вроде бы и ничего сложного,но почему-то не работает.Получился такой код: $(document).ready(function() { route = getURLVar('route'); information_id = getURLVar('information_id'); if (!route) { $('#tab_home').addClass('nav_a_selected'); } else { part = route.split('/'); if (route == 'common/home') { $('#tab_home').addClass('nav_a_selected'); } else if (route == 'information/news') { $('#tab_allnews').addClass('nav_a_selected'); } else if (route == 'information/contact') { $('#tab_contact').addClass('nav_a_selected'); } else if (information_id == 'information_id=6') { $('#tab_opldost').addClass('nav_a_selected'); } else if (information_id == 'information_id=7') { $('#tab_partners').addClass('nav_a_selected'); } else { $('#tab_home').addClass('nav_a_selected'); } Теперь вообще вседа главная выделяется и в чем проблема понять не получается.Уже второй день бьюсь с этим и решить не могу.А это для какой Вы версии написали,возможно такой способ в последнем осторе не работает?
    1 point
  5. Надеюсь разберешься $(document).ready(function() { route = getURLVar('route'); information_id = getURLVar('information_id'); if (!route) { $('#tab_home').addClass('selected'); } else { part = route.split('/'); if (route == 'common/home') { $('#tab_home').addClass('selected'); } else if (route == 'product/special') { $('#tab_special').addClass('selected'); } else if (information_id == 'information_id=4') { $('#tab_about').addClass('selected'); } else if (information_id == 'information_id=6') { $('#tab_delivery').addClass('selected'); } else if (route == 'information/contact') { $('#tab_contact').addClass('selected'); }
    1 point
Guest
×
  • 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.