News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[SOLVED] Title tag for product details

Started by v0dk4, August 01, 2013, 11:19:10 AM

Previous topic - Next topic

v0dk4

Hi,
due to SEO optimization and look, I need to change title tag templates for product details.
Currently, by default, each product detail page has the following template:

"Category name : Product Name"

- Is it possible to change the template in "Product Name" without showing the category title in product detail page?
- Is it possible to switch positions by showing first the product name and then the category name?
- Is it possible to change the separator? For example I'd prefer to use "-" instead of ":"

Which files I should modify to obtain some of those changes?
I use SEO plugin but can't get to modify this, unless I do it manually for all products.

Thanks in advance for your help,

cheers

Maxim Pishnyak

https://forum.virtuemart.net/index.php?topic=109695.msg368179#new

ALSO

you could directly write your own Title
a) either in product edit form (for each product one by one)
b) or with the help of CSVI Improved (product titles mass change)
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

v0dk4

Quote from: Maxim Pishnyak on August 01, 2013, 13:58:59 PM
https://forum.virtuemart.net/index.php?topic=109695.msg368179#new

ALSO

you could directly write your own Title
a) either in product edit form (for each product one by one)
b) or with the help of CSVI Improved (product titles mass change)

Hi,
thank you very much,
I changed some line in this file:  /components/com_virtuemart/views/productdetails/view.html.php

$document->setTitle(strip_tags(($category->category_name ? ($category->category_name . ' : ') : '') . $product->product_name));

now is

$document->setTitle(strip_tags($product->product_name));

so I'm not showing anymore category name and separator.

cheers!

d0ublezer0

Custom product title resolves your problems without a hack..