Saturday, 31 August 2013



Shipping Cart price Rules into Sales->Orders

magento-root-folder/app/design/adminhtml/default/default/template/sales/order/view/info.php




<div class="entry-edit">
<!--Shipping Address-->
<div class="entry-edit">
<div class="entry-edit-head">
     <h4 class="icon-head head-shipping-address">
          <?php echo Mage::helper('sales')->__('Shopping Cart Price Rule') ?>
    </h4>
</div>
   <fieldset>
      <table cellspacing="0" class="form-list">
       <?php if($this->getOrder()->getCouponCode() && $this->getOrder()->getCouponRuleName()): ?>
       <tr>
       <td class="label"><label><?php echo Mage::helper('sales')->__('Rule Name') ?></label></td>
       <td class="value"><strong><?php echo $this->getOrder()->getCouponRuleName(); ?></strong></td>
       </tr>
       <tr>
       <td class="label"><label><?php echo Mage::helper('sales')->__('Coupon Code') ?></label></td>
       <td class="value"><strong><?php echo $this->getOrder()->getCouponCode(); ?></strong></td>
       </tr>
       <?php else: ?>
       <tr>
       <td class="label"><label><?php echo Mage::helper('sales')->__('Coupon Code Details') ?></label>            </td>
       <td class="value"><strong><?php echo 'There is no Coupon Code in use'; ?></strong></td>
       </tr>
       <?php endif; ?>
       </table>
        </fieldset>
    </div>
</div>
<div class="clear"></div>

No comments:

Post a Comment