View Single Post
  #1  
Old 07-29-2006, 11:23 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default {$ImagesDir} -- best way to place images in product.tpl?

I must be doing something wrong... can someone please guide me...

It is my understanding (please correct me if I am wrong) that it is a Very Good Idea (in fact, the best way) to put all images in the {$ImagesDir} (which I believe is /skin1/images - right?) - so that in case of https, there are no issues... so far so good, right?

SO -- let's say I want to put an image embedded into the detailed product description... something like this:

Code:
PRODUCT DESCRIPTION... blah, blah, blah....</p> [img]{$ImagesDir}/productname2.jpg[/img]</p>

That doesn't work.

If I change the image tage to: [img]/xcart/newimagedirectory/productname2.jpg[/img] then we're fine -- but this image will break if the site goes https, right?

Am I doing something wrong? This image may need to be called up to https as it contains the color variants for the product and it may get called from the shopping cart...

Is there a BEST WAY to insert images into a product detail page?

Thanks,

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote