PHP Help Needed! Hiding custom attributes using 'IF" statement etc.
I am wondering if there is a way to hide the entire code if the 'singer' field (including attribute title) is emtpy on my magento backend?
I found a couple solutions online, i was able to hide the attribute value itself, but not the <b>Singer:</B> It seems to show no matter what.
This is what I have so far:
| <b>Singer:</b> <?php echo $_product->getResource()->getAttribute('singer')->getFrontend()->getValue($_product) ?><br /> |
Bros find strictly platonic dudes on seekBromance.com
_______________________________________________
"It's pretty simple. You work hard, you believe anything is possible, and you try to make the world better."
Need a QR Code? Check out my QR Code Generator. It's FREE!