2

I want to have a specific CSS file at the onepage checkout and I was simply wondering if there is a layout handle for that (so I don't have to make one).

Probably answered my own question, but I found this in my search: http://itpscan.info/blog/magento/layout_handles.php

Might come in handy for other people searching for default XML handles

1

Here is the one page check out index handler

<checkout_onepage_index>

By default you this is the handler you can find this handler in layout folders checkout.xml file

I think you know the xml code for adding the css if you not then tell me I will update the code

  • Ok and if its help You then mark as accepted when you done the work – Murtuza Zabuawala Sep 28 '16 at 9:36
  • OK Try and If its Help to you then only accept. – Murtuza Zabuawala Sep 28 '16 at 9:50
  • 1
    Haha, that was not what I meant :p When you post a question, you have to wait like 12 minutes before you can accept an answer. – Maarten Wolfsen Sep 28 '16 at 9:51
  • Ok Bro, I dont know about that, Sorry – Murtuza Zabuawala Sep 28 '16 at 9:52
1

Rather than changing directly in checkout.xml it is good if you create local.xml in your layout folder and add your xml code there as it is the best practice to make your custom changes separately.

Below will be the code in your local.xml

<layout version="0.1.0"> 
    <checkout_onepage_index translate="label">
        <reference name="head"> 
            <action method="addCss"><stylesheet>css/yourstyle.css</stylesheet></action>
        </reference>
    </checkout_onepage_index>    
</layout>
  • I know the standard procedure of making use of the fallback system, but good that you mentioned it for people who don't know this yet! :) – Maarten Wolfsen Sep 28 '16 at 11:56

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.