How to Hide Related Products, or Terms, in Ubercart

Submitted by Georg on Tue, 04/06/2010 - 08:50
PDF version

One of our clients is selling laptop parts. The interrelations between the parts (batteries, screens, power adapters and so on) and their matching laptop brands and types are truly threatening. For instance, one single battery may fit about 3,500 distinct brand/types of notebooks. Drupal's taxonomies are handling this entire jungle with grace. Problem is they're handling it too good. Case in point:

Competition comes to visit a product on our client's laptop parts site. They are served, on every product detail page, a complete and meaningful list of "terms" — which is a precious intel one would love to snatch and match to his own market. Would be unfair to our hard working matching client.

This is why, at his request, we had to hide this vocabulary list of terms relating each product in Ubercart to as many taxonomies (or notebooks) it has been related to. Because the [search] button is enough, and the taxonomy/category page/block is more than enough, for the random end user/buyer to discover his/her needed battery/part.

Since we don't want any vocabulary terms list on any product page, here's the fix to it:

1. Look for the file "node-product.tpl.php" resident in the folder of your current Drupal theme.

2. Open the above in a plain text editor and look for this string:

"print $terms"

3. Comment the PHP line out and save.

Done.

Smart Chicks Dig Geeky Guys - Shop @Geeks.com!

Powered by Drupal, an open source content management system

© 2006 - 2012 by Moonkah, a Blue Safari Marketing business, based in Huntsville, Alabama.

Moonkah by Blue Safari Marketing - Huntsville, AL, Redstone Arsenal larger area. Office: 11590 Hwy 231-431 N, Meridianville, Alabama, 35750, USA //. Drupal theme by Kiwi Themes.
toolbar powered by www.iconcy.com