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

sm13

Newbie
  
  • Posts

    4
  • Joined

  • Last visited

sm13's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Удалось найти решение на opencart.com в сatalog/controller/common/{content_top, content_bottom, content_right, content_left}.php после $setting_info = $this->model_extension_module->getModule($part[1]); вставить $setting_info['position'] = basename(__FILE__, '.php'); в контроллере модуля вставить $data['module'] = $setting; ну и в самом шаблоне {% if module.position == 'column_left' %} ......................... {% else %} ............................ {% endif %}
  2. Добрый день! Хочу в шаблоне модуля рекомендуемых прописать два варианта вывода: {% if module_position == 'column_left' %} вывести товар каруселью {% else %} вывести товар списком {% endif %} Подскажите как в контроллер featured.php получить позицию модуля? Спасибо.
  3. Версия ocstore 2.3.0.2 Всем привет по умолчанию стили для tooltip находятся в файле bootstrap.min.css во время работы над сайтом возникла необходимость установить для некоторых кнопок индивидуальный стиль попробовал вот таким образом <button type="button" class="red" data-toggle="tooltip" data-placement="right" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> <button type="button" class="green" data-toggle="tooltip" data-placement="right" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-refresh"></i></button> то есть добавил классы и расположение подсказки справа, в файле стилей stylesheet.css добавил .red.tooltip-inner { background-color:red !important; } .red.tooltip.right .tooltip-arrow { border-right-color: red !important; } .green.tooltip-inner { background-color:green !important; } .green.tooltip.right .tooltip-arrow { border-right-color: green !important; } изменений не произошло, никто не подскажет в чем проблема в синтаксисе css или в неправильной разметке? Как можно решить этот вопрос. Спасибо.
  4. Всем привет. Хочу привести код шаблона рекомендуемых к такому виду <?php if ($position_module == 'column_left') { ?> первый код <?php } else { ?> второй код <?php } ?> никто не подскажет как мне в контроллере модуля рекомендуемых получить $position_module (в моем случае текущую позицию модуля)
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.