3

enter image description here

This is the code that I am added in checkout.xml

 <checkout_onepage_index translate="label">
    <label>One Page Checkout</label>
    <!-- Mage_Checkout -->

    <remove name="left"/>

    <reference name="root">
        <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
    </reference>
    <reference name="right">
        <action method="unsetChildren"></action>
        <block type="checkout/onepage_review_info" name="checkout_review_sidebar" output="toHtml" before="-" template="checkout/onepage/review/info.phtml">
            <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
            <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
            <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
            <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
            <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
                <label>Items Before</label>
            </block>
            <block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
                <label>Items After</label>
            </block>
            <!-- <block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
        This block is only for information; we don't want the "Place Order" button showing.
            <block type="core/template" name="checkout.onepage.review.button" as="button" template="checkout/onepage/review/button.phtml"/>
        -->
        </block>
     </reference>
</checkout_onepage_index>

Can any one pls help me to remove from the footer section

10
  • so why you added this code in checkout Feb 27, 2017 at 9:49
  • I want to show the summary of the cart in the right sidebar, that's why I added the code
    – prashanth
    Feb 27, 2017 at 9:54
  • But your page is 1column layout Feb 27, 2017 at 9:54
  • check answer and let me know Feb 27, 2017 at 9:59
  • i have already change to 2columns-right
    – prashanth
    Feb 27, 2017 at 10:29

3 Answers 3

0

Override 2columns-right.phtml and renove the following code.

<?php echo $this->getChildHtml('footer') ?>
2
  • can you explain in details
    – prashanth
    Feb 27, 2017 at 12:42
  • Please, search on google to find how can i override template in mageto 1.x
    – Tonmoy
    Feb 27, 2017 at 12:56
0

first change the your layout to 2columns-right and then set cart detail in right

<checkout_onepage_index translate="label">
<reference name="root">
    <action method="setTemplate">
        <template>page/2columns-right.phtml</template>
    </action>
</reference>
<reference name="right">
            <action method="unsetChildren"></action>
            <block type="checkout/onepage_review_info" name="checkout_review_sidebar" output="toHtml" before="-" template="checkout/onepage/review/info.phtml">
                <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
                <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
                <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
                <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
                <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
                    <label>Items Before</label>
                </block>
                <block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
                    <label>Items After</label>
                </block>
  </reference>
  <reference name="footer">
        <remove name="checkout_review_sidebar">
  <reference>   
</checkout_onepage_index>
13
  • i have already change to 2columns-right
    – prashanth
    Feb 27, 2017 at 10:29
  • this is not working
    – prashanth
    Feb 27, 2017 at 12:45
  • Path of this file ?? Feb 27, 2017 at 12:47
  • path : /app/design/frontend/rwd/default/layout/checkout.xml
    – prashanth
    Feb 27, 2017 at 12:54
  • @prashanth check updated answer Feb 27, 2017 at 12:58
0

Add the below code inside the block name called checkout.progress.wrapper

<block type="checkout/onepage_review_info" name="checkout_review_sidebar"  template="checkout/onepage/review/info.phtml">
                        <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
                    <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
                    <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
                    <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
                    <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
                        <label>Items Before</label>
                    </block>
                    <block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
                        <label>Items After</label>
                    </block>
                    </block>

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.