Image Cache Code

Posts: 374
Joined: 10/16/2007

Futurist:

Thanks for sticking with me on this. Not a PHP person so help is most appreciated.

Here is a PNG of the settings. Same as yours.

Would this then be correct?

foreach ($node->field_image_cache as $image)

Guess what is says is to store that info in the variable called image. And to use that in all places where $image is placed. Perhaps!

Overall, what I do not understand is why there is not a simple way to add the required text and simple PHP logic in place of constructing a new 'add to cart' page. Plus the need to make up new CSS.

Why can not the present node.tpl.php page (or a new module) be used and only add the reduced price and original price information and not modify any of the tpl code. But use the code that is in place so that the image display will not require all of this special treatment. Guess that I just do not understand the complexities of Ubercart.

Again, thanks so very much for your wonderful assistance. Will give this a try on Saturday as it is getting late in Alaska. Now up to 18 hours of fun in the sun!!

AttachmentSize
content_types.png7.34 KB
Nifty Products Tutorial Part 1 By: mykz- (91 replies) Wed, 03/19/2008 - 20:04