Jump to content

gsa0089

Новичок
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

0 Обычный

About gsa0089

  • Rank
    Пользователь

Recent Profile Visitors

468 profile views
  1. http://horeca.prochay.com/index.php?route=product/category&path=66 Вот код модуля .product-price td{     position: relative;     vertical-align: middle!important; } .product-price .image img{     max-width: 70px; } .product-price .product-label{     display: none; } .product-price .price span{     display: block; } .product-price .price-new {     font-weight: 600; } .product-price .price-old {     color: #999;     text-decoration: line-through; } .product-price .button-group button {     display: none; } .product-price .button-group button:first-child {     display:block;     border: none;     background-color: #eee;     color: #888;     line-height: 38px;     font-weight: bold;     text-align: center;     text-transform: uppercase;     min-width: 100px; } .price {     min-width: 90px; }
  2. Подскажите как растянуть таблицу по всей ширине? http://horeca.prochay.com/index.php?route=product/category&path=60&page=2
  3. Вот так получилось Вот содержимое category.tpl Может че не то удалил <?php echo $header; ?> <div class="container"> ? <ul class="breadcrumb"> ? ? <?php foreach ($breadcrumbs as $breadcrumb) { ?> ? ? <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li> ? ? <?php } ?> ? </ul> ? <div class="row"><?php echo $column_left; ?> ? ? <?php if ($column_left && $column_right) { ?> ? ? <?php $class = 'col-sm-6'; ?> ? ? <?php } elseif ($column_left || $column_right) { ?> ? ? <?php $class = 'col-sm-9'; ?> ? ? <?php } else { ?> ? ? <?php $class = 'col-sm-12'; ?> ? ? <?php } ?> ? ? <div id="content" class="<?php echo $class; ?>"><?php echo $content_top; ?> ? ? ? <h1><?php echo $heading_title; ?></h1> ? ? ? <?php if ($thumb || $description) { ?> ? ? ? <div class="row"> ? ? ? ? <?php if ($thumb) { ?> ? ? ? ? <div class="col-sm-2"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" title="<?php echo $heading_title; ?>" class="img-thumbnail" /></div> ? ? ? ? <?php } ?> ? ? ? ? <?php if ($description) { ?> ? ? ? ? <div class="col-sm-10"><?php echo $description; ?></div> ? ? ? ? <?php } ?> ? ? ? </div> ? ? ? <hr> ? ? ? <?php } ?> ? ? ? <?php if ($categories) { ?> ? ? ? <h3><?php echo $text_refine; ?></h3> ? ? ? <?php if (count($categories) <= 5) { ?> ? ? ? <div class="row"> ? ? ? ? <div class="col-sm-3"> ? ? ? ? ? <ul> ? ? ? ? ? ? <?php foreach ($categories as $category) { ?> ? ? ? ? ? ? <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li> ? ? ? ? ? ? <?php } ?> ? ? ? ? ? </ul> ? ? ? ? </div> ? ? ? </div> ? ? ? <?php } else { ?> ? ? ? <div class="row"> ? ? ? ? <?php foreach (array_chunk($categories, ceil(count($categories) / 4)) as $categories) { ?> ? ? ? ? <div class="col-sm-3"> ? ? ? ? ? <ul> ? ? ? ? ? ? <?php foreach ($categories as $category) { ?> ? ? ? ? ? ? <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li> ? ? ? ? ? ? <?php } ?> ? ? ? ? ? </ul> ? ? ? ? </div> ? ? ? ? <?php } ?> ? ? ? </div> ? ? ? <?php } ?> ? ? ? <?php } ?> ? ? ? <?php if ($products) { ?> ? ? ? <div class="row"> ? ? ? ? <div class="col-md-3 col-sm-6"> ? ? ? ? ? <div class="form-group"> ? ? ? ? ? ? <a href="<?php echo $compare; ?>" id="compare-total" class="btn btn-link"><?php echo $text_compare; ?></a> ? ? ? ? ? </div> ? ? ? ? </div> ? ? ? ? <div class="col-md-4 col-xs-6"> ? ? ? ? ? <div class="form-group input-group input-group-sm"> ? ? ? ? ? ? <label class="input-group-addon" for="input-sort"><?php echo $text_sort; ?></label> ? ? ? ? ? ? <select id="input-sort" class="form-control" onchange="location = this.value;"> ? ? ? ? ? ? ? <?php foreach ($sorts as $sorts) { ?> ? ? ? ? ? ? ? <?php if ($sorts['value'] == $sort . '-' . $order) { ?> ? ? ? ? ? ? ? <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option> ? ? ? ? ? ? ? <?php } else { ?> ? ? ? ? ? ? ? <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option> ? ? ? ? ? ? ? <?php } ?> ? ? ? ? ? ? ? <?php } ?> ? ? ? ? ? ? </select> ? ? ? ? ? </div> ? ? ? ? </div> ? ? ? ? <div class="col-md-3 col-xs-6"> ? ? ? ? ? <div class="form-group input-group input-group-sm"> ? ? ? ? ? ? <label class="input-group-addon" for="input-limit"><?php echo $text_limit; ?></label> ? ? ? ? ? ? <select id="input-limit" class="form-control" onchange="location = this.value;"> ? ? ? ? ? ? ? <?php foreach ($limits as $limits) { ?> ? ? ? ? ? ? ? <?php if ($limits['value'] == $limit) { ?> ? ? ? ? ? ? ? <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option> ? ? ? ? ? ? ? <?php } else { ?> ? ? ? ? ? ? ? <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option> ? ? ? ? ? ? ? <?php } ?> ? ? ? ? ? ? ? <?php } ?> ? ? ? ? ? ? </select> ? ? ? ? ? </div> ? ? ? ? </div> ? ? ? </div> ? ? ? <div class="row"> ? ? ? ? <?php foreach ($products as $product) { ?> ? ? ? ? <div class="product-layout product-list col-xs-12"> ? ? ? ? ? <div class="product-thumb"> ? ? ? ? ? ? <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div> ? ? ? ? ? ? <div> ? ? ? ? ? ? ? <div class="caption"> ? ? ? ? ? ? ? ? <h4><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4> ? ? ? ? ? ? ? ? <p><?php echo $product['description']; ?></p> ? ? ? ? ? ? ? ? <?php if ($product['price']) { ?> ? ? ? ? ? ? ? ? <p class="price"> ? ? ? ? ? ? ? ? ? <?php if (!$product['special']) { ?> ? ? ? ? ? ? ? ? ? <?php echo $product['price']; ?> ? ? ? ? ? ? ? ? ? <?php } else { ?> ? ? ? ? ? ? ? ? ? <span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span> ? ? ? ? ? ? ? ? ? <?php } ?> ? ? ? ? ? ? ? ? ? <?php if ($product['tax']) { ?> ? ? ? ? ? ? ? ? ? <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span> ? ? ? ? ? ? ? ? ? <?php } ?> ? ? ? ? ? ? ? ? </p> ? ? ? ? ? ? ? ? <?php } ?> ? ? ? ? ? ? ? ? <?php if ($product['rating']) { ?> ? ? ? ? ? ? ? ? <div class="rating"> ? ? ? ? ? ? ? ? ? <?php for ($i = 1; $i <= 5; $i++) { ?> ? ? ? ? ? ? ? ? ? <?php if ($product['rating'] < $i) { ?> ? ? ? ? ? ? ? ? ? <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span> ? ? ? ? ? ? ? ? ? <?php } else { ?> ? ? ? ? ? ? ? ? ? <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span> ? ? ? ? ? ? ? ? ? <?php } ?> ? ? ? ? ? ? ? ? ? <?php } ?> ? ? ? ? ? ? ? ? </div> ? ? ? ? ? ? ? ? <?php } ?> ? ? ? ? ? ? ? </div> ? ? ? ? ? ? ? <div class="button-group"> ? ? ? ? ? ? ? ? <button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>', '<?php echo $product['minimum']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button> ? ? ? ? ? ? ? ? <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button> ? ? ? ? ? ? ? ? <button type="button" data-toggle="tooltip" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-exchange"></i></button> ? ? ? ? ? ? ? </div> ? ? ? ? ? ? </div> ? ? ? ? ? </div> ? ? ? ? </div> ? ? ? ? <?php } ?> ? ? ? </div> ? ? ? <div class="row"> ? ? ? ? <div class="col-sm-6 text-left"><?php echo $pagination; ?></div> ? ? ? ? <div class="col-sm-6 text-right"><?php echo $results; ?></div> ? ? ? </div> ? ? ? <?php } ?> ? ? ? <?php if (!$categories && !$products) { ?> ? ? ? <p><?php echo $text_empty; ?></p> ? ? ? <div class="buttons"> ? ? ? ? <div class="pull-right"><a href="<?php echo $continue; ?>" class="btn btn-primary"><?php echo $button_continue; ?></a></div> ? ? ? </div> ? ? ? <?php } ?> ? ? ? <?php echo $content_bottom; ?></div> ? ? <?php echo $column_right; ?></div> </div> <?php echo $footer; ?>
  4. Все удалил, кнопки остались <?php echo $header; ?> <div class="container">   <ul class="breadcrumb">     <?php foreach ($breadcrumbs as $breadcrumb) { ?>     <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>     <?php } ?>   </ul>   <div class="row"><?php echo $column_left; ?>     <?php if ($column_left && $column_right) { ?>     <?php $class = 'col-sm-6'; ?>     <?php } elseif ($column_left || $column_right) { ?>     <?php $class = 'col-sm-9'; ?>     <?php } else { ?>     <?php $class = 'col-sm-12'; ?>     <?php } ?>     <div id="content" class="<?php echo $class; ?>"><?php echo $content_top; ?>       <h1><?php echo $heading_title; ?></h1>       <?php if ($thumb || $description) { ?>       <div class="row">         <?php if ($thumb) { ?>         <div class="col-sm-2"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" title="<?php echo $heading_title; ?>" class="img-thumbnail" /></div>         <?php } ?>         <?php if ($description) { ?>         <div class="col-sm-10"><?php echo $description; ?></div>         <?php } ?>       </div>       <hr>       <?php } ?>       <?php if ($categories) { ?>       <h3><?php echo $text_refine; ?></h3>       <?php if (count($categories) <= 5) { ?>       <div class="row">         <div class="col-sm-3">           <ul>             <?php foreach ($categories as $category) { ?>             <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>             <?php } ?>           </ul>         </div>       </div>       <?php } else { ?>       <div class="row">         <?php foreach (array_chunk($categories, ceil(count($categories) / 4)) as $categories) { ?>         <div class="col-sm-3">           <ul>             <?php foreach ($categories as $category) { ?>             <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>             <?php } ?>           </ul>         </div>         <?php } ?>       </div>       <?php } ?>       <?php } ?>       <?php if ($products) { ?>       <div class="row">         <div class="col-md-3 col-sm-6">           <div class="form-group">             <a href="<?php echo $compare; ?>" id="compare-total" class="btn btn-link"><?php echo $text_compare; ?></a>           </div>         </div>         <div class="col-md-4 col-xs-6">           <div class="form-group input-group input-group-sm">             <label class="input-group-addon" for="input-sort"><?php echo $text_sort; ?></label>             <select id="input-sort" class="form-control" onchange="location = this.value;">               <?php foreach ($sorts as $sorts) { ?>               <?php if ($sorts['value'] == $sort . '-' . $order) { ?>               <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>               <?php } else { ?>               <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>               <?php } ?>               <?php } ?>             </select>           </div>         </div>         <div class="col-md-3 col-xs-6">           <div class="form-group input-group input-group-sm">             <label class="input-group-addon" for="input-limit"><?php echo $text_limit; ?></label>             <select id="input-limit" class="form-control" onchange="location = this.value;">               <?php foreach ($limits as $limits) { ?>               <?php if ($limits['value'] == $limit) { ?>               <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>               <?php } else { ?>               <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>               <?php } ?>               <?php } ?>             </select>           </div>         </div>       </div>       <div class="row">         <?php foreach ($products as $product) { ?>         <div class="product-layout product-list col-xs-12">           <div class="product-thumb">             <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div>             <div>               <div class="caption">                 <h4><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>                 <p><?php echo $product['description']; ?></p>                 <?php if ($product['price']) { ?>                 <p class="price">                   <?php if (!$product['special']) { ?>                   <?php echo $product['price']; ?>                   <?php } else { ?>                   <span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>                   <?php } ?>                   <?php if ($product['tax']) { ?>                   <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>                   <?php } ?>                 </p>                 <?php } ?>                 <?php if ($product['rating']) { ?>                 <div class="rating">                   <?php for ($i = 1; $i <= 5; $i++) { ?>                   <?php if ($product['rating'] < $i) { ?>                   <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>                   <?php } else { ?>                   <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>                   <?php } ?>                   <?php } ?>                 </div>                 <?php } ?>               </div>               <div class="button-group">                 <button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>', '<?php echo $product['minimum']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>                 <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button>                 <button type="button" data-toggle="tooltip" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-exchange"></i></button>               </div>             </div>           </div>         </div>         <?php } ?>       </div>       <div class="row">         <div class="col-sm-6 text-left"><?php echo $pagination; ?></div>         <div class="col-sm-6 text-right"><?php echo $results; ?></div>       </div>       <?php } ?>       <?php if (!$categories && !$products) { ?>       <p><?php echo $text_empty; ?></p>       <div class="buttons">         <div class="pull-right"><a href="<?php echo $continue; ?>" class="btn btn-primary"><?php echo $button_continue; ?></a></div>       </div>       <?php } ?>       <?php echo $content_bottom; ?></div>     <?php echo $column_right; ?></div> </div> <?php echo $footer; ?>
  5. Ребят подскажите как убрать эти кнопки вообще и оставить третью по умолчанию (вид прайс-листа) http://horeca.prochay.com/index.php?route=product/category&amp;path=60 Спасибо!
  6. Ребят подскажите как поменять ширину колонок чтобы описание было в несколько строк, а цена в одну строку Спасибо! Код прилагаю .product-price td{     position: relative;     vertical-align: middle!important; } .product-price .image img{     max-width: 70px; } .product-price .product-label{     display: none; } .product-price .price span{     display: block; } .product-price .price-new {     font-weight: 600; } .product-price .price-old {     color: #999;     text-decoration: line-through; } .product-price .button-group button {     display: none; } .product-price .button-group button:first-child {     display:block;     border: none;     background-color: #eee;     color: #888;     line-height: 38px;     font-weight: bold;     text-align: center;     text-transform: uppercase;     min-width: 100px; }
×

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.