Modül Kategori Açıklamasını Ürünlerin Altına Almak |
|||
Konuyu görüntüleyenler: 1 Misafir
|
|||
|
|||
|
|||
|
|||
chichito
Acemi Üye Mesajlar: 1 Konular: 1 Katılma Tarihi: Nov 2014 Rep Puanı: 0 Teşekkürler: 0
0 Mesajına, 0 Teşekkür edildi. Kişisel Bilgileri:
Konu Tarihi: 01-23-2018 11:17 AM
Arkadaşlar herkese selamlar. 2.1.0.1 sürümü için kategori açıklamasını ürünlerin altına almak için /catalog/view/theme/temaadı/template/product/category.tpl dosyasını düzenlememiz gerekiyor evet heryerde bu bilgi var.. ama burada description kodunu hangi kodun altına alarak sıralama yapacağız. kodlamadaki değişiklik ne olacak bilgi sahibi olan arkadaşlardan yardım istiyorum. Şimdiden teşekkürler. Bendeki kodlama böyle; <?php echo $header; ?> <style>#menu{margin-bottom:0px;}</style> <div class="gray"> <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></div> <div class="container"> <div class=""> <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; ?> <h2 class="row" style="padding-bottom:9px;"><span><?php echo $heading_title; ?></span></h2> <?php if ($thumb || $description) { ?> <?php if ($thumb) { ?> <div class="col-sm-12"><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-12"><?php echo $description; ?> <?php } ?><div style="clear:both"></div> </div> <div style="background:#fff;padding-top:10px;" class="row"> <?php } ?> <?php if ($categories) { ?> <?php if (count($categories) <= 1) { ?> <div style="background:#fff;" class="row"> <div class="col-sm-3"> <ul class="list-unstyled"> <?php foreach ($categories as $category) { ?> <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li><?php echo $content_bottom; ?></div> <?php } ?> </ul> </div> </div> <?php } else { ?> <div style="background:#fff;" 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 backgrod"> <div class="col-md-4"> <div class="btn-group hidden-xs"> <a type="button" id="list-view1" data-toggle="tooltip" title="<?php echo $button_list; ?>"><i class="fa fa-th-list"></i></a> <a type="button" id="grid-view1" data-toggle="tooltip" title="<?php echo $button_grid; ?>"><i class="fa fa-th"></i></a> </div> </div> <div class="col-md-8 text-right"> <div class="col-sm-4 hidden-xs hidden-sm"><a class="comparing" href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div> <div class="col-sm-5"> <label class="control-label" for="input-sort"><?php echo $text_sort; ?></label> <select id="input-sort" class="selecting" 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 class="col-md-3"> <label class="control-label hidden-xs hidden-sm" for="input-limit"><?php echo $text_limit; ?></label> <select id="input-limit" class="selecting" 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 style="background:#fff;" class="row"> <?php foreach ($products as $product) { ?> <div style="border:none;" class="leftrightx product-list col-xs-12"> <div class="product-layout"> <div class="product-thumb transition"> <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 imghover" /></a> <?php if ($product['special']) { ?> <div class="discount"> <?php $string = $product['price']; $string1 = $product['special']; $int_price = substr(intval(preg_replace('/[^0-9]+/', '', $string), 10),0,-2); $int_sprice = substr(intval(preg_replace('/[^0-9]+/', '', $string1), 10),0,-2); echo round(($int_price-$int_sprice)/$int_price*100) . "%"; ?> İndirim </div> <?php } ?> <div class="button-group"> <button type="button" data-toggle="tooltip" title="<?php echo $button_cart; ?>" onclick="cart.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button> <button data-toggle="tooltip" title="İncele" type="button" onclick="window.open('<?php echo $product['href']; ?>', '_self') "><i class="fa fa-search-plus"></i> İNCELE</button> </div> </div> <div class="caption text-center"> <h4><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4> <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 off fa-stack-2x"></i></span> <?php } else { ?> <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i></span> <?php } ?> <?php } ?> </div> <?php if ($product['price']) { ?> <p class="price"> <?php if (!$product['special']) { ?> </br> <span class="price-new"><?php echo $product['price']; ?></span> <?php } else { ?> <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span> <?php } ?> </p> <?php } ?> </div> </div> </div> </div> <?php } ?> <div style="clear:both;"></div> </div> <div style="padding:10px;" 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></div> <script> // Product List $('#list-view1').click(function() { $('#content .leftrightx > .clearfix').remove(); //$('#content .product-layout').attr('class', 'product-layout product-list col-xs-12'); $('#content .row > .leftrightx').attr('class', 'leftrightx product-list col-xs-12'); localStorage.setItem('display', 'list'); }); // Product Grid $('#grid-view1').click(function() { $('#content .row > .leftrightx > .clearfix').remove(); // What a shame bootstrap does not take into account dynamically loaded columns cols = $('#column-right, #column-left').length; if (cols == 2) { $('#content .row > .leftrightx').attr('class', 'leftrightx product-grid col-lg-6 col-md-6 col-sm-12 col-xs-12'); } else if (cols == 1) { $('#content .row > .leftrightx').attr('class', 'leftrightx product-grid col-lg-3 col-md-3 col-sm-6 col-xs-12'); } else { $('#content .row > .leftrightx').attr('class', 'leftrightx product-grid col-lg-3 col-md-3 col-sm-6 col-xs-12'); } localStorage.setItem('display', 'grid'); }); if (localStorage.getItem('display') == 'list'){ $('#list-view1').trigger('click'); } else { $('#grid-view1').trigger('click'); } </script> <?php echo $footer; ?> |
|
|
|
|
Direk Link | |
HTML Link | |
BBCode Link | |
Sosyal Paylaş |