How to add css in only product type simple in magento
First to create local.xml file at this path app/design/frontend/yourpackage/default/layout/local.xml and paste below code in local.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<PRODUCT_TYPE_simple>
<reference name="head">
<action method="addCss"><stylesheet>css/your_simple.css</stylesheet></action>
</reference>
</PRODUCT_TYPE_simple>
</layout>
Handle of different product types :
<PRODUCT_TYPE_simple>
<PRODUCT_TYPE_configurable>
<PRODUCT_TYPE_grouped>
<PRODUCT_TYPE_virtual>
<PRODUCT_TYPE_downloadable>
<PRODUCT_TYPE_bundle>
First to create local.xml file at this path app/design/frontend/yourpackage/default/layout/local.xml and paste below code in local.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<PRODUCT_TYPE_simple>
<reference name="head">
<action method="addCss"><stylesheet>css/your_simple.css</stylesheet></action>
</reference>
</PRODUCT_TYPE_simple>
</layout>
Handle of different product types :
<PRODUCT_TYPE_simple>
<PRODUCT_TYPE_configurable>
<PRODUCT_TYPE_grouped>
<PRODUCT_TYPE_virtual>
<PRODUCT_TYPE_downloadable>
<PRODUCT_TYPE_bundle>
No comments:
Post a Comment