Post by vlknn » Tue May 24, 2011 5:57 pm

Open catalog/controller/product/product.php

Find

Code: Select all

$this->document->keywords = $product_info['meta_keywords'];
Add before

Code: Select all

				$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->model_tool_seo_url->rewrite(HTTPS_SERVER .'index.php?route=product/product&product_id=' . $rsNext['product_id']);
					$this->data['next_text']= $rsNext['name']." >>";
				else:
					$this->data['next_url'] = '';
					$this->data['next_text']= '';
				endif;

				if($rsLast):
					$this->data['prev_url'] = $this->model_tool_seo_url->rewrite(HTTPS_SERVER .'index.php?route=product/product&product_id=' . $rsLast['product_id']);
					$this->data['prev_text']= "<< ".$rsLast['name'];
				else:
					$this->data['prev_url'] = '';
					$this->data['prev_text']= null;
				endif;
Open catalog/view/theme/default/template/product/product.tpl

Add where ever you want

Code: Select all

<a href="<?php echo $prev_url; ?>"><?php echo $prev_text;  ?></a>
<a href="<?php echo $next_url; ?>"><?php echo $next_text;?></a>
This method shown as Product Names. If you want to write Next & Previous;

Open catalog/controller/product/product.php

Find

Code: Select all

$this->data['text_tags'] = $this->language->get('text_tags');
Add after

Code: Select all

$this->data['text_onceki'] = $this->language->get('text_previous');
$this->data['text_sonraki'] = $this->language->get('text_next');
Open catalog/language/turkish/product/product.php

Find

Code: Select all

$_['text_minimum']        = '(Bu ürünü satın almak için asgari miktar: %s)';
Add after

Code: Select all

$_['text_onceki']        = 'Previous Product';
$_['text_sonraki']        = 'Next Product';
Open catalog/view/theme/default/templates/pruduct/product.tpl

Add where ever you want

Code: Select all

<a href="<?php echo $prev_url; ?>"><?php echo $text_previous; ?></a>
<a href="<?php echo $next_url; ?>"><?php echo $next_next;?></a>

Newbie

Posts

Joined
Tue May 24, 2011 4:13 pm

Post by vlknn » Tue May 24, 2011 6:46 pm

İs there any body who can modify this module as Related Products ?

this version is about all products, when a customer click the link she can jump another different category. It is a mistake.
it should work only related products.

thanks.

Newbie

Posts

Joined
Tue May 24, 2011 4:13 pm
Who is online

Users browsing this forum: No registered users and 1 guest