Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Customize Packing Slips for COD
 
barman_rules
Jr. Member
 
Total Posts:  1
Joined:  2012-10-07
 

I need a section in my packing slips only if the payment method chosen is ‘Cash On Delivery’. Basically something like this -

<?php if(payment=='Cash On Delivery'): ?>
<tr>

<td colspan="2" style="font-weight:bold;font-size:16;border: 2px solid #808080;background-color: #ededed”
valign="top" width="100%">
COD - Amount to collect : Rs.{{var order.getGrandTotal()}}
</td>
</tr>
<?php endif; ?>

Can you suggest the condition I should put in the php if block to make this work.
Thanks in advance,

Gaurav

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top