/ Published in: PHP

abfragen ob ein Product ein Sonderangebot ist.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if (($_product->getSpecialPrice())): ?> <p><span><?php echo $this->__('Sparpreis!') ?></span></p> <?php endif; ?> oder <?php if (($_product->getSpecialPrice()) && ($specialFromDate <= $_now) && ($specialToDate > $_now)): ?> <?php echo $this->__('Sparpreis!') ?> <?php endif; ?>
URL: http://www.magentocommerce.com/boards/viewthread/31385/
Comments
