VirtueMart Dev/Coding Central: VM1 (old version) > Development Projects, Modifications, Hacks & Tweaks. VM1.1
PATCH: Use custom category title on productdetails view if set
(1/1)
sam-m:
I had the problem that the custom page title for a category was not shown on the productdetails view, so I would like to ask you to include this small change in your next release:
file components/com_virtuemart/views/productdetails/view.html.php
--- Code: ---if ($product->customtitle) {
$document->setTitle(strip_tags($product->customtitle));
} else {
$document->setTitle(strip_tags(($category->category_name ? ($category->category_name . ' : ') : '') . $product->product_name));
}
--- End code ---
change to
--- Code: ---if ($product->customtitle) {
$document->setTitle(strip_tags($product->customtitle));
} else if ($category->customtitle){
$document->setTitle(strip_tags(($category->customtitle ? ($category->customtitle . ' : ') : '') . $product->product_name));
} else {
$document->setTitle(strip_tags(($category->category_name ? ($category->category_name . ' : ') : '') . $product->product_name));
}
--- End code ---
Navigation
[0] Message Index
Go to full version