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

askirov

Пользователи
  
  • Posts

    124
  • Joined

  • Last visited

1 Follower

Информация

  • Пол
    Мужлина
  • Город:
    Огдесса

Recent Profile Visitors

7,354 profile views

askirov's Achievements

Contributor

Contributor (5/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

35

Reputation

  1. Попробуйте ик в файле шаблона product.tpl ггде после <?php echo $text_stock; ?> всивить <?php if ($stock == 'Есть в налилии') {?> <span class="in-stock"><img src="instock.jpg" /></span> <?php } elseif ($stock == 'Нет в налилии') { ?> <span class="out-stock"><img src="not-instock.jpg" /></span> <?php } else { ?> <span class="else-stock"><img src="pre-order.jpg" /></span> <?php } ?> имя файла картинки заменить на свои или осивить блок без картинки, а присвоить классам нужный бэкграунд.
  2. Попробуйте ик <?php $column_left = trim($column_left); if(!empty($column_left)) { <body class="body-this-left" > } if(!empty($column_right)) { <body class="body-this-right" > } else { <body> } ?>
  3. откройте файл product.tpl и найдите строки <?php if ($attribute_groups) { ?> <a href="#tab-attribute"><?php echo $tab_attribute; ?></a> <?php } ?> и удалите их или примените комменирий вида <!-- код внутри --> Потом тут-же найдите <?php if ($attribute_groups) { ?> <div id="tab-attribute" class="tab-content"> <table class="attribute"> <?php foreach ($attribute_groups as $attribute_group) { ?> <thead> <tr> <td colspan="2"><?php echo $attribute_group['name']; ?></td> </tr> </thead> <tbody> <?php foreach ($attribute_group['attribute'] as $attribute) { ?> <tr> <td><?php echo $attribute['name']; ?></td> <td><?php echo $attribute['text']; ?></td> </tr> <?php } ?> </tbody> <?php } ?> </table> </div> <?php } ?> и прогделайте икую-же операцию (удалите или закомментируйте)
  4. Тогда смотрите в catalog/controller/product.php ищите им переменную $description и что она принимает.
  5. Тогда как вариант <li><a href="/" class="<?php if($_SERVER['REQUEST_URI'] == '/'){echo "active";} ?>">Главная</a></li> или <a href="/" class="<?php if(isset($this->request->get['route'])) { if($this->request->get['route'] == 'common/home') { echo "active"; }} ?>">Главная</a>
  6. Даже и с категориями только вместо if ($product_info['quantity'] <= 0 заменяем на if ($category_id == '18') && file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category_1.tpl'){ $this->template = $this->config->get('config_template') . '/template/product/category_1.tpl'; } elseif (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category.tpl')) { id сивим тот категории ггде хотим заменить шаблон
  7. я гделал еещё ик: если у товара кол-во на склагде = 0 то подгружался другой шаблон вот код в файле catalog/controller/product/product.php заменить строки if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/product.tpl')) { на if ($product_info['quantity'] <= 0 && file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/product1.tpl')) { $this->template = $this->config->get('config_template') . '/template/product/product1.tpl'; } elseif (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/product.tpl')) { соответственно создав в папке новый шаблон для товара например product1.tpl /template/product/product1.tpl Как-то ик. Пробуйте.
  8. Похоже что у вас в файле product.tpl в <div id="tab-description" class="tab-content"> присутствует <?php echo $heading_title; ?> проверьте!
  9. В <input type="checkbox" name="sub_category" value="1" id="sub_category"> сивите checked="checked" и style="display:none;" тоже самое для <input type="checkbox" name="description" value="1" id="description"> точнее style="display:none;" сивите для <label class="checkbox inline"> в нем завернут чекпотому чтокс, поэтому чекпотому чтоксу сивите только checked="checked"
  10. в файле stylesheet.css для блока .search-criteria посивьте text-align:left; а в файле clearshop->template->product->search.tpl найдите <div class="controls"> <input type="text" name="search" class="search-box span6" value=""> </div> и перед закрывающим тегом </div> после <input .... перенесите <select name="category_id" class="filter-category span4">...................</select> со всеми option value.... и можете классы span6 заменить на span4 это уменьшит поле ввода.
×
×
  • 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.