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
|
Ubercart |
|
|
|
||
|
Sat, 09/19/2009 - 06:00
Drupal 6.14, Ubercart 2.x I want to change the layout of my product info page similar to http://www.sarahkavanaghjewellery.co.uk/necklaces/skj86, Thanks & Regards
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.
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.
Nifty Products Tutorial
Read Nifty Products Tutorial and you'll understand how to do it. |
|