View Single Post
  #9  
Old 05-27-2004, 05:09 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

This maybe of some use to someone.

I'm trying to be clever with the use of these fields and the images. I'm fine with the 3for2 graphic but I want my freebie images included on the product details page. Because I have a range of freebie images I've set up a new field called Freebies (officially param01) and in that field I just name the jpeg minus the ".jpg" suffix. I then can use something like:

Freebie/param001: FreeStand
Name of jpg in default image directory: FreeStand.jpg

Inserted at appropriate point in customers/main/product.tpl:

Code:
{if $product.param01 ne ""} [img]{$ImagesDir}/{$product.param01}.jpg[/img]{/if}

which outputs:

Code:
http://www.myshop.com/x-cart/skin1/images/FreeStand.jpg

It was useful for me anyhow!

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote