2

I wanted to change the title of the onepage success page.By default text is "Magento Commerce". how can i change this and set my custom title.

Please help me.

Thanks in Advance

5

Add this code in checkout.xml

under checkout_onepage_success tag

<reference name="head">
    <action method="setData" translate="title"><key>title</key><value>your title </value></action>
</reference>
| improve this answer | |
3

you can do it via layout files:

<reference name="head">
    <action method="setTitle" translate="title"><title>Your Title</title></action>
</reference>

or via code by accessing head block element and calling setTitle('your title') method on it

$this->getLayout()->getBlock('head')->setTitle('your title'); 
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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