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

askirov

Users
  
  • Posts

    124
  • Joined

  • Last visited

1 Follower

Information

  • Gender
    Мужчина
  • City:
    Одесса

Recent Profile Visitors

7,665 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.