I have a YES/NO attribute and I want to display next to Add To Cart button a text and an image if the value of this attrubute is YES.
How can I do this?
Thanks in advance.
<?php if($_product->getMyAttribute()): ?><img src="/path/to/the/image.jpg"><?php endif; ?>
Thans Stefan for your reply,
I have a doubt:
for example if my attribute is xxxxxxx, i need to create an specific function getxxxxxxx() ? where?
how can I pass the attribute name?
We'd like to hear from you! Call us, send us an email or talk to sales.
See Magento in the news, find press releases and resources for media.
Thank you for subscribingPlease check your email for a confirmation.