Monday, 27 June 2016
PRESTA XML MENU CATAGORY


----------------------------------------------------------------------------------------------------------------
PRESTA BACKGROUND COLOR SETTING LOCALHOST OFF LILINE
1) PASTE CSS CODE IN global.css
//C:\wamp\www\prestashop\themes\default-bootstrap\css\global.css
.columns-container {
background:red;
}
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
FIRST MAKE PARENT ID CATEGORY THEN ADD LINKS IN THIS CATEGORY
C:\wamp\www\prestashop\install\fixtures\fashion\data\category.xml
----------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<entity_category>
<fields id="name" class="Category" sql="a.id_category > 2" image="c">
<field name="id_parent" relation="category"/>
<field name="active"/>
</fields>
<entities>
<category id="Women" id_parent="Home" active="1"/>
<category id="Tops" id_parent="Women" active="1"/>
<category id="T-shirts" id_parent="Tops" active="1"/>
</entities>
</entity_category>
----------------------------------------------------------------------------------------------------------------
C:\wamp\www\prestashop\install\fixtures\fashion\langs\en\data\category.xml
----------------------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<entity_category>
<category id="Women" id_shop="1">
<name>Women</name>
<description><p><strong>You will find here all woman fashion collections.</strong></p>
<p>This category includes all the basics of your wardrobe and much more:</p>
<p>shoes, accessories, printed t-shirts, feminine dresses, women's jeans!</p></description>
<link_rewrite>women</link_rewrite>
<meta_title/>
<meta_keywords/>
<meta_description/>
</category>
<category id="Tops" id_shop="1">
<name>Tops</name>
<description><p>Choose from t-shirts, tops, blouses, short sleeves, long sleeves, tank tops, 3/4 sleeves and more.</p>
<p>Find the cut that suits you the best!</p></description>
<link_rewrite>tops</link_rewrite>
<meta_title/>
<meta_keywords/>
<meta_description/>
</category>
<category id="T-shirts" id_shop="1">
<name>T-shirts</name>
<description><p>The must have of your wardrobe, take a look at our different colors,</p>
<p>shapes and style of our collection!</p></description>
<link_rewrite>tshirts</link_rewrite>
<meta_title/>
<meta_keywords/>
<meta_description/>
</category>
</entity_category>
----------------------------------------------------------------------------------------------------------------
FIRST MAKE PARENT ID CATEGORY THEN ADD LINKS IN THIS CATEGORY
C:\wamp\www\prestashop\install\fixtures\fashion\data\category.xml
----------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<entity_category>
<fields id="name" class="Category" sql="a.id_category > 2" image="c">
<field name="id_parent" relation="category"/>
<field name="active"/>
</fields>
<entities>
<category id="Women" id_parent="Home" active="1"/>
<category id="Tops" id_parent="Home" active="1"/>
<category id="T-shirts" id_parent="Tops" active="1"/>
</entities>
</entity_category>
----------------------------------------------------------------------------------------------------------------
C:\wamp\www\prestashop\install\fixtures\fashion\langs\en\data\category.xml
----------------------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<entity_category>
<category id="Women" id_shop="1">
<name>Women</name>
<description>THIS IS A WOMEN </description>
<link_rewrite>women</link_rewrite>
<meta_title/>
<meta_keywords/>
<meta_description/>
</category>
<category id="Tops" id_shop="1">
<name>Tops</name>
<description>THIS IS A TOPS</description>
<link_rewrite>tops</link_rewrite>
<meta_title/>
<meta_keywords/>
<meta_description/>
</category>
<category id="T-shirts" id_shop="1">
<name>T-shirts</name>
<description>THIS IS A T-shirts </description>
<link_rewrite>tshirts</link_rewrite>
<meta_title/>
<meta_keywords/>
<meta_description/>
</category>
</entity_category>
--------------------------------------------------------------------------------------------------------------------------
ONE LINK MENU
--------------------------------------------------------------------------------------------------------------------------
FOLLOW THESE INSTRUCTION:
NO:1
IF USE CAPITAL WORD FOR CATEGORY ID WOMEN IN
C:\wamp\www\prestashop\install\fixtures\fashion\data\category.xml
THEN WE USE SAME CAPITAL STYLE AND ALSO USE SAME NAME IN
C:\wamp\www\prestashop\install\fixtures\fashion\langs\en\data\category.xml
LIKE:
<category id="WOMEN" id_parent="Home" active="1"/>
//IN en\data\category.xml BOTH ID SAME CAPTIAL STYLE
<category id="WOMEN" id_shop="1">
NO:2
USE THIS STYLE FIRST PARENT ID id_parent="Home"
DON'T USE CAPITAL STYLE FOR FIRST PARENT ID id_parent="HOME"
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>ONE LINK MENU
--------------------------------------------------------------------------------------------------------------------------
FOLLOW THESE INSTRUCTION:
NO:1
IF USE CAPITAL WORD FOR CATEGORY ID WOMEN IN
C:\wamp\www\prestashop\install\fixtures\fashion\data\category.xml
THEN WE USE SAME CAPITAL STYLE AND ALSO USE SAME NAME IN
C:\wamp\www\prestashop\install\fixtures\fashion\langs\en\data\category.xml
LIKE:
<category id="WOMEN" id_parent="Home" active="1"/>
//IN en\data\category.xml BOTH ID SAME CAPTIAL STYLE
<category id="WOMEN" id_shop="1">
NO:2
USE THIS STYLE FIRST PARENT ID id_parent="Home"
DON'T USE CAPITAL STYLE FOR FIRST PARENT ID id_parent="HOME"
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
<entity_category>
<fields id="name" class="Category" sql="a.id_category > 2" image="c">
<field name="id_parent" relation="category"/>
<field name="active"/>
</fields>
<entities>
<category id="WOMEN" id_parent="Home" active="1"/>
</entities>
</entity_category>
--------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<entity_category>
<category id="WOMEN" id_shop="1">
<name>WOMEN</name>
<description>THIS IS A WOMEN </description>
<link_rewrite>WOMEN</link_rewrite>
<meta_title/>
<meta_keywords/>
<meta_description/>
</category>
</entity_category>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment