0

I've installed IWD Onepage Checkout, and I'm trying to style it.

Rather than edit the 'core' installation, I want to add my own stylesheet -

I've added this to /app/design/frontend/default/<theme>/layout/local.xml

<opc_index_index>
    <action method="addCss">
        <stylesheet>css/custom-opc.css</stylesheet>
    </action>
</opc_index_index>

..however, my stylesheet isn't getting added?

  • Don't use IWD checkout. Mostly because of this: magento.stackexchange.com/q/8460/146 – Marius Mar 30 '15 at 19:49
  • @Marius - why have you deleted my answer and added it to the question? I'm usually on SO, this isn't the norm. over there...? – alexjamesbrown Mar 30 '15 at 20:04
  • The answer section is for answers only. Your "answer" looked like an edit. If it wasn't an edit, make it look like an answer. – Marius Mar 30 '15 at 20:05
  • the answer was that i forgot my reference.... the solution was the newly posted code – alexjamesbrown Mar 30 '15 at 20:06
  • have edited the answer. please undelete it – alexjamesbrown Mar 30 '15 at 20:07
1

Your approach is the correct one, i think the identifier <opc_index_index> might be wrong. Double check the extension XML to see how is the extension adding the CSS to the OPC pag. Also flush your cache since XMLs are often cached.

| improve this answer | |
  • Super, remember to mark the question as resolved if it is. – mbalparda Mar 30 '15 at 19:48
0

I figured out why it wasn't working.

I forgot to add my reference.

Here's the working excerpt

<opc_index_index>
    <reference name="head">
        <action method="addCss">
            <stylesheet>css/custom.css</stylesheet>
        </action>
    </reference>
</opc_index_index>

I'm still very new to magento, so not sure why this works....

| 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.