tr-opencart

     
avatar Şuanki Zaman: 12-19-2024, 11:58 AMHoşgeldin Misafir !
  Şifremi Hatırlat   kayıt ol
opencart temaları

Kategori Açıklamasını Ürünlerin Altına Almak

Konuyu görüntüleyenler:
 
Değerlendir:
  • 0 Oy - 0 Yüzde
  • 1
  • 2
  • 3
  • 4
  • 5
%
Cevapla  Gönder 
v  v
Yazar  syndrome2007 - Görüntüleme - Okunma  2883 - Yorum  0

syndrome2007v
Acemi Üye
**
Üye user avatar
Çevrimdışı

Mesajlar: 5
Konular: 2
Katılma Tarihi: Oct 2012
Rep Puanı: 0
Teşekkürler: 1
1 Mesajına, 2 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 03-01-2017 05:57 AM

Arkadaşlar herkese selamlar. 2.2.0.0 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. Rolleyes Bendeki kodlama böyle

Alıntı:<?php echo $header;
if(isset($mfilter_json)) {
if(!empty($mfilter_json)) {
echo '<div id="mfilter-json" style="display:none">' . base64_encode( $mfilter_json ) . '</div>';
}
}

$theme_options = $registry->get('theme_options');
$config = $registry->get('config');
include('catalog/view/theme/'.$config->get($config->get('config_theme') . '_directory').'/template/new_elements/wrapper_top.tpl');

$text_sale = 'Sale';
if($theme_options->get( 'sale_text', $config->get( 'config_language_id' ) ) != '') {
$text_sale = $theme_options->get( 'sale_text', $config->get( 'config_language_id' ) );
}

$text_bestseller = 'Bestseller';
if($theme_options->get( 'bestseller_text', $config->get( 'config_language_id' ) ) != '') {
$text_bestseller = $theme_options->get( 'bestseller_text', $config->get( 'config_language_id' ) );
}
$text_new = 'New';
if($theme_options->get( 'latest_text', $config->get( 'config_language_id' ) ) != '') {
$text_new = $theme_options->get( 'latest_text', $config->get( 'config_language_id' ) );
}


$text_stock = 'Availability';
if($theme_options->get( 'availability_text', $config->get( 'config_language_id' ) ) != '') {
$text_stock = $theme_options->get( 'availability_text', $config->get( 'config_language_id' ) );
}
?>
<div id="mfilter-content-container">
<?php if ($thumb || $description) { ?>
<div class="category-info clearfix">
<?php if ($thumb) { ?>
<div class="image"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></div>
<?php } ?>
<?php if ($description) { ?>
<?php echo $description; ?>
<?php } ?>
</div>
<?php } ?>
<?php if ($categories && $theme_options->get('refine_search_style') != '2') { ?>
<h2 class="refine_search"><?php echo $text_refine; ?></h2>
<div class="category-list<?php if ($theme_options->get('refine_search_style') == '1') { echo ' category-list-text-only'; } ?>">
<div class="row">
<?php
$class = 3;
$row = 4;

if($theme_options->get( 'refine_search_number' ) == 2) { $class = 62; }
if($theme_options->get( 'refine_search_number' ) == 5) { $class = 25; }
if($theme_options->get( 'refine_search_number' ) == 3) { $class = 4; }
if($theme_options->get( 'refine_search_number' ) == 6) { $class = 2; }

if($theme_options->get( 'refine_search_number' ) > 1) { $row = $theme_options->get( 'refine_search_number' ); }
?>
<?php $row_fluid = 0; foreach ($theme_options->refineSearch() as $category) { $row_fluid++; ?>
<?php
if ($theme_options->get('refine_search_style') != '1') {
$width = 250;
$height = 250;
if($theme_options->get( 'refine_image_width' ) > 20) $width = $theme_options->get( 'refine_image_width' );
if($theme_options->get( 'refine_image_height' ) > 20) $height = $theme_options->get( 'refine_image_height' );
$model_tool_image = $registry->get('model_tool_image');
if($category['thumb'] != '') {
$image = $model_tool_image->resize($category['thumb'], $width, $height);
} else {
$image = $model_tool_image->resize('no_image.jpg', $width, $height);
}
}
?>
<?php $r=$row_fluid-floor($row_fluid/$row)*$row; if($row_fluid>$row && $r == 1) { echo '</div><div class="row">'; } ?>
<div class="col-sm-<?php echo $class; ?> col-xs-6">
<?php if ($theme_options->get('refine_search_style') != '1') { ?>
<a href="<?php echo $category['href']; ?>"><img src="<?php echo $image; ?>" alt="<?php echo $category['name']; ?>" /></a>
<?php } ?>
<a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
<?php if ($products) { ?>
<!-- Filter -->
<div class="product-filter clearfix">
<div class="options">
<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>

<div class="button-group display" data-toggle="buttons-radio">
<button id="grid" <?php if($theme_options->get('default_list_grid') == '1') { echo 'class="active"'; } ?> rel="tooltip" title="Grid" onclick="display('grid');"><i class="fa fa-th-large"></i></button>
<button id="list" <?php if($theme_options->get('default_list_grid') != '1') { echo 'class="active"'; } ?> rel="tooltip" title="List" onclick="display('list');"><i class="fa fa-th-list"></i></button>
</div>
</div>

<div class="list-options">
<div class="sort">
<?php echo $text_sort; ?>
<select 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="limit">
<?php echo $text_limit; ?>
<select 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>

<!-- Products list -->
<div class="product-list"<?php if(!($theme_options->get('default_list_grid') == '1')) { echo ' class="active"'; } ?>>
<?php foreach ($products as $product) { ?>
<?php $product_detail = $theme_options->getDataProduct( $product['product_id'] ); ?>
<!-- Product -->
<div>
<?php if($product['special'] && $theme_options->get( 'display_text_sale' ) != '0') { ?>

<?php if($theme_options->get( 'type_sale' ) == '0') { ?>
<div class="ribbon red sale"><span><?php echo $text_sale; ?></span></div>
<?php } ?>
<?php } ?>

<?php if($product_detail['is_bestseller'] && $theme_options->get( 'display_text_bestseller' ) != '0'):?>
<div class="ribbon green bestseller"><span><?php echo $text_bestseller; ?></span></div>
<?php endif; ?>
<?php if($product_detail['is_latest'] && $theme_options->get( 'display_text_latest' ) != '0'):?>
<div class="ribbon blue latest"><span><?php echo $text_new; ?></span></div>
<?php endif; ?>
<div class="row">

<div class="image col-sm-4">

<?php if($theme_options->get( 'quick_view' ) == 1) { ?>
<div class="quickview">
<a href="index.php?route=product/quickview&product_id=<?php echo $product['product_id']; ?>" title="<?php echo $product['name']; ?>"><?php if($theme_options->get( 'quickview_text', $config->get( 'config_language_id' ) ) != '') { echo html_entity_decode($theme_options->get( 'quickview_text', $config->get( 'config_language_id' ) )); } else { echo 'QUICKVIEW'; } ?></a>
</div>
<?php } ?>

<?php if($product['thumb']) { ?>
<?php if($theme_options->get( 'lazy_loading_images' ) != '0') { ?>
<a href="<?php echo $product['href']; ?>"><img src="image/catalog/blank.gif" data-echo="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a>
<?php } else { ?>
<a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a>
<?php } ?>
<?php } else { ?>
<a href="<?php echo $product['href']; ?>"><img src="image/no_image.jpg" alt="<?php echo $product['name']; ?>" /></a>
<?php } ?>
</div>

<div class="name-desc col-sm-5">
<?php if ($product['rating']) { ?>
<div class="rating-reviews clearfix">
<div class="rating"><i class="fa fa-star<?php if($product['rating'] >= 1) { echo ' active'; } ?>"></i><i class="fa fa-star<?php if($product['rating'] >= 2) { echo ' active'; } ?>"></i><i class="fa fa-star<?php if($product['rating'] >= 3) { echo ' active'; } ?>"></i><i class="fa fa-star<?php if($product['rating'] >= 4) { echo ' active'; } ?>"></i><i class="fa fa-star<?php if($product['rating'] >= 5) { echo ' active'; } ?>"></i></div>
</div>
<?php } ?>
<div class="name">
<a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
<div class="brand"><?php echo $product_detail['manufacturer']; ?></div>
</div>
<div class="description"><?php echo $product['description']; ?></div>

</div>

<div class="actions col-sm-3">
<div>
<?php if($product['special'] && $theme_options->get( 'display_text_sale' ) != '0') { ?>
<?php if($theme_options->get( 'type_sale' ) == '1') { ?>
<?php
$roznica_ceny = $product_detail['price']-$product_detail['special'];
$procent = ($roznica_ceny*100)/$product_detail['price']; ?>
<div class="label-discount sale"><span>-<?php echo round($procent); ?>%</span></div>
<?php } ?>
<?php } ?>
<div class="price">
<?php if (!$product['special']) { ?>
<?php echo $product['price']; ?>
<?php } else { ?>
<span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
<?php } ?>
</div>
<div class="availability">
<?php echo $text_stock; ?> <span class="<?php echo ($product_detail['is_available'] ? 'available' : 'no-available'); ?>"><?php echo $product_detail['stock']; ?></span>
</div>
<div class="add-to-cart">
<?php $enquiry = false; if($config->get( 'product_blocks_module' ) != '') { $enquiry = $theme_options->productIsEnquiry($product['product_id']); }
if(is_array($enquiry)) { ?>
<a href="jopenPopup('<?php echo $enquiry['popup_module']; ?>', '<?php echo $product['product_id']; ?>')" class="button button-enquiry">
<?php if($enquiry['icon'] != '' && $enquiry['icon_position'] == 'left') { echo '<img src="image/' . $enquiry['icon']. '" align="left" class="icon-enquiry" alt="Icon">'; } ?>
<span class="text-enquiry"><?php echo $enquiry['block_name']; ?></span>
<?php if($enquiry['icon'] != '' && $enquiry['icon_position'] == 'right') { echo '<img src="image/' . $enquiry['icon']. '" align="right" class="icon-enquiry" alt="Icon">'; } ?>
</a>
<?php } else { ?>
<a onclick="cart.add('<?php echo $product['product_id']; ?>');" class="button"><?php echo $button_cart; ?></a>
<?php } ?>
</div>

<ul class="add-list">
<li><a onclick="compare.add('<?php echo $product['product_id']; ?>');" class="btn-add-to-compare"><i class="fa fa-heart"></i><?php if($theme_options->get( 'add_to_compare_text', $config->get( 'config_language_id' ) ) != '') { echo $theme_options->get( 'add_to_compare_text', $config->get( 'config_language_id' ) ); } else { echo 'Add to compare'; } ?></a></li>
<li><a onclick="wishlist.add('<?php echo $product['product_id']; ?>');" class="btn-add-to-wishlist"><i class="fa fa-exchange"></i><?php if($theme_options->get( 'add_to_wishlist_text', $config->get( 'config_language_id' ) ) != '') { echo $theme_options->get( 'add_to_wishlist_text', $config->get( 'config_language_id' ) ); } else { echo 'Add to wishlist'; } ?></a></li>
</ul>
</div>
</div>
</div>
</div>
<?php } ?>
</div>

<!-- Products grid -->
<?php
$class = 3;
$row = 4;

if($theme_options->get( 'product_per_pow2' ) == 6) { $class = 2; }
if($theme_options->get( 'product_per_pow2' ) == 5) { $class = 25; }
if($theme_options->get( 'product_per_pow2' ) == 3) { $class = 4; }

if($theme_options->get( 'product_per_pow2' ) > 1) { $row = $theme_options->get( 'product_per_pow2' ); }
?>
<div class="product-grid"<?php if($theme_options->get('default_list_grid') == '1') { echo ' class="active"'; } ?>>
<div class="row">
<?php $row_fluid = 0; foreach ($products as $product) { $row_fluid++; ?>
<?php $r=$row_fluid-floor($row_fluid/$row)*$row; if($row_fluid>$row && $r == 1) { echo '</div><div class="row">'; } ?>
<div class="col-sm-<?php echo $class; ?> col-xs-6">
<?php include('catalog/view/theme/'.$config->get($config->get('config_theme') . '_directory').'/template/new_elements/product.tpl'); ?>
</div>
<?php } ?>
</div>
</div>

<div class="row pagination-results">
<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 style="padding-top: 6px"><?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 } ?>
<script type="text/javascript"><!--
function display(view) {

if (view == 'list') {
$('.product-grid').removeClass("active");
$('.product-list').addClass("active");

$('.display').html('<button id="grid" rel="tooltip" title="Grid" onclick="display(\'grid\');"><i class="fa fa-th-large"></i></button> <button class="active" id="list" rel="tooltip" title="List" onclick="display(\'list\');"><i class="fa fa-th-list"></i></button>');

localStorage.setItem('display', 'list');
} else {

$('.product-grid').addClass("active");
$('.product-list').removeClass("active");

$('.display').html('<button class="active" id="grid" rel="tooltip" title="Grid" onclick="display(\'grid\');"><i class="fa fa-th-large"></i></button> <button id="list" rel="tooltip" title="List" onclick="display(\'list\');"><i class="fa fa-th-list"></i></button>');

localStorage.setItem('display', 'grid');
}
}

if (localStorage.getItem('display') == 'list') {
display('list');
} else {
display('grid');
}
//--></script>
</div>
<?php include('catalog/view/theme/'.$config->get($config->get('config_theme') . '_directory').'/template/new_elements/wrapper_bottom.tpl'); ?>
<?php echo $footer; ?>

(03-01-2017 05:57 AM)syndrome2007 Yazılan:  Arkadaşlar herkese selamlar. 2.2.0.0 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. Rolleyes Bendeki kodlama böyle

Alıntı:<?php echo $header;
if(isset($mfilter_json)) {
if(!empty($mfilter_json)) {
echo '<div id="mfilter-json" style="display:none">' . base64_encode( $mfilter_json ) . '</div>';
}
}

$theme_options = $registry->get('theme_options');
$config = $registry->get('config');
include('catalog/view/theme/'.$config->get($config->get('config_theme') . '_directory').'/template/new_elements/wrapper_top.tpl');

$text_sale = 'Sale';
if($theme_options->get( 'sale_text', $config->get( 'config_language_id' ) ) != '') {
$text_sale = $theme_options->get( 'sale_text', $config->get( 'config_language_id' ) );
}

$text_bestseller = 'Bestseller';
if($theme_options->get( 'bestseller_text', $config->get( 'config_language_id' ) ) != '') {
$text_bestseller = $theme_options->get( 'bestseller_text', $config->get( 'config_language_id' ) );
}
$text_new = 'New';
if($theme_options->get( 'latest_text', $config->get( 'config_language_id' ) ) != '') {
$text_new = $theme_options->get( 'latest_text', $config->get( 'config_language_id' ) );
}


$text_stock = 'Availability';
if($theme_options->get( 'availability_text', $config->get( 'config_language_id' ) ) != '') {
$text_stock = $theme_options->get( 'availability_text', $config->get( 'config_language_id' ) );
}
?>
<div id="mfilter-content-container">
<?php if ($thumb || $description) { ?>
<div class="category-info clearfix">
<?php if ($thumb) { ?>
<div class="image"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></div>
<?php } ?>
<?php if ($description) { ?>
<?php echo $description; ?>
<?php } ?>
</div>
<?php } ?>
<?php if ($categories && $theme_options->get('refine_search_style') != '2') { ?>
<h2 class="refine_search"><?php echo $text_refine; ?></h2>
<div class="category-list<?php if ($theme_options->get('refine_search_style') == '1') { echo ' category-list-text-only'; } ?>">
<div class="row">
<?php
$class = 3;
$row = 4;

if($theme_options->get( 'refine_search_number' ) == 2) { $class = 62; }
if($theme_options->get( 'refine_search_number' ) == 5) { $class = 25; }
if($theme_options->get( 'refine_search_number' ) == 3) { $class = 4; }
if($theme_options->get( 'refine_search_number' ) == 6) { $class = 2; }

if($theme_options->get( 'refine_search_number' ) > 1) { $row = $theme_options->get( 'refine_search_number' ); }
?>
<?php $row_fluid = 0; foreach ($theme_options->refineSearch() as $category) { $row_fluid++; ?>
<?php
if ($theme_options->get('refine_search_style') != '1') {
$width = 250;
$height = 250;
if($theme_options->get( 'refine_image_width' ) > 20) $width = $theme_options->get( 'refine_image_width' );
if($theme_options->get( 'refine_image_height' ) > 20) $height = $theme_options->get( 'refine_image_height' );
$model_tool_image = $registry->get('model_tool_image');
if($category['thumb'] != '') {
$image = $model_tool_image->resize($category['thumb'], $width, $height);
} else {
$image = $model_tool_image->resize('no_image.jpg', $width, $height);
}
}
?>
<?php $r=$row_fluid-floor($row_fluid/$row)*$row; if($row_fluid>$row && $r == 1) { echo '</div><div class="row">'; } ?>
<div class="col-sm-<?php echo $class; ?> col-xs-6">
<?php if ($theme_options->get('refine_search_style') != '1') { ?>
<a href="<?php echo $category['href']; ?>"><img src="<?php echo $image; ?>" alt="<?php echo $category['name']; ?>" /></a>
<?php } ?>
<a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
<?php if ($products) { ?>
<!-- Filter -->
<div class="product-filter clearfix">
<div class="options">
<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>

<div class="button-group display" data-toggle="buttons-radio">
<button id="grid" <?php if($theme_options->get('default_list_grid') == '1') { echo 'class="active"'; } ?> rel="tooltip" title="Grid" onclick="display('grid');"><i class="fa fa-th-large"></i></button>
<button id="list" <?php if($theme_options->get('default_list_grid') != '1') { echo 'class="active"'; } ?> rel="tooltip" title="List" onclick="display('list');"><i class="fa fa-th-list"></i></button>
</div>
</div>

<div class="list-options">
<div class="sort">
<?php echo $text_sort; ?>
<select 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="limit">
<?php echo $text_limit; ?>
<select 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>

<!-- Products list -->
<div class="product-list"<?php if(!($theme_options->get('default_list_grid') == '1')) { echo ' class="active"'; } ?>>
<?php foreach ($products as $product) { ?>
<?php $product_detail = $theme_options->getDataProduct( $product['product_id'] ); ?>
<!-- Product -->
<div>
<?php if($product['special'] && $theme_options->get( 'display_text_sale' ) != '0') { ?>

<?php if($theme_options->get( 'type_sale' ) == '0') { ?>
<div class="ribbon red sale"><span><?php echo $text_sale; ?></span></div>
<?php } ?>
<?php } ?>

<?php if($product_detail['is_bestseller'] && $theme_options->get( 'display_text_bestseller' ) != '0'):?>
<div class="ribbon green bestseller"><span><?php echo $text_bestseller; ?></span></div>
<?php endif; ?>
<?php if($product_detail['is_latest'] && $theme_options->get( 'display_text_latest' ) != '0'):?>
<div class="ribbon blue latest"><span><?php echo $text_new; ?></span></div>
<?php endif; ?>
<div class="row">

<div class="image col-sm-4">

<?php if($theme_options->get( 'quick_view' ) == 1) { ?>
<div class="quickview">
<a href="index.php?route=product/quickview&product_id=<?php echo $product['product_id']; ?>" title="<?php echo $product['name']; ?>"><?php if($theme_options->get( 'quickview_text', $config->get( 'config_language_id' ) ) != '') { echo html_entity_decode($theme_options->get( 'quickview_text', $config->get( 'config_language_id' ) )); } else { echo 'QUICKVIEW'; } ?></a>
</div>
<?php } ?>

<?php if($product['thumb']) { ?>
<?php if($theme_options->get( 'lazy_loading_images' ) != '0') { ?>
<a href="<?php echo $product['href']; ?>"><img src="image/catalog/blank.gif" data-echo="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a>
<?php } else { ?>
<a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a>
<?php } ?>
<?php } else { ?>
<a href="<?php echo $product['href']; ?>"><img src="image/no_image.jpg" alt="<?php echo $product['name']; ?>" /></a>
<?php } ?>
</div>

<div class="name-desc col-sm-5">
<?php if ($product['rating']) { ?>
<div class="rating-reviews clearfix">
<div class="rating"><i class="fa fa-star<?php if($product['rating'] >= 1) { echo ' active'; } ?>"></i><i class="fa fa-star<?php if($product['rating'] >= 2) { echo ' active'; } ?>"></i><i class="fa fa-star<?php if($product['rating'] >= 3) { echo ' active'; } ?>"></i><i class="fa fa-star<?php if($product['rating'] >= 4) { echo ' active'; } ?>"></i><i class="fa fa-star<?php if($product['rating'] >= 5) { echo ' active'; } ?>"></i></div>
</div>
<?php } ?>
<div class="name">
<a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
<div class="brand"><?php echo $product_detail['manufacturer']; ?></div>
</div>
<div class="description"><?php echo $product['description']; ?></div>

</div>

<div class="actions col-sm-3">
<div>
<?php if($product['special'] && $theme_options->get( 'display_text_sale' ) != '0') { ?>
<?php if($theme_options->get( 'type_sale' ) == '1') { ?>
<?php
$roznica_ceny = $product_detail['price']-$product_detail['special'];
$procent = ($roznica_ceny*100)/$product_detail['price']; ?>
<div class="label-discount sale"><span>-<?php echo round($procent); ?>%</span></div>
<?php } ?>
<?php } ?>
<div class="price">
<?php if (!$product['special']) { ?>
<?php echo $product['price']; ?>
<?php } else { ?>
<span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
<?php } ?>
</div>
<div class="availability">
<?php echo $text_stock; ?> <span class="<?php echo ($product_detail['is_available'] ? 'available' : 'no-available'); ?>"><?php echo $product_detail['stock']; ?></span>
</div>
<div class="add-to-cart">
<?php $enquiry = false; if($config->get( 'product_blocks_module' ) != '') { $enquiry = $theme_options->productIsEnquiry($product['product_id']); }
if(is_array($enquiry)) { ?>
<a href="jopenPopup('<?php echo $enquiry['popup_module']; ?>', '<?php echo $product['product_id']; ?>')" class="button button-enquiry">
<?php if($enquiry['icon'] != '' && $enquiry['icon_position'] == 'left') { echo '<img src="image/' . $enquiry['icon']. '" align="left" class="icon-enquiry" alt="Icon">'; } ?>
<span class="text-enquiry"><?php echo $enquiry['block_name']; ?></span>
<?php if($enquiry['icon'] != '' && $enquiry['icon_position'] == 'right') { echo '<img src="image/' . $enquiry['icon']. '" align="right" class="icon-enquiry" alt="Icon">'; } ?>
</a>
<?php } else { ?>
<a onclick="cart.add('<?php echo $product['product_id']; ?>');" class="button"><?php echo $button_cart; ?></a>
<?php } ?>
</div>

<ul class="add-list">
<li><a onclick="compare.add('<?php echo $product['product_id']; ?>');" class="btn-add-to-compare"><i class="fa fa-heart"></i><?php if($theme_options->get( 'add_to_compare_text', $config->get( 'config_language_id' ) ) != '') { echo $theme_options->get( 'add_to_compare_text', $config->get( 'config_language_id' ) ); } else { echo 'Add to compare'; } ?></a></li>
<li><a onclick="wishlist.add('<?php echo $product['product_id']; ?>');" class="btn-add-to-wishlist"><i class="fa fa-exchange"></i><?php if($theme_options->get( 'add_to_wishlist_text', $config->get( 'config_language_id' ) ) != '') { echo $theme_options->get( 'add_to_wishlist_text', $config->get( 'config_language_id' ) ); } else { echo 'Add to wishlist'; } ?></a></li>
</ul>
</div>
</div>
</div>
</div>
<?php } ?>
</div>

<!-- Products grid -->
<?php
$class = 3;
$row = 4;

if($theme_options->get( 'product_per_pow2' ) == 6) { $class = 2; }
if($theme_options->get( 'product_per_pow2' ) == 5) { $class = 25; }
if($theme_options->get( 'product_per_pow2' ) == 3) { $class = 4; }

if($theme_options->get( 'product_per_pow2' ) > 1) { $row = $theme_options->get( 'product_per_pow2' ); }
?>
<div class="product-grid"<?php if($theme_options->get('default_list_grid') == '1') { echo ' class="active"'; } ?>>
<div class="row">
<?php $row_fluid = 0; foreach ($products as $product) { $row_fluid++; ?>
<?php $r=$row_fluid-floor($row_fluid/$row)*$row; if($row_fluid>$row && $r == 1) { echo '</div><div class="row">'; } ?>
<div class="col-sm-<?php echo $class; ?> col-xs-6">
<?php include('catalog/view/theme/'.$config->get($config->get('config_theme') . '_directory').'/template/new_elements/product.tpl'); ?>
</div>
<?php } ?>
</div>
</div>

<div class="row pagination-results">
<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 style="padding-top: 6px"><?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 } ?>
<script type="text/javascript"><!--
function display(view) {

if (view == 'list') {
$('.product-grid').removeClass("active");
$('.product-list').addClass("active");

$('.display').html('<button id="grid" rel="tooltip" title="Grid" onclick="display(\'grid\');"><i class="fa fa-th-large"></i></button> <button class="active" id="list" rel="tooltip" title="List" onclick="display(\'list\');"><i class="fa fa-th-list"></i></button>');

localStorage.setItem('display', 'list');
} else {

$('.product-grid').addClass("active");
$('.product-list').removeClass("active");

$('.display').html('<button class="active" id="grid" rel="tooltip" title="Grid" onclick="display(\'grid\');"><i class="fa fa-th-large"></i></button> <button id="list" rel="tooltip" title="List" onclick="display(\'list\');"><i class="fa fa-th-list"></i></button>');

localStorage.setItem('display', 'grid');
}
}

if (localStorage.getItem('display') == 'list') {
display('list');
} else {
display('grid');
}
//--></script>
</div>
<?php include('catalog/view/theme/'.$config->get($config->get('config_theme') . '_directory').'/template/new_elements/wrapper_bottom.tpl'); ?>
<?php echo $footer; ?>


Kategori açıklamasını ürün listesinin altına alma işlemini çözdüm. belki diğer arkadaşlar da faydalanırlar diye kendime cevap yazmak istedim kodlamadaki
Alıntı:<?php if ($thumb || $description) { ?>
<div class="category-info clearfix">
<?php if ($thumb) { ?>
<div class="image"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></div>
<?php } ?>
<?php if ($description) { ?>
<?php echo $description; ?>
<?php } ?>
</div>
<?php } ?>

Satırını Kesiyoruz ve
Alıntı:<script type="text/javascript"><!--
function display(view) {
bu kodun hemen üstüne alıyoruz. Hepsi bu kadar.
Alıntı Yaparak Cevapla
Paylaş!

« Önceki | Sonraki »
Cevapla  Gönder 

Kategori Açıklamasını Ürünlerin Altına Almak Konusunun Linki Direk Link
Kategori Açıklamasını Ürünlerin Altına Almak Konusunun HTML Kodu HTML Link
Kategori Açıklamasını Ürünlerin Altına Almak Konusu BBCode Linki BBCode Link
Kategori Açıklamasını Ürünlerin Altına Almak Konusunu Paylaş Sosyal Paylaş

Benzeyen Konular
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  Alt Kategori Görüntü Düzenleme EsRedist 0 774 02-27-2020 12:29 PM
Son Mesaj: EsRedist
  Ürün Detayında Kategori Adı roccmania 14 6,225 07-05-2019 02:36 PM
Son Mesaj: fyg50
  Anasayfadaki ürünlerin boyutu mdogan34 0 920 03-05-2019 07:16 PM
Son Mesaj: mdogan34
  [Eklenti] Kategori altndaki ürünler hakkında uqursen 2 1,175 11-03-2018 12:32 AM
Son Mesaj: uqursen
  opencart 2.3.x alt kategorideki ürünleri ana kategori altında gösterme csamanci 4 4,185 10-26-2018 11:36 AM
Son Mesaj: mhkomurcu
Exclamation [Mod] Kategori Açıklamasını Ürünlerin Altına Almak chichito 0 1,663 01-23-2018 11:17 AM
Son Mesaj: chichito
  kategori sayfasında ürünleri yeniden eskiye doğru sıralama secretcode 1 2,119 11-16-2017 04:46 PM
Son Mesaj: yubaka
  Alt kategori renk Düzenleme Nasıl Yaparım ? alpervb1 1 1,464 10-30-2017 01:58 PM
Son Mesaj: osdem66
  [Eklenti] Opencart 2.3.x Rastgele Kategori Ürünler Modulu e-ticaretdersleri 3 2,720 10-09-2017 11:59 AM
Son Mesaj: e-ticaretdersleri
  Kategori ve Ürün Linklerine Ekleme Hk. unganweb 0 1,377 08-13-2017 08:21 PM
Son Mesaj: unganweb

Kategori Açıklamasını Ürünlerin Altına Almak indir, Kategori Açıklamasını Ürünlerin Altına Almak Videosu, Kategori Açıklamasını Ürünlerin Altına Almak online izle, Kategori Açıklamasını Ürünlerin Altına Almak Bedava indir, Kategori Açıklamasını Ürünlerin Altına Almak Yükle, Kategori Açıklamasını Ürünlerin Altına Almak Hakkında, Kategori Açıklamasını Ürünlerin Altına Almak nedir, Kategori Açıklamasını Ürünlerin Altına Almak Free indir, Kategori Açıklamasını Ürünlerin Altına Almak oyunu, Kategori Açıklamasını Ürünlerin Altına Almak download


Forum Atla: