Magento sonderangebote abfragen


/ Published in: PHP
Save to your folder(s)

abfragen ob ein Product ein Sonderangebot ist.


Copy this code and paste it in your HTML
  1. <?php if (($_product->getSpecialPrice())): ?>
  2. <p><span><?php echo $this->__('Sparpreis!') ?></span></p>
  3. <?php endif; ?>
  4.  
  5. oder
  6.  
  7. <?php if (($_product->getSpecialPrice()) && ($specialFromDate <= $_now) && ($specialToDate > $_now)): ?>
  8. <?php echo $this->__('Sparpreis!') ?>
  9. <?php endif; ?>

URL: http://www.magentocommerce.com/boards/viewthread/31385/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.