I see a call
<?php echo $this->getChildHtml('coupon') ?>
in cart.phtml. I cannot find this file anywhere. I am new to Magento, Could you tell me a location where this file should ideally reside? Also, do these templates also load from Database and should I check there/
Kind regards
Khuram
To find this you need to do a little bit of tracing :).
We need to look in a “layout.xml” file since this is where “ChildHtml” blocks are declared. Since this is the Cart,which is part of the Checkout module, we need to look in
checkout.xml.You should find the line declaring the “coupon” block under the
checkout_cart_indexsection of this file. Here it is:So,
checkout/cart/coupon.phtmlis the template file you are looking for. You can seeit is assigned the name “coupon” with the
as="coupon"line.This file will probably be in the folder
/app/design/frontend/default/default/checkout/cart/coupon.phtmland you should copy it your custom theme directory, which will automatically override the default and use your new coupon.phtml template file.I hope this helps, and happy Magentoing