Category Title not showing yet using menu title on all

Started by sysfix, October 14, 2016, 20:28:51 PM

Previous topic - Next topic

sysfix

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.









sysfix

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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

servlet

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
Он-лайн магазин за фототапети http://mishelfoster.com

servlet

The problem was fixed with update from 3.0.16 to 3.0.18
Maybe there is a bug in 3.0.16
Он-лайн магазин за фототапети http://mishelfoster.com

volksman3

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
Parachutes are like minds, they only work when they are open!
http://www.akirastudio.co.uk

servlet

My problem was fixed after update from VM 16 to VM 18
Try to reinstall VM. I dont have other ideas...
Он-лайн магазин за фототапети http://mishelfoster.com

volksman3

Can i ask what php version you are using just encase that is the issue?
Parachutes are like minds, they only work when they are open!
http://www.akirastudio.co.uk