Post by moggiex » Sun Nov 15, 2009 11:11 pm

dashik wrote:Ok i figured it out! The problem was that the changes needed to be made to the category.php controller, not product.php

Everything looks good now, thanks! ;D
Whoops, yea the category.php one :D

Matt

Code: Select all

It was like that when I found it, honest!


User avatar
Active Member

Posts

Joined
Mon Nov 09, 2009 9:55 pm

Post by dashik » Mon Nov 16, 2009 12:43 am

LOL...thanks for that. Definitely much cleaner.

New member

Posts

Joined
Fri Jul 31, 2009 8:10 pm

Post by trapson » Tue Feb 22, 2011 9:17 pm

Qphoria wrote:1. EDIT: catalog/controller/product/category.php

2. FIND:

Code: Select all

'model'   => $result['model'],
3. AFTER, ADD:

Code: Select all

'meta_description'   => $result['meta_description'],
4. EDIT: catalog/view/....../product/category.tpl

5. FIND:

Code: Select all

<?php if ($products[$j]['rating']) { ?>
        <img src="catalog/view/theme/default/image/stars_<?php echo $products[$j]['rating'] . '.png'; ?>" alt="<?php echo $products[$j]['stars']; ?>" />
<?php } ?>
6. AFTER, ADD:

Code: Select all

<?php if ($products[$j]['meta_description']) { ?>
        <?php echo $products[$j]['meta_description']; ?>"
<?php } ?>
I wanted to do this with my own site but cannot find the line stated in step 1 so i will not try any further before i wreck it.

Opencart 1.4.9.3


New member

Posts

Joined
Fri Sep 24, 2010 7:10 pm

Post by tjsystems » Fri Mar 22, 2013 2:57 am

Is there a vqMod for this, does anybody know?

I'm using it in my theme and don't want to change the system files.
Thnx,
Tim

Qphoria wrote:1. EDIT: catalog/controller/product/product.php

2. FIND:

Code: Select all

$this->document->description = $product_info['meta_description'];
3. AFTER, ADD:

Code: Select all

$this->data['meta_description'] = $product_info['meta_description'];
4. EDIT: catalog/view/theme/YOURTHEME/template/product/product.tpl

5. PASTE THIS WHERE YOU WANT IT:

Code: Select all

<?php echo $meta_description; ?>

Live with 2.2.0.0 fully SSL.


Active Member

Posts

Joined
Sun Aug 26, 2012 5:39 pm
Location - NL, Amsterdam

Post by DbIMKA » Tue May 07, 2013 4:16 am

Hello,

Could you please help me? I would like to use "Meta Tag Description" as additional description field (pop-up text) for the products on a home page in a "Featured" module. So, for every featured product I could display the Meta Tag Description content, which I would set in a product info in the admin panel. I am working with OpenCart 1.5.2.1

Thank you very much!

Newbie

Posts

Joined
Tue May 07, 2013 4:12 am

Post by ThePath » Tue Dec 03, 2013 11:49 pm

Hi everyone,

I know this is an ancient thread but I wanted to do this on a new site using v1.5.6

So I made a vqmod that you can download for free here:

http://the1path.com/opencart-themes-mod ... escription

Hope you find it useful!

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by tjsystems » Mon Jan 26, 2015 10:44 pm

Any body with a idea how to get this to work in OC2??

Live with 2.2.0.0 fully SSL.


Active Member

Posts

Joined
Sun Aug 26, 2012 5:39 pm
Location - NL, Amsterdam
Who is online

Users browsing this forum: No registered users and 24 guests