I've been reading the Getting Started Design Guide and have looked at Page 41.
Using a custom Var to display a second image.
This works great, but Ive added the variable into a template that is used even for products without the custom property.
As a result of this I get the missing image placeholder red X.
Is there a simple way to prevent this from happening?
I suppose I could always add a single transparent pixel as the alternative image if I don't have a product based one, or use a custom template for the products that are using the custom var.
But really I was looking for a simpler solution that would only display images if the custom var is specified.
Any ideas?
Using a custom Var to display a second image.
This works great, but Ive added the variable into a template that is used even for products without the custom property.
As a result of this I get the missing image placeholder red X.
Is there a simple way to prevent this from happening?
I suppose I could always add a single transparent pixel as the alternative image if I don't have a product based one, or use a custom template for the products that are using the custom var.
But really I was looking for a simpler solution that would only display images if the custom var is specified.
Any ideas?
Comment