Skip to main content
2 of 4
correct english and grammar
brentwpeterson
  • 6.1k
  • 8
  • 45
  • 81

New Product DROPDOWN Attribute (IF THEN ELSE)

I have made a new Product Dropdown Attribute that will show on a Group Product Page.

My idea:

<?php IF echo $this->htmlEscape($_item->getAttributeText('etickettype')) = 'GREEN'?> <img src="/Picture-GREEN.jpg"> <?php IF echo $this->htmlEscape($_item->getAttributeText('etickettype')) = 'RED'?> <img src="/Picture-RED.jpg"> <?php IF echo $this->htmlEscape($_item->getAttributeText('etickettype')) = 'BLUE'?> <img src="/Picture-BLUE.jpg"> <?php endif; ?> 

I know this code is not the correct, but does anyone know how I can find the correct code?

Marc
  • 1
  • 1