Different product templates in Opencart

Copy the product.tpl file and adjust to what you want.

Now presuming the product_id of this item is always going to be the same, what you can do is this…

In the controller\product\product.php file, find this:

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/product.tpl')) {
$this->template = $this->config->get('config_template') . '/template/product/product.tpl';
} else {
$this->template = 'default/template/product/product.tpl';
}

and change it to something like this

if($this->request->get['product_id'] == '123') {  // If ID matches this, use this new template
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/product_new.tpl')) {
$this->template = $this->config->get('config_template') . '/template/product/product_new.tpl';
} else {
$this->template = 'default/template/product/product.tpl';
}
} else {  // If not, use standard
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/product.tpl')) {
$this->template = $this->config->get('config_template') . '/template/product/product.tpl';
} else {
$this->template = 'default/template/product/product.tpl';
}
}

______________________________________________

If you want 4 different product templates:

 

if($this->request->get['product_id'] == '1') {
// show template 1
} else if($this->request->get['product_id'] == '2') {
// show template 2
} else if($this->request->get['product_id'] == '3') {
// show template 3
} else if($this->request->get['product_id'] == '4') {
// show template 4
} else {
// show default template
}

 

Source: http://forum.opencart.com/viewtopic.php?t=31895