VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Bigitybossman on August 19, 2016, 02:35:46 AM

Title: Stop child products being indexed (SOLVED)
Post by: Bigitybossman on August 19, 2016, 02:35:46 AM
Hi,

I was wondering if there is a way to stop child products from being indexed into search engines?

At the moment google is indexing my parent product along with all the children. I don't really think there is any need for this as all the children products are identical to the parent except for the price and quantity (multi varient and ramifications have been used).

Also, when clicking on the child product link from google, the child product loads with no modules assigned as it is not a menu item. So the page is not complete.

Does anyone have any ideas how to stop search engines indexing the multivariant child products?

Cheers
Title: Re: Stop child products being indexed
Post by: VMTemplates.net on August 19, 2016, 09:32:36 AM
Hi,

1. open your child product
2. go to Product Description tab and scroll down to 'Meta Information'
3. Set 'No Index, No follow'

Thanks
Jason
Title: Re: Stop child products being indexed
Post by: Bigitybossman on August 20, 2016, 02:07:47 AM
Hi,

Thanks for your response, I will give this a go.

I have over 800 child products, do you know if there is any way that you can think of to do a bulk change?

Cheers
Title: Re: Stop child products being indexed
Post by: GJC Web Design on August 20, 2016, 10:59:13 AM
in DB

UPDATE `#__virtuemart_products` SET `metarobot`= 'noindex, nofollow' WHERE `product_parent_id` > 0
Title: Re: Stop child products being indexed
Post by: Bigitybossman on August 21, 2016, 06:34:10 AM
Thanks GJC that should be very helpful.

I will do a backup and give it a go.

appreciate the help guys.  :)

Cheers
Title: Re: Stop child products being indexed
Post by: Bigitybossman on August 22, 2016, 02:59:30 AM
Hi,

Your suggestion worked perfectly, just needed to put in my DB suffix to the front.

Thanks again, you have saved my hours of work.