Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Google Rich Snippets Showing Product Description Instead Of Meta Description Rate Topic   - - - - -

 
  • procentris
  • Newbie
  • Trial users
  • Join Date: 25-Jan 18
  • 2 posts

Posted 25 January 2018 - 11:35 AM #1

Hello,

 

We have website on cs cart with version 4.2.2. Even though we have set meta description for the products, for some of the products Google is not using the meta description in the Google search results.

 

Although unique meta description has been set for the products, google is showing product escription in its search results

 

URL - https://www.babybloo...d-bouquet-pink/

 

Can anyone help me on this?

 

Thanks



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17833 posts

Posted 26 January 2018 - 06:59 AM #2

app/addons/seo/func.php

 

replace

    if (!empty($product_data['full_description'])) {
        $description = $product_data['full_description'];
    } elseif (!empty($product_data['short_description'])) {
        $description = $product_data['short_description'];
    }

with

    if (!empty($product_data['meta_description'])) {
        $description = $product_data['meta_description'];
    } elseif (!empty($product_data['full_description'])) {
        $description = $product_data['full_description'];
    } elseif (!empty($product_data['short_description'])) {
        $description = $product_data['short_description'];
    }

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • procentris
  • Newbie
  • Trial users
  • Join Date: 25-Jan 18
  • 2 posts

Posted 29 January 2018 - 01:46 PM #3

I am not able to find this code in this file. Google search result is not displaying the meta description. Is there any specific reason? I have also re-indexed the URL in webmasters but no use.

 

.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17833 posts

Posted 30 January 2018 - 08:22 AM #4

Sorry, for old version please edit the following file

 

design/themes/TEMA/templates/addons/seo/hooks/products/view_main_info.pre.tpl

 

replace

{$product.full_description|default:$product.short_description}

with

{$product.meta_description|default:$product.short_description}

Then clear cache


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.