How to install a template in one page / checkout / success

I have a problem with the onepage / checkout / success page, so I want to set the root template from 2columns-right.phtml to 1column.phtml. There should be no problems ...

I have a default package with a base theme and a custom theme:

  • interface / base / default /
  • interface / default / user /

First I tried to change the template in local.xml

interface / default / user / layout / local.xml

<layout>
...
<checkout_onepage_success>
        <reference name="root">
            <action method="setTemplate"><template>page/1column.phtml</template></action>
        </reference>
</checkout_onepage_success>
...
</layout>

Without any effects.

Then I tried to use a custom checkout.xml (the same as above) without any effect. Also, when I copy all the content base / default / layout / checkout.xml and change only the "template", there are no effects.

I have clearing / disabling all caches and removing all non-standard plugins.

Magento - V. 1.7.0.2.

?

-

/base/default/layout/checkout.xml = > 2columns-left.phtml

/default/custom/layout/checkout.xml = > 1column.phtml

Frontend/Browser = > 2columns-right.phtml

+5
1

, , " ". /default/custom/layout/, . () :

a > > > , "" .

, /design/frontend/default/custom/...

/

. "Base/Default" "Default/Default" , - , "Default/Custom" .

: , . ( , D)

local.xml

, . Magento local.xml. Default/Custom/Layout/. , .

, , , . Local.xml , . , , local.xml - :

local.xml

<?xml version="1.0"?>

<layout version="0.1.0">

    <checkout_onepage_success>
        <reference name="root">
            <action method="setTemplate">
                <template>page/1column.phtml</template>
            </action>
        </reference>
    </checkout_onepage_success>

    <checkout_onepage_failure>
        <reference name="root">
            <action method="setTemplate">
                <template>page/1column.phtml</template>
            </action>
        </reference>
    </checkout_onepage_failure>

</layout>

, , , .

, ( = "") .

<remove name="left.permanent.callout" />

- , unsetChild . :

<reference name="left">
    <action method="insert">
        <!-- Name of Block -->
        <blockName>right.poll</blockName>
        <!-- Name of Adjacent Block -->
        <siblingName>left.newsletter<siblingName>
        <!-- Does it Come Before(0)? Or After(1)? Adjacent Block  -->
        <after>0</after>
    </action>
</reference>

<reference name="right">
    <action method="unsetChild">
        <name>right.poll</name>
    </action>
</reference>

: 0 , phtml echo $this- > getChildHtml (''). , , , xml.

, , (, getChildHtml ('top_links')), , (Default/Custom/Template/) echo $this- > getChildHtml ('your_block_name'), , ( local.xml).

, . .

+8

All Articles