3 replies [Last post]
Vandana.Kinra's picture
Offline
Joined: 09/18/2009
Juice: 6
Was this information Helpful?

Drupal 6.14, Ubercart 2.x
Hi,

I want to change the layout of my product info page similar to http://www.sarahkavanaghjewellery.co.uk/necklaces/skj86,
for this should I change in uc_product.module or there is a better way to do so.

Thanks & Regards

Cayenne's picture
Offline
Joined: 01/01/2009
Juice: 533
Nooooo

Noooo

#:0

Don't change module code. You will be sad when you upgrade. Instead, either use css OR use the drupal theming functions to accomplish your goal!

Now, theming is a little hassle, but totally worth it once you learn how.

justageek's picture
Offline
Bug Finder
Joined: 10/29/2008
Juice: 189
this is how I did it

1. Copy your default node.tpl.php from your theme and name the new copy node-product.tpl.php

2. Customize this node-product.tpl.php to meet the html needs for your product layout.

Hint: Install and enable the 'devel' modules, which will help you view the details of every node, see the data structure and field names, makes it much easier to do custom theme work.

NecroHill's picture
Offline
Joined: 08/12/2008
Juice: 107
Nifty Products Tutorial

Read Nifty Products Tutorial and you'll understand how to do it.