VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: sysfix on October 14, 2016, 20:28:51 PM

Title: Category Title not showing yet using menu title on all
Post by: sysfix on October 14, 2016, 20:28:51 PM
I have a site that has an issue with the Title tag on category pages.

Enter the store via menu item set to category layout (tried main shopfront also) , Menu title (store)
- click on a category, and category title remains as "store"
Yet if I press F12, and go into <head>, I can see that my custom title and description that I set in VM category backend is shown as <meta name="title" content="the title i set">     yet the actual <title> tag is set to the menu title.

The meta style title tag is not really used nay more and does not set the browser title anyway. Google for instance uses the <title> tag for indexing pages and not <meta name ="title">


In any case, my page title for all categories is wrong.
Can someone help?




more info:
I use sh404sef.
I have already purged my URL's so I don't think it;s that
I'm using vm v 3.0.16 ( I cannot upgrade to .18 as I am using a template built on 16 and awaiting the update.
I have tried without my VM template (cleanmart) and the issue is the same.
I have tried renaming the "menu item" pointing to the VM category layout, clearing cache and this updates the category title to the new menu title.
Joomla version 3.5.1

As an example http://www.sysfix.co.uk/store/black-friday-deals-2016.html
I've included 2 screenshots of the issue.

Any help or pointers is greatly appreciated.








Title: Re: Category Title not showing yet using menu title on all
Post by: sysfix on October 15, 2016, 12:39:29 PM
After some digging around this morning, I have found that if you overwrite /components/com_virtuemart/views/category/view.html.php with the version from the 3.0.14 zip file, categories title tags starts to work again.

I'm not sure what functionality I've lost by replacing this file and maybe i'll run into an error further down the line but at the very least, it shows that there is some bug or incompatibility with the newer file. Perhaps a Virtuemart coder can shed some light on the differences between the 2 files and what we can do to fix this without needing to upgrade from 3.0.16 to 3.0.18 as my VM template doesnt work on .18 yet.


Thanks
Title: Re: Category Title not showing yet using menu title on all
Post by: GJC Web Design on October 15, 2016, 15:08:39 PM
I found exactly the same problem yesterday on a 3.0.18 upgrade but on any other 3.0.18 site I can't recreate it
its a live site so can't play around too much with it.. cheated and just made some Joomla menus to the cats as there is only 4

in view.html.php there are some changes in the title stuff

look from around lines 332 - search for $title
Title: Re: Category Title not showing yet using menu title on all
Post by: servlet on October 20, 2016, 22:45:45 PM
The problem exist on 3.0.16 too. J! 3.5.1.
The problem doesnt exist on 3.0.12 J! 3.5.1.
The problem doesnt exist on 3.0.18 J! 3.5.1.
3 different live sites

I can not see any difference in view.html.php

       // Set the titles
      if (!empty($category->customtitle)) {
           $title = strip_tags($category->customtitle);
        } elseif (!empty($category->category_name)) {
           $title = strip_tags($category->category_name);
      } else {
         $title = $this->setTitleByJMenu($app);
      }

I will try to update from 3.0.16 to 3.0.18
Title: Re: Category Title not showing yet using menu title on all
Post by: servlet on October 20, 2016, 23:10:28 PM
The problem was fixed with update from 3.0.16 to 3.0.18
Maybe there is a bug in 3.0.16
Title: Re: Category Title not showing yet using menu title on all
Post by: volksman3 on November 04, 2016, 18:33:20 PM
I am running VM 3.0.18 and Joomla 3.6.4 and i cannot get the category page title tag to use either the Joomla menu page title or the SEO title on the actual VM category, did anyone find a fix for this as it seams where ever i put the title i want to use it is ignored and yet i am using the latest version of everything?

Regards
Tony
Title: Re: Category Title not showing yet using menu title on all
Post by: servlet on November 04, 2016, 21:30:11 PM
My problem was fixed after update from VM 16 to VM 18
Try to reinstall VM. I dont have other ideas...
Title: Re: Category Title not showing yet using menu title on all
Post by: volksman3 on November 04, 2016, 21:35:33 PM
Can i ask what php version you are using just encase that is the issue?