Whoops, yea the category.php onedashik 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!
Matt
Whoops, yea the category.php onedashik 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!
Code: Select all
It was like that when I found it, honest!
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.Qphoria wrote:1. EDIT: catalog/controller/product/category.php
2. FIND:3. AFTER, ADD:Code: Select all
'model' => $result['model'],
4. EDIT: catalog/view/....../product/category.tplCode: Select all
'meta_description' => $result['meta_description'],
5. FIND:6. AFTER, ADD: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 } ?>
Code: Select all
<?php if ($products[$j]['meta_description']) { ?> <?php echo $products[$j]['meta_description']; ?>" <?php } ?>
Opencart 1.4.9.3
Qphoria wrote:1. EDIT: catalog/controller/product/product.php
2. FIND:3. AFTER, ADD:Code: Select all
$this->document->description = $product_info['meta_description'];
4. EDIT: catalog/view/theme/YOURTHEME/template/product/product.tplCode: Select all
$this->data['meta_description'] = $product_info['meta_description'];
5. PASTE THIS WHERE YOU WANT IT:Code: Select all
<?php echo $meta_description; ?>
Live with 2.2.0.0 fully SSL.
OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods
Users browsing this forum: No registered users and 326 guests