Post by dunn123 » Fri Feb 08, 2013 11:15 pm

I am trying to add an new variable in the the product page that pulls in information from a new field the manufacturers tables.

I have created a new field manufacturer_desc and wish to show this underneath the description on the product page.

the idea being each product has the manufacturers desction they are assigned to. But I keep geeting and undefined variable error.

I have added this line to the product.pho file
$this->data['manufacturer_desc'] = $product_info['manufacturer_desc'];

And this to the product.tpl file
<?php if ($manufacturer) { ?>
<?php echo $manufacturer_desc; ?>
<?php } ?>

Anyone any ideas how i can resolve this.
thanks
chris

New member

Posts

Joined
Wed Mar 02, 2011 7:40 pm

Post by justcurious » Sat Feb 09, 2013 5:03 pm

You need to edit the model file to make sure that it is fetching the manufacturer_desc data from the database and putting it into the $product_info array

Google Product Feed - Get your products into Google Shopping. Includes a bulk update facility.
Backup Pro - Backup (on demand or scheduled), Restore and Clone your store.
Freestyle Box - Add multiple information boxes on multiple pages of your store. Includes optional "Code Mode".
View my other extensions


User avatar
Active Member

Posts

Joined
Sat Dec 24, 2011 4:36 pm
Location - UK
Who is online

Users browsing this forum: Bing [Bot] and 22 guests