A little more complicated...
I set the title and meta data on the admin page (or in the import file) for all of my categories, products and static pages. This took care of all the pages that I use (don't use manufacturer) except for some of the help pages, cart pages and other buyer account pages. So I came up with a mod for them. Then I realized that the mod took care of the category, product and static page titles as I'd input them.. individually, painstakingly, input each and every one within the import file or admin page. Oh well
What the mod does: it strips out any string of categories or help zone layers so that only the last one is in the title, with the domain name first. Supposedly this is good for SEO - short and sweet. These:
Home :: Help Zone :: Contact Us
Home :: Profile Details :: Checkout
Home :: Large Widgets :: Red Widgets :: Older Widgets :: Refurbed Widgets
Home :: Large Widgets :: Red Widgets :: Older Widgets :: Refurbed Widgets :: Widget 228
Become these:
YourDomainName - Contact Us
YourDomainName - Checkout
YourDomainName - Refurbed Widgets
YourDomainName - Widget 228
Large segments of code are shown below (for reference), but only the
bolded parts need be exchanged. And be sure to use your actual domain name in place of
"Your Domain Name".
Original code (from function.get_title.php file, about line 120~):
Code:
// Title based on bread crumbs
$location = $smarty->_tpl_vars['location'];
$tmp = array();
if ($config['SEO']['page_title_format'] != 'A')
$location = array_reverse($location);
foreach ($location as $v) {
$tmp[] = $v[0];
}
$title = str_replace(array("\n", "\r"), array('', ''), trim(implode(' :: ', $tmp)));
}
// truncate
$title = str_replace(" ", " ", $title);
if (strlen($title) > $config['SEO']['page_title_limit'] && $config['SEO']['page_title_limit'] > 0) {
$title = func_truncate($title, $config['SEO']['page_title_limit']);
}
// escape
Modded code:
Code:
// Title based on bread crumbs
$location = $smarty->_tpl_vars['location'];
$tmp = array();
if ($config['SEO']['page_title_format'] != 'A')
$location = array_reverse($location);
foreach ($location as $v) {
$tmp[] = $v[0];
}
$title = end($tmp);
// truncate
$title = str_replace(" ", " ", $title);
if ($title == 'Home') {
$title = str_replace("Home", "Your Domain Name", $title); } else {
$title = 'Your Domain Name - ' . trim($title);
}
}
if (strlen($title) > $config['SEO']['page_title_limit'] && $config['SEO']['page_title_limit'] > 0) {
$title = func_truncate($title, $config['SEO']['page_title_limit']);
}
// escape
Or you can wait on the xcart patch and hope for the best. This one I don't want nor need, but a patch for OPC and the address book.. now THAT I need!
