![]() |
Variant Image - Display All Variant Images on Product - Filter "X"
The code below displays all available variant images for a product and their names (on the product page - product.tpl). The problem I am having is that if the variant has no image then what is displaying is a dead/missing image. What I would like is if a variant has no image then it would be completely excluded from displaying an image and its text. In other words only variants with images will show their image and name by this code. Any suggestions would be greatly appreciated!
Quote:
|
Re: Variant Image
I know the issue is with my initial if statement
Quote:
Does anyone know a good smarty variable to check against to see if the variant image contains a image or is blank. Currently the above shows all the variant images in the product but also puts "X" images for variants that do not have their own image. I need to filter/remove the variant image display for those variants that do not have a image. I tried various smarty variables but they seem to come across blank for the image and don't act as a proper flag. Any suggestions would be greately appreciated. |
Re: Variant Image
Have you been able to iron out this problem?
|
Re: Variant Image
Have you tried adding a check to see if the is a variant image to the template? something like..
Code:
{foreach name=variants from=$variants item=var} Just a thoughy, I haven't checked it. |
All times are GMT -8. The time now is 08:36 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.