I would like to remove the discount code block but have it manageable.

I know if I want to remove it I can do

<?xml version="1.0" encoding="UTF-8" ?>
<reference name="content">
<remove name="checkout.cart.coupon"/>

However if I try to add ifconfig="module/manage_settings/enable_module" it doesnt work

I have also tried

<action method="unsetChild" ifconfig="module/manage_settings/enable_module">

Could someone please advise

1 Answer 1


You can set empty template:

<reference name="checkout.cart.coupon">
    <action method="setTemplate" ifconfig="module/manage_settings/enable_module">

and create somefolder/empty.phtmlwithout content.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.