conditional php help

Posted by jeff on Stack Overflow See other posts from Stack Overflow or by jeff
Published on 2010-04-28T16:36:41Z Indexed on 2010/04/28 16:43 UTC
Read the original article Hit count: 324

Filed under:
|

How can I wrap this entire statement below in a condition? So If the variable $uprice = 0 then I don't want to to display any of the code below

   <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item-  >getWeeeTaxAppliedAmount()): ?>

   <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>

  <?php else: ?>
  <?php echo $this->helper('checkout')->formatPrice($_item-    >getCalculationPrice()) ?>
  <?php endif; ?>

© Stack Overflow or respective owner

Related posts about php

Related posts about php5