X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   {$ImagesDir} -- best way to place images in product.tpl? (https://forum.x-cart.com/showthread.php?t=23685)

carpeperdiem 07-29-2006 11:23 AM

{$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

balinor 07-30-2006 03:09 AM

Need to read this about how to put Smarty into the product description:

http://forum.x-cart.com/viewtopic.php?t=30643


All times are GMT -8. The time now is 11:14 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.