I too like it simple and clear, I was a litle frustrated by the fact that my page titles where the cat or product names, and since I cant have massive names for these I was really sratching around
...but now im so happy !!!
Thanks again
Opencart age = 5 months (standing up now and falling down occasionally)
Activly telling everyone about OC = 4.5 months
V 1.5.1
works great for me using 1.1.5.3JAY6390 wrote:OpenfindCode: Select all
/catalog/controller/product/product.php
change toCode: Select all
$this->document->title = $product_info['name'];
(assuming you have made Q's change in the second post)Code: Select all
$this->document->title = $product_info['name'] . ' - ' . $product_info['manufacturer'];
Baju Muslim Baju Pria Baju Anak Baju Korea Sparepart Printer Baju Muslim JNE Surabaya
in catalog/controller/product/product.php find:
Code: Select all
$this->document->setTitle($product_info['name']);
Code: Select all
if (isset($product_info['manufacturer'])) {
$this->document->setTitle('YOURDOMAIN.XYZ - '. $product_info['name'] . ' od ' . $product_info['manufacturer']);
}
else
{
$this->document->setTitle('YOURDOMAIN.XYZ - '. $product_info['name']);
}
Code: Select all
$this->document->setTitle($category_info['name']);
Code: Select all
$this->document->setTitle('YOURDOMAIN.XYZ - ' . $category_info['name']);
Ups, my bad... You're absolutely right. It shoud be a catalog/controller/product/category.php(previous post fixed)Ailu wrote:Thanks, this really helps me! But I couldn't find the code in the category.php you mention - did you perhaps mean catalog\controller\product\category.php?
This modification is only for OC v1.5.1.3. All other modifications in previous posts didn't work for me.Ailu wrote:@mogwaycz: Weird too, I did the changes you posted, but no change in the page title. I even deleted the cache. Odd. Anyone have ideas?
Open header.tpl and change the title tag with code bellow:
Code: Select all
<title><?php echo $title; ?><?php if(!isset($this->request->get['route']) || $this->request->get['route'] == 'common/home') { echo " - " . $this->config->get('config_title'); } ?></title>
http://www.jackwdavis.com/2012/02/17/cr ... ory-pages/
It will show you how to do what your asking for!
Cheers,
Jack
Destrove is a professional Web Development, SEO, Marketing and eCommerce company based in Lincoln, UK that specialises in OpenCart Development.
http://www.destrove.com
We now offer a specialised OpenCart Web Hosting Service at great rates, hosting clients get discounted OpenCart Development! http://www.destrove.com/services/opencart-web-hosting
JackDavis wrote:I've written a blog post on creating SEO friendly page titles for category and product pages which you guys might find useful? The link is:
http://www.jackwdavis.com/2012/02/17/cr ... ory-pages/
It will show you how to do what your asking for!
Cheers,
Jack
Using OC v1.5.4.1 with Evisu Theme
Code: Select all
$title
I think I need a little help here too
In catalog/language/english/product/product.php, and in my second language (french), I added this line:
Code: Select all
$_['seo-title'] = 'CCG, Minis, Games, Supplies | Carta Magica Store'
Code: Select all
$this->document->setTitle($product_info['name']);
Code: Select all
$this->document->setTitle($product_info['name'].' | '. $seo-title);
Try this:josee225 wrote: In catalog/language/english/product/product.php, and in my second language (french), I added this line:Code: Select all
$_['seo-title'] = 'CCG, Minis, Games, Supplies | Carta Magica Store'
Code: Select all
$this->document->setTitle($product_info['name'].' | '. $seo-title);
Code: Select all
$this->document->setTitle($product_info['name'] . ' | ' . $this->language->get('seo-title'));
I must be really dense.... I did what you said, changed the controller, even noticed I was missing the ; at the end of my new line in language file, fixed it, cleared my vqmod cache, and still nothing changes...qahar wrote:Try this:josee225 wrote: In catalog/language/english/product/product.php, and in my second language (french), I added this line:Code: Select all
$_['seo-title'] = 'CCG, Minis, Games, Supplies | Carta Magica Store'
Code: Select all
$this->document->setTitle($product_info['name'].' | '. $seo-title);
Code: Select all
$this->document->setTitle($product_info['name'] . ' | ' . $this->language->get('seo-title'));
So since I would like this same seo-title all over, I added the $seo-title in my header language files, and then went into my header controller, added:
Code: Select all
$this->language->get('seo-title');
Code: Select all
$this->data['title'] = $this->document->getTitle();
Code: Select all
<title><?php echo $title; ?></title>
Code: Select all
<title><?php echo $title; ?> | <?php echo $seo-title></title>
I am trying different versions of the breadcrumbs but I keep on getting the route URL instead...
Mind you I am using n RTL version of OC 1.5.0
Maybe someone has ran into this issue....
Thank you...
http://nwg.co.il/
“Compassion is the basis of morality.”
― Arthur Schopenhauer
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
Users browsing this forum: No registered users and 26 guests