News:

Looking for documentation? Take a look on our wiki

Main Menu

"Custom Page Title" is not working well

Started by lecaro, August 31, 2015, 14:20:20 PM

Previous topic - Next topic

lecaro

Thanks for reading

If I put a title for a product in backend it works well
http://ndureinspiredapparel.com/women/no-pain-is-infinite-womens-tri-blend-racerback-tank-red-detail

but when I put it to a category it not is becoming well the title
http://ndureinspiredapparel.com/ndurefit-women-s-apparel

I checked in the database and for products it is well written, but the categories are special characters.

I have reviewed a lot of virtuemart code and can not find the problem, I'm desperate, please help

??? sorry for my english

Studio 42

You use a converted special char.
in product you have this code :
$document->setTitle(strip_tags(html_entity_decode($product->customtitle,ENT_QUOTES)));
but in category file ROOTSITE\components\com_virtuemart\views\category\view.html.php you have :
$document->setTitle( $title );
and strip_tags, only in some case.
replace this code to :
$document->setTitle( html_entity_decode($title,ENT_QUOTES) );
But the string filtering before can be the cause.

Ideal is to filter the final string and removing all string filtering before, doing as in product details page.

lecaro

Quote from: Studio 42 on August 31, 2015, 16:31:44 PM
You use a converted special char.
in product you have this code :
$document->setTitle(strip_tags(html_entity_decode($product->customtitle,ENT_QUOTES)));
but in category file ROOTSITE\components\com_virtuemart\views\category\view.html.php you have :
$document->setTitle( $title );
and strip_tags, only in some case.
replace this code to :
$document->setTitle( html_entity_decode($title,ENT_QUOTES) );
But the string filtering before can be the cause.

Ideal is to filter the final string and removing all string filtering before, doing as in product details page.


thank you very much!!!!!!!! Perfect!!!!!!!!! thanks!!! thanks!!! thanks!!! you're the best! ;)