Post by d77 » Sun Sep 23, 2007 6:35 am

couldn't find an option to do this, so i coded it myself:

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


User avatar
d77
Active Member

Posts

Joined
Sat Apr 14, 2007 8:04 am

Post by 3806 » Sat Dec 15, 2007 12:42 am

How to make display product model on homepage below product name ?
Last edited by 3806 on Sat Dec 15, 2007 2:12 am, edited 1 time in total.

New member

Posts

Joined
Sat Nov 24, 2007 11:20 pm
Location - Ukraine

Post by Bebe » Sat Dec 15, 2007 1:56 pm

Excellent! Thank you this is working on my opencart ver .0.7.7 very nicely.

Newbie

Posts

Joined
Sat Nov 10, 2007 9:34 pm
Who is online

Users browsing this forum: No registered users and 2 guests