Code: Select all
opencart - display model on product page
----------------------------------------
displays the product's model number beneath the product description
tested to work with opencart 0.7.6.1.
installation
------------
** #1
open existing "product.php" from:
<install dir>\catalog\product.php
below line:
$view->set('product_id', $request->get('product_id'));
insert new line:
$view->set('model', $product_info['model']);
** #2
open existing "product.tpl" from:
<install dir>\catalog\template\<template name>\content\product.tpl
below line:
<?php echo $description; ?>
insert new line:
<?php if($model) { echo $model; } ?>
todo
----
- prefix the value with something like "Model No: " and support this in the language file
- add the option to enable/disable this feature in the admin settings page