News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

2.6.8.b and earlier Product detail view empty meta tag description

Started by AH, September 01, 2014, 17:17:16 PM

Previous topic - Next topic

AH

If you have not added your own meta description on every product on setup

You will find Vm does not create a meta description element in the head

Bad for SEO and a bugger to have to add manually for every product

On the BIG assumption that your product description, category name and product short description have been considered for SEO

Then I recommend a base change to populate the meta tag description with some sensible data that is created on every product if the Prodcut data has not had a meta description created in admin.

components\com_virtuemart\views\productdetails\view.html.php



if ($product->metadesc) {
    $document->setDescription($product->metadesc);
}



with



if ($product->metadesc) {
    $document->setDescription($product->metadesc);
    } else {
        $document->setDescription( $product->product_name . " ". $category->category_name . " ".$product->product_s_desc );

}
//quorvia end
Regards
A

Joomla 3.10.11
php 8.0

slammy

nice idea Hutson and indeed much better than the massive and similiar global joomla descĀ“s from jml-be-configuration ...
regards jens