Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Meta description not stripping quotation marks
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: Meta description not stripping quotation marks

Meta description not stripping quotation marks 15 years, 1 month ago #8306

My ORDER ID (order number) is 00005856.

I noticed a bug within JoomSEF (maybe only within Virtuemart extension - cannot confirm) - with the meta description generation. If you have a product, that has double quotation marks in the product short description, the generated meta description (if it is generated from the short description - this is configured in the plugin) doesn't strip the double quotation marks - ". This is a problem for the search bots, because they think, that the meta description ends earlier than it really does.

Example of a generated meta description:
<meta name="description" content="Telecamera  Speed Dome YOKO 1/4" CL 22x (ICR), zoom ottico fino 22x, zoom digitale fino 16x,con una risoluzione di 470 TVL ed il 1/4" Color Sony EX-View HAD (Hi-Res.) è una delle speed dome notturne per uso interno." />

Now, Google sees this page like this:
<meta name="description" content="Telecamera  Speed Dome YOKO 1/4" />


Basically it cuts off everything that is behind the ".

Where can I correct this problem or can you fix it for the next release?

Have the latest versions of Artio JoomSEF (3.3.6) and VM extension (2.0.6) and also Joomla and VM.

Thanks.
Last Edit: 15 years, 1 month ago by rialtrade. Reason: added the version of my products
The topic has been locked.

Re:Meta description not stripping quotation marks 15 years, 1 month ago #8332

  • jaku
Hello,

thanks for your post. We will add replacement of quotes in VirtueMart meta to fix this.
The topic has been locked.

Re:Meta description not stripping quotation marks 15 years, 1 month ago #8413

Is it possible to get the code also here, to patch the files manually - for faster fix of the issue on my site?
The topic has been locked.

Re:Meta description not stripping quotation marks 15 years, 1 month ago #8448

Also noticed, that the PARAMETER Product Description under the Meta Description Settings of the Virtuemart SEF extension doesn't work.

I have created a custom redirect for my product.

If I have the Meta Description field in the Custom redirect empty, it doesn't matter what I have selected in the Product Description parameter under the Meta Description Settings of the Virtuemart SEF extension. The META description will always be the product SHORT DESCRIPTION.

If the Meta Description field is not empty, than that is what will always be displayed, no matter what the parameter under the extension will say. Is this a bug or am I missing something?
Last Edit: 15 years, 1 month ago by rialtrade.
The topic has been locked.

Re:Meta description not stripping quotation marks 15 years, 1 month ago #8450

Found the solution myself - I don't know if this is a VM problem or it could also be corrected by Artio - fact is, that I changed some code in the file "administrator/components/com_virtuemart/html/shop.product_details.php", around line 228:

change this code:
 
// Prepend Product Short Description Meta Tag "description"
if( vmIsJoomla('1.5')) {
$document = JFactory::getDocument();
$document->setDescription(strip_tags( $db_product->f("product_s_desc")));
} else {
$mainframe->prependMetaTag( "description", strip_tags( $db_product->f("product_s_desc")) );
}


into this:
// Prepend Product Short Description Meta Tag "description"
if( vmIsJoomla('1.5')) {
$document = JFactory::getDocument();
$document->setDescription(strip_tags( str_replace('"',"&quot;",$db_product->f("product_s_desc"))),ENT_QUOTES);
} else {
$mainframe->prependMetaTag( "description", strip_tags( str_replace('"',"&quot;",$db_product->f("product_s_desc"))),ENT_QUOTES);
}


And the quotations mark should be replaced. At least for me it works.
Last Edit: 15 years, 1 month ago by rialtrade.
The topic has been locked.

Re:Meta description not stripping quotation marks 15 years, 1 month ago #8481

  • jaku
Well, there is quite a few known issues in VirtueMart.
As far as I know, some of the quotation problems have been fixed in 1.1.4. Not quite sure if this one as well.
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný