VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: betterlead on July 30, 2014, 20:33:04 PM

Title: How control Manufacturer page's titles
Post by: betterlead on July 30, 2014, 20:33:04 PM
I have a hard time solving a problem. All my Manufacturer page's titles have the prefix "Hem" (Which means Home in Swedish). The source code looks like this:

<head>
  <base href="http://www.tingshop.com/manufacturer/j-me" />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="title" content="Hem j-me" />
  <meta name="description" content="Vi säljer presenter, heminredning, smarta och roliga prylar som skickas hem till dig." />
  <title>Hem j-me</title>
  <link href="/manufacturer/j-me" rel="canonical" />

Isn't it possible to control the titles of the manufacturer pages? And perhaps also - the meta name="description" content ?

My site: http://www.tingshop.com (obviously)

Cheers
/Betterlead
Title: Re: How control Manufacturer page's titles
Post by: betterlead on August 06, 2014, 22:13:33 PM
No ideas? Nobody?
Title: Re: How control Manufacturer page's titles
Post by: GJC Web Design on August 07, 2014, 11:00:22 AM
the title is controlled from components/com_virtuemart/views/manufacturer/view.html.php line 59

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

in eng its COM_VIRTUEMART_MANUFACTURER_DETAILS="Manufacturer Details"

you can set a metadesc by  $document->setDescription('Your metadesc');

but you have to supply the dec somehow
Title: Re: How control Manufacturer page's titles
Post by: betterlead on August 10, 2014, 09:40:08 AM
Thanks

"you can set a metadesc by  $document->setDescription('Your metadesc');

but you have to supply the dec somehow"


Would it be possible to explain that - how to do it, an example - a bit better for an idiot like me? ;)
Title: Re: How control Manufacturer page's titles
Post by: betterlead on August 12, 2014, 09:59:12 AM
Again,,, I still haven't found any good answer to this. Sure, it can't only be me, having this problem?

Do you have any idea, what controls the manufacturer's <title> ?

I'd like to get rid of the prefix, before the name. I have engaged some people, but so far nobody has found out what, why and how.

Example:

http://www.tingshop.com/alla-vara-varumaerken/manufacturer/j-me

Then "View source" and see the titles. In front of j-me, is "Våra varumärken".

——————————
<base href="http://www.tingshop.com/alla-vara-varumaerken/manufacturer/j-me" />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="keywords" content="presenter, heminredning" />
  <meta name="title" content="Våra varumärken j-me" />
  <meta name="description" content="Vi säljer presenter, heminredning, smarta och roliga prylar som skickas hem till dig." />
  <title>Våra varumärken j-me</title>
——————————

I'd like nothing in front of j-me. So, do you have any clue?

This is because i suspect Google doesn't like "Our brands". Or anyway, it's probably not good for the indexing of a site.

Cheers
/Betterlead
Title: Re: How control Manufacturer page's titles
Post by: GJC Web Design on August 12, 2014, 12:28:08 PM
I explained exactly above where the title for manu is formed!
It is now for you to do some research on your particular site...

if that isn't the code you have then you have an old version .. u never bothered to mention version etc in your posts
Title: Re: How control Manufacturer page's titles
Post by: betterlead on August 13, 2014, 09:30:12 AM
Sorry GJC, mea culpa. Didn't mean to be disrespectful in any way. I'll try to do some more "research" on my own.
Is it standard/default in Virtuemart, the so called "Home page" or "Front page" title in the menu, becomes a prefix for the manu? (I don't know if I put that right...)

VirtueMart 2.6.6 - Joomla 2.5.22
Title: Re: How control Manufacturer page's titles
Post by: GJC Web Design on August 13, 2014, 10:17:46 AM
Well - you lost me - intially you asked about manu html titles - now your talking about menus - I really don't know what you want - sorry
Title: Re: How control Manufacturer page's titles
Post by: betterlead on August 17, 2014, 12:14:35 PM
In front of every manu name or title, is 'Hem'. It's the same as 'Home' in English. I don't know how to be clearer. I have attached an image too.

[attachment cleanup by admin]
Title: Re: How control Manufacturer page's titles
Post by: GJC Web Design on August 17, 2014, 20:04:24 PM
then your answer is here:

Quotethe title is controlled from components/com_virtuemart/views/manufacturer/view.html.php line 59

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

in eng its COM_VIRTUEMART_MANUFACTURER_DETAILS="Manufacturer Details"

that is what exactly sets the manu html title

dig in your site - echo out what those vars are... check what COM_VIRTUEMART_MANUFACTURER_DETAILS is

if they are all correct then further digging is required - by you or someone else..