VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: betterlead on March 21, 2016, 19:01:52 PM

Title: Change Page Title for Individual Manufacturer
Post by: betterlead on March 21, 2016, 19:01:52 PM
I have received a SEO report of my site and it says I should worry about the Manufacturer page's titles. Manufacturer Sef Alias I can of course play with, but what about the Page Title?
Is there any way? Is it in some way depending on the menu item?

I am rather ignorant regarding advanced coding... Simpler thing I might manage...

Cheers
/Betterlead

My site: http://livingstudio.se

I should perhaps add, I use VMuikit extension and the middle step to the manufacturer details page is skipped. Or one could say, merged, with the product list of the manufacturer. Also, the possibility of adding meta description here, would be good.

Btw, would it be an option to construct the manufacturer pages incl their products as product categories?
Title: Re: Change Page Title for Individual Manufacturer
Post by: Studio 42 on March 22, 2016, 00:23:15 AM
Hi,
VM already use in manufacturer page
$document->setTitle(vmText::_('COM_VIRTUEMART_MANUFACTURER_DETAILS').' '.strip_tags($manufacturer->mf_name));
So what is your page having this problem ?
Title: Re: Change Page Title for Individual Manufacturer
Post by: betterlead on March 22, 2016, 09:54:51 AM
A title of a Manufacturer Page could, for better SEO, contain more information than just the Brand name. A short description in it.
And as I wrote, it would also help if one could fit in a Meta Description too.
Title: Re: Change Page Title for Individual Manufacturer
Post by: kratzi on May 04, 2016, 12:34:45 PM
Hi,

yes true.

You can not set a manufacturer title nor a manufacturer meta description to a manufacturer.

I am also looking for a solution for that. At the moment the manufacturer title is 'Home- "Brand" ' so basically not saying anything.
And no possibility to set a meta description at all.

Hope someone knows a solution for this...

Regards
Kratzi

VM 3.4.8 J 3.0.12
Title: Re: Change Page Title for Individual Manufacturer
Post by: Studio 42 on May 05, 2016, 01:08:38 AM
You can use this code
$document->setTitle(strip_tags($manufacturer->mf_name));
Or any other field in your template overides
Title: Re: Change Page Title for Individual Manufacturer
Post by: kratzi on May 12, 2016, 18:14:45 PM
Thank you Studio42. Could you please assist me a little more.

What would be the proper code to implement f.e. manufacturer url as title and manufacturer description as meta description.

Thank you

kratzi
Title: Re: Change Page Title for Individual Manufacturer
Post by: Studio 42 on May 13, 2016, 00:33:10 AM
$document->setTitle(strip_tags($manufacturer->mf_url));  for url
$document->setDescription(strip_tags($manufacturer->mf_desc));  for description
$manufacturer->mf_mail for meta description is perhaps a beter choice ? I never use mf emails and now validation fitler are applied for this, so it work good for meta description(but is a limited in size).

And yes, i think some fields are missing in manufacturer, this can be quick done, but need that team want add the missing field.
Title: Re: Change Page Title for Individual Manufacturer
Post by: kratzi on May 13, 2016, 19:42:58 PM
Hi unfortunately I still have no luck with this.

I have updated the code in components/com_virtuemart/views/manufacturer/view.html.php

Is this file correct for this purpose. When I override line 59 and 76 with $document->setTitle(strip_tags($manufacturer->mf_url));
VM will still not show the URL field as title.

Thank you

kratzi
Title: Re: Change Page Title for Individual Manufacturer
Post by: Studio 42 on May 14, 2016, 03:47:31 AM
Check if you have an override in your template.
Title: Re: Change Page Title for Individual Manufacturer
Post by: kratzi on May 14, 2016, 17:52:35 PM
Is components/com_virtuemart/views/manufacturer/view.html.php the correct file to do the changes in.

How could I possibly have an override of this file?

Title: Re: Change Page Title for Individual Manufacturer
Post by: Studio 42 on May 15, 2016, 00:33:53 AM
DO NOT MODIFY IT
Quote from: kratzi on May 14, 2016, 17:52:35 PM
Is components/com_virtuemart/views/manufacturer/view.html.php the correct file to do the changes in.

How could I possibly have an override of this file?


BUt at this in your components/com_virtuemart/views/manufacturer/tmpl/XXX.php file or best overide the file you need to change in your template
Title: Re: Change Page Title for Individual Manufacturer
Post by: Milbo on May 31, 2016, 10:56:26 AM
Please test the last version http://dev.virtuemart.net/attachments/download/1005/com_virtuemart.3.0.17_extract_first.zip

There is the feature to set a title for manufacturers, maybe that helps you already.
Title: Re: Change Page Title for Individual Manufacturer
Post by: betterlead on May 31, 2016, 11:17:07 AM
Danke! :)
Title: Re: Change Page Title for Individual Manufacturer
Post by: betterlead on May 31, 2016, 21:30:47 PM
Quote from: Milbo on May 31, 2016, 10:56:26 AM
Please test the last version http://dev.virtuemart.net/attachments/download/1005/com_virtuemart.3.0.17_extract_first.zip

There is the feature to set a title for manufacturers, maybe that helps you already.

Sorry, still not working. But as I wrote to you before and tested, nope.
Anyway, I now use the splendid extension EFSEO by Viktor @ Kubik-Rubik.
https://joomla-extensions.kubik-rubik.de/efseo-easy-frontend-seo

Cheers
/Dodo
Title: Re: Change Page Title for Individual Manufacturer
Post by: Studio 42 on May 31, 2016, 22:08:56 PM
QuoteAnyway, I now use the splendid extension EFSEO by Viktor @ Kubik-Rubik.
Check that such plugin not slowdown to many your website and that it's really needed. you can loose some seconds on using to many (system and content) plugins
Title: Re: Change Page Title for Individual Manufacturer
Post by: betterlead on June 01, 2016, 08:52:10 AM
Hi,
I didn't think of that, at all. Have to check. Inspect page and "Network" tab?

Thanks
/D
Title: Re: Change Page Title for Individual Manufacturer
Post by: Jumbo! on June 01, 2016, 17:14:40 PM
If you are referring to individual manufacturer details page then it already does the same.

You can also see the codes in - components/com_virtuemart/views/manufacturer/view.html.php

At line number 59

$document->setTitle(vmText::_('COM_VIRTUEMART_MANUFACTURER_DETAILS').' '.strip_tags($manufacturer->mf_name));
Title: Re: Change Page Title for Individual Manufacturer
Post by: betterlead on June 01, 2016, 18:09:22 PM
Hi Jumbo
Thanks

No, I want to give every product Details Page its own specific Page Title. I have noticed, that it's most important to have a good "SEO:ized" site. It really gives good result in Google ranking. Slowly (Well actually faster than I thought) all my products are getting higher ranking after giving them more "personal" page titles. Viktor's EFSEO tool makes that job easier than doing it other was. So far, as I know. But on the other hand, I don't know very much.. ;)

Edit: Sorry. This thread is a bit old and I didn't remember, before checking, what I was asking for initially. Weird. So many balls in the air right now...
I elaborated too much.
Title: Re: Change Page Title for Individual Manufacturer
Post by: Studio 42 on June 01, 2016, 21:18:30 PM
Thread is interesting, i had another problem, i needed to order manufacture by name(artist), but name is first name+Last name and i use Last Name+First Name for the list order.
So i used email field for ordering to display the list.
So yes, i agree with you that adding some fields in manufacturer  can be useful for some shops(music,video,photo,books...).
Title: Re: Change Page Title for Individual Manufacturer
Post by: Milbo on June 01, 2016, 21:47:38 PM
I wonder if it makes sense to be able to setup the title by values like {Manufactuer_name}{product_name}. Configurable by the Itemid. I know that some set the titel in the layout themself.
Title: Re: Change Page Title for Individual Manufacturer
Post by: Milbo on June 01, 2016, 21:51:58 PM
Quote from: Jumbo! on June 01, 2016, 17:14:40 PM
If you are referring to individual manufacturer details page then it already does the same.

You can also see the codes in - components/com_virtuemart/views/manufacturer/view.html.php

At line number 59

$document->setTitle(vmText::_('COM_VIRTUEMART_MANUFACTURER_DETAILS').' '.strip_tags($manufacturer->mf_name));

Btw, payed by membership, the manufacturer metatags
Title: Re: Change Page Title for Individual Manufacturer
Post by: betterlead on June 02, 2016, 19:27:33 PM
Quote from: Milbo on June 01, 2016, 21:51:58 PM
Quote from: Jumbo! on June 01, 2016, 17:14:40 PM
If you are referring to individual manufacturer details page then it already does the same.

You can also see the codes in - components/com_virtuemart/views/manufacturer/view.html.php

At line number 59

$document->setTitle(vmText::_('COM_VIRTUEMART_MANUFACTURER_DETAILS').' '.strip_tags($manufacturer->mf_name));

Btw, payed by membership, the manufacturer metatags
By me? ;)

Skickat från min LG-H815 via Tapatalk

Title: Re: Change Page Title for Individual Manufacturer
Post by: Milbo on June 02, 2016, 22:46:37 PM
Ehrm, yes (I know you by your other name). I wondered that you did not kick me again per skype. But I did not understand that you meant it for productdetails. My idea above would work then for any page titles, which use this code mentioned by Jumbo. So you would just enter in the productdetails your title, or hmm a common vm config would be enough, or?
Title: Re: Change Page Title for Individual Manufacturer
Post by: betterlead on June 02, 2016, 23:01:01 PM
Mea culpa. I was not clear enough... Yeah, mainly I was asking for the possibility to edit the <meta name="description" content=" and  <title>
Title: Re: Change Page Title for Individual Manufacturer
Post by: betterlead on June 02, 2016, 23:35:44 PM
Screenshot explaining.
Title: Re: Change Page Title for Individual Manufacturer
Post by: lindapowers on June 03, 2016, 09:05:37 AM
Quote from: betterlead on June 02, 2016, 23:35:44 PM
Screenshot explaining.

I don't know if you are talking about manufacturer or product details anymore,

That screenshot is not correct, the meta information is working perfectly for products, we use custom page title and meta description per product and they are showing in the code.
Title: Re: Change Page Title for Individual Manufacturer
Post by: Studio 42 on June 03, 2016, 10:43:40 AM
I think, he want meta tag  for manufacturer too
Title: Re: Change Page Title for Individual Manufacturer
Post by: GJC Web Design on June 03, 2016, 20:24:19 PM
There is indeed some confusion as to what people are calling a manufacturers page.. I did some work for Kratzi on this and what he was calling a Man page is actually a normal cat page filtered by man id

e.g. index.php?Itemid=101&option=com_virtuemart&limitstart=0&limit=int&virtuemart_manufacturer_id=37&view=category&virtuemart_category_id=0

the html title is pretty dismal on this page -- just the manu. title and no meta desc at all

used this as a work around .. after filling the Nan desc and email etc.. any combination could be used
code in the html\com_virtuemart\category\default.php

$jinput = JFactory::getApplication()->input;
$virtuemart_manufacturer_id = $jinput->get('virtuemart_manufacturer_id');
if($virtuemart_manufacturer_id > 0){
$document = JFactory::getDocument();
$document->setTitle(strip_tags($this->products[0]->mf_name).' : '.strip_tags($this->products[0]->mf_email).' : '.strip_tags($this->products[0]->mf_desc));
$document->setDescription(strip_tags($this->products[0]->mf_email).' : '.strip_tags($this->products[0]->mf_desc));
}