Reputation: 11251
I am in a situation where I need to have a different layout for a specific Product Type.
It'll be okay if I could load a different CSS for this Product Type.
Is anything like this possible through code/xml?
I am able to identify the product type in catalog/product/view.phtml
, will it be helpful?
I also noticed a node in catalog.xml
named <PRODUCT_TYPE_grouped>
or <PRODUCT_TYPE_configurable>
etc.
will something like this help!?
Upvotes: 3
Views: 2059
Reputation: 21
You want to look at catalog.xml
not page.xml
for product type.
This is if you are using magento 1.7 and up.
Upvotes: 0
Reputation: 37700
Your idea is a valid one, something like this should be possible:
<PRODUCT_TYPE_grouped>
<reference name="head">
<action method="addCss"><stylesheet>css/your_file.css</stylesheet></action>
</reference>
</PRODUCT_TYPE_grouped>
Take a look at page.xml
to see what other sorts of tricks the same block can perform.
Upvotes: 1