VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: meisay on December 07, 2006, 01:03:29 AM

Title: [FIXED] "'" instead of "apostrophe" in title tags
Post by: meisay on December 07, 2006, 01:03:29 AM
Description:
"Apostrophe" in product name becomes "'" in title tags on product detail page/flypage.

VirtueMart Version:
1.0.7

Joomla/Mambo Version:
1.0.11

Steps to replicate:
1. add new product
2. type an "apostrophe" in product information -> name (ex. Jeff's Bloody Mary Mix)
3. Save
4. View new product detail page/flypage source
5. title tags = "Jeff's bloody mary mix"

Proposed fix(es):
none

System info:
System info = (Linux, Apache, php 4.3.3, mysql 3.23.58)
Title: Re: "'" instead of "apostrophe" in title tags
Post by: meisay on December 18, 2006, 20:39:18 PM
Nobody?  This is a pretty HUGE bug, terrible for search engines, and sales.
Title: Re: "'" instead of "apostrophe" in title
Post by: Soeren on December 19, 2006, 10:46:55 AM
Why didn't you report this as a bug on the bugtracker if it's so important for you?

change line 157 in shop.product_details.php

to:

$mainframe->setPageTitle( html_entity_decode( substr($product_name, 0, 60 ), ENT_QUOTES ));

That's it.
Title: Re: "'" instead of "apostrophe" in title tags
Post by: meisay on January 24, 2007, 00:26:08 AM
I didn't report a bug because I was following the instructions here: http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=21474.msg53274#msg53274 (http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=21474.msg53274#msg53274)
QuoteWhen submitting a bug report for a VirtueMart beta release, please report it in this forum before adding a task to the bug tracker.

jeeez brother! thanks for your help.
Title: Re: "'" instead of "apostrophe" in title tags
Post by: RCheesley on January 05, 2009, 00:33:14 AM
Soeren,

Was this ever fixed as I am getting this happening with 1.1.2 on my product name in the breadcrumb - everything else is fine and I just happened to notice it in passing, it's saying "Cadbury&<amp>#039;s Hot Chocolates Hot Chocolate" here: http://www.theukvendingcompany.co.uk/shop/hot-chocolate/cadburys-hot-chocolate.html
Title: Re: "&amp;#039;" instead of "apostrophe" in title tags
Post by: aravot on March 05, 2009, 20:18:41 PM
@RCheesly, that is a Joomla breadcrumb, VirtueMart has it's own breadcrumb, to enable go to Configuration -> Site (tab) -> Layout (Configuration) -> Show additional Pathway on the Product Page?
Title: Re: "&amp;#039;" instead of "apostrophe" in title tags
Post by: ledom on March 24, 2009, 17:08:36 PM
Hi aravot,

Got the same problem on virtuemart 1.1.2 with joomla 1.5.9 breadcrumb module.

The problem is that I need only one breadcrumb for all the website, and virtuemart breadcrumb does not show for the blog and other menus.

Is there any way to solve this problem with ' ?
Title: Re: [TRACKER 2547] "&amp;#039;" instead of "apostrophe" in title tags
Post by: trsander on April 15, 2009, 18:40:34 PM
I am having the same issue.  I made the code change suggested above but it just made the product breadcrumb item disappear.  Do we know when this will be corrected?
Thank you
Title: Re: [TRACKER 2547] "&amp;#039;" instead of "apostrophe" in title tags
Post by: fire2 on May 22, 2009, 18:38:09 PM
I'm using VM 1.1.3 on Joomla 1.5.10 and I'm having the same problem. I changed the suggested code above, but it only made the product name dissapear from the breadcrumb/pathway.

Any suggestion to fix this?

Thanks.
Yh
Title: Re: [TRACKER 2547] "&amp;#039;" instead of "apostrophe" in title tags
Post by: aravot on June 12, 2009, 10:06:02 AM
Fixed in 1.1.4
Title: Re: [FIXED] "&amp;#039;" instead of "apostrophe" in title tags
Post by: kIsa_camel on October 28, 2009, 16:39:50 PM
here's the breadcrumb solution for VM 1.1.3 i just did a few seconds ago :

go to line 303 or find the below lines in the file administrator/components/com_virtuemart/html/shop.product_details.php :



// Add this product's name to the pathway, with no link

$item = new stdClass();

$item->name = $product_name;

$item->link = '';

$pathway[] = $item;



change the $item->name = $product_name;  line with the below line :



$item->name = html_entity_decode( $product_name, ENT_QUOTES );



The single quote characters (or any other html encoded characters) in the product name will display correctly on your breadcrumb.

8)