Hello all,
Still relatively new and not big PHP person. So I know I am wading into the deep end of the pool.
I would like to theme the product pages of my client's website. She is arranging trips; some are cruises, some tours, some resorts etc. So I created classes in ubercart and now I want to theme them differently. I checked out the only tutorial that seems to be available: http://www.ubercart.org/forum/development/3868/nifty_products_tutorial_p...
I created the node-cruising.tpl.php. I copied the code from the tutorial and that part of it worked, except the images. So I need that fixed.
More importantly, I have added fields to into the tpl.php page. I have waded through the theming guide but can't seem to find the pages that describe how to code those in the php. I've tried a number of approaches. I even tried the suggestion on this node: http://drupal.org/node/442302, just subbing my own field name. Nothing works.
And maybe I'm trying too hard. Maybe I could do this in views, but the uc_products in views just seems to be for the catalog page, not for individual classes. If I could create a view for an ubercart class, someone let me know.
Otherwise if anyone knows of a good (baby steps good) tutorial on how to theme a product page for ubercart please direct me to it. I've searched this site and ubercart, google, youtube...
You will save my life! :-)
Comments
What I've tried
Here's the types of code I tried just to get one of the fields to work:
Or
I've tried it without the fieldset class, just in case that was causing problems. And I've cleared the cache.
Got it!
This is finally what worked.
I found the information here:
http://drupal.org/node/92382
in case anyone else needs it.