News:

Looking for documentation? Take a look on our wiki

Main Menu

Stop child products being indexed (SOLVED)

Started by Bigitybossman, August 19, 2016, 02:35:46 AM

Previous topic - Next topic

Bigitybossman

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

VMTemplates.net

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
We develop VirtueMart templates since 2008
https://www.virtuemarttemplates.net/
Join the VirtueMart Templates Club today and get an access to over 60 VirtueMart templates
https://www.virtuemarttemplates.net/template-club.html
If you need a custom VirtueMart Template design please visit https://www.virtuemarttemplates.net/custom-virtuemart-template-design.html
Visit our new shop https://demo.virtuemarttemplates.net/
Join the VirtueMart Templates Club, purchase the template or order one of our services like Hosting, Website Maintenance, Security and Optimization, Template Customization and more

Bigitybossman

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

GJC Web Design

in DB

UPDATE `#__virtuemart_products` SET `metarobot`= 'noindex, nofollow' WHERE `product_parent_id` > 0
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Bigitybossman

Thanks GJC that should be very helpful.

I will do a backup and give it a go.

appreciate the help guys.  :)

Cheers

Bigitybossman

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.