Crash99 Posted March 3, 2015 Share Posted March 3, 2015 Hello I've got a warning in Google Webmaster Tools about duplicate meta descriptions for some of my product pages. Some of the products I sell are very similar so the short descriptions are the same and some have no short descriptions (which leaves the meta description blank in Prestashop). Could the generated 'meta_description' be changed to make it different for each product? I think I've found the field I need to change in classes/meta.php (around line 253): $row['meta_description'] = strip_tags($row['description_short']); What I need it to say is something like (I know the syntax below is wrong!): $row['meta_description'] = strip_tags($row['Buy the $name at example.com. $description_short']); Also, would it be possible to add the manufacturer to the product meta_description so it would show: $row['meta_description'] = strip_tags($row['Buy the $name by $manufacturer at example.com. $description_short'']); Any help with the correct syntax or a way to do this would be appreciated. I'm using Prestashop 1.6 btw. Cheers! Link to comment Share on other sites More sharing options...
Dh42 Posted March 3, 2015 Share Posted March 3, 2015 How many products are you talking about? Link to comment Share on other sites More sharing options...
Crash99 Posted March 3, 2015 Author Share Posted March 3, 2015 Thanks for the reply. It's about 2000 products at the moment that have duplicate or no meta descriptions. I will be filling in the meta fields on the product pages in the future (making each one different), but I need a 'quick fix' to keep the great god Google happy for now! Link to comment Share on other sites More sharing options...
Dh42 Posted March 3, 2015 Share Posted March 3, 2015 There really is no quick fix, google is not going to penalize your site because of it either. I would just site down and start grinding them out, or hire someone to do it. Link to comment Share on other sites More sharing options...
Crash99 Posted March 3, 2015 Author Share Posted March 3, 2015 Sorry, does that mean it can't be done by changing the meta.php file? Link to comment Share on other sites More sharing options...
Dh42 Posted March 3, 2015 Share Posted March 3, 2015 You could change it, but unless you are drawing information from 2000 different sources then no, they would not all change. It looks like from your example you would just be changing 1 -2 words in the description which would have no impact. Link to comment Share on other sites More sharing options...
Crash99 Posted March 3, 2015 Author Share Posted March 3, 2015 The product name (and manufacturer name) would significantly change the meta descriptions, it would also fill the blank metas I have now. I've used this format before on an older cart program and it works in the SE's (Buy $product_name by $product_brand at website.com). Although, for competative products and services you'll need proper, indivdual meta descriptions, it works for generic products. Also, can help to increase click throughs from the search engines as people who are looking to purchase the product can be persuaded to click on the link by using words like 'Buy the' etc. Link to comment Share on other sites More sharing options...
thuanr Posted November 7, 2015 Share Posted November 7, 2015 no solution Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now