to add a discount in checkout page
If you are using the one page checkout, you can add the coupon code template by defining it in your checkout.xml layout definition and then including it in the onepage.phtml template inside of template/checkout/onepage.phtml:
<?php echo $this->getChildHtml('coupon') ?>
In your layout/checkout.xml, locate the <checkout_onepage_index> definition and add the following line inside the <block type="checkout/onepage"...> tag:
...
<block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="checkout/cart/coupon.phtml"/>
<?php echo $this->getChildHtml('coupon') ?>
In your layout/checkout.xml, locate the <checkout_onepage_index> definition and add the following line inside the <block type="checkout/onepage"...> tag:
...
<block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="checkout/cart/coupon.phtml"/>
Comments
Post a Comment