| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
I need an {if} variable for detailed Images | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello,
I am trying to find an {if} statement so I can show an image if there is detailed images for a product and won't if there isn't. I looked through the detailed product images file and wasn't able to find anything I could use, but my coding knowledge isn't very good. So what I am looking for is {if "detailed images"} where "detailed images" is when there are detailed images on the page. Any help?
__________________
X-Cart GoldPlus: 4.6.4 reBOOT Template CDSEO Pro 2.0 Total Server Solutions Hosting |
|||||||
#2
|
|||||||
|
|||||||
![]() In file,
/customer/main/product.tpl you'll see some code for detailed images, including: Code:
IF the detailed product images in on, and if there is a detailed product image, show the image, else.... WHERE do you want to show this image?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks, I'll look into that file and see what I can come up with.
Quote:
As you may or may not be able to see from my poor photoshop pic below, I edited the product detail a while back so that now when there is a product with detailed images it causes my product descriptions text to shift the the right. If I put enough top padding on the Product details will shift back left once it gets passed the detailed pictures thumbnails, but then it would look bad on my products without detailed thumbnails http://farmmanualsfast.com/Untitled-2.png
__________________
X-Cart GoldPlus: 4.6.4 reBOOT Template CDSEO Pro 2.0 Total Server Solutions Hosting |
|||||||
#4
|
|||||||
|
|||||||
![]() Maybe use a float for this? The float property will wrap text around an image, but if there is no image, the text will display. Not exactly a perfect description, but I use float to solve many design challenges. It may help??
http://css.maxdesign.com.au/floatutorial/ is one of many results from google Good luck. J
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#5
|
|||||||
|
|||||||
![]() Look in the debug console for detailed pictures. Find the array name and then try this:
{if $arrayOne.arrayTwo} show {else} dont show {/if} |
|||||||
|
|||
X-Cart forums © 2001-2020
|