Override xen:require css

Sadik B

Well-known member
I am extending MicroCart for our particular needs. The addon has <xen:require css="microcart.css" /> in very many templates. I don't want to edit the microcart.css template for obvious reasons. The question is, is it possible to override the xen:require command to have it require something else instead of the passed css template name argument. Basically what I want to do is have a code something like the below pseudo code


if (require == 'microcart.css') {
require = custom_microcart.css
}

Is there any way of achieving this?
 
Not sure if this would work but can you not copy the contents of microcart.css into EXTRA.css and make the changes there?
 
Not sure if this would work but can you not copy the contents of microcart.css into EXTRA.css and make the changes there?

Yes of course. But I don't want to edit Extra.css either because I use a custom pre-made skin. Secondly, I don't want all of the css to be available everywhere when I am only going to use them on the cart.
 
Top Bottom