debreli
OpenCart-TR
catalog/controller/product/product.php aç
bul
Kod:
$this->data['text_tags'] = $this->language->get('text_tags');
sonrasına ekle
Kod:
$this->data['text_prev'] = $this->language->get('text_prev');
$this->data['text_next'] = $this->language->get('text_next');
bul
Kod:
$this->data['heading_title'] = $product_info['name'];
sonrasına ekle
Kod:
$rsNext = $this->model_catalog_product->getProduct($product_id+1);
$rsLast = $this->model_catalog_product->getProduct($product_id-1);
if($rsNext):
$this->data['next_url'] = $this->url->link('product/product', 'product_id=' . $rsNext['product_id']);
$this->data['next_text']= $rsNext['name']."";
$this->data['next_image'] = "image/".$rsNext['image'];
else:
$this->data['next_url'] = '';
$this->data['next_text']= '';
$this->data['next_image']= '';
endif;
if($rsLast):
$this->data['prev_url'] = $this->url->link('product/product', 'product_id=' . $rsLast['product_id']);
$this->data['prev_text']= "".$rsLast['name'];
$this->data['prev_image'] ="image/".$rsLast['image'];
else:
$this->data['prev_url'] = '';
$this->data['prev_text']= null;
$this->data['prev_image']= '';
endif;
catalog/language/turkish/product/product.php
bul
Kod:
$_['text_tags'] = 'Etiketler:';
sonrasına ekle
Kod:
$_['text_prev'] = '<< Önceki Ürün';
$_['text_next'] = 'Sonraki Ürün >>';
catalog/view/theme/default/template/product/product.tpl aç
bul
Kod:
<!-- AddThis Button END -->
</div>
</div>
<?php } ?>
sonrasına ekle
Kod:
<div class="review"><div class="product-info">
<div class="left"> <center><?php if ($prev_url) { ?><a href="<?php echo $prev_url; ?>" title="<?php echo $prev_text; ?>"><img src="<?php echo $prev_image;?>" style="width:38px;"></a><br />
<a href="<?php echo $prev_url; ?>"><?php echo $text_prev; ?></a><?php } else { ?><?php } ?> </center></div>
<div class="right">
<center><?php if ($next_url) { ?><a href="<?php echo $next_url; ?>" title="<?php echo $next_text; ?>"><img src="<?php echo $next_image;?>" style="width:38px;"></a><br />
<a href="<?php echo $next_url; ?>"><?php echo $text_next; ?></a><?php } else { ?><?php } ?></center></div>
</div></div>