Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

moving root category description to first page

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 07-13-2015, 07:13 AM
 
vraj123@yahoo.com vraj123@yahoo.com is offline
 

Member
  
Join Date: Jun 2010
Posts: 27
 

Default moving root category description to first page

Hi
I have created 3 root categories and able to get on the first page
now I want to get their description right below the name of that root categories
I can see that there is category_description.tpl which display the category however when i put that code under subcategories>>Icon>>body.tpl

it shows the main banner. Attached is the screen shot
Attached Thumbnails
Click image for larger version

Name:	category-description.jpg
Views:	206
Size:	584.5 KB
ID:	4234  
__________________
i am using New PHP and MYSQl i=on new server... the problem is FRENCH is not working properly .. can anyone help?? also if i want to upgrade my licence version of X cart to new one... how can i do that keeping same layout and DB.. my store is very very busy
Reply With Quote
  #2  
Old 07-13-2015, 11:30 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: moving root category description to first page

Please could you give a bit more information on what you did?
Did you create a custom module? Or do you use the Custom Skin module?
What code and how did you put into body.tpl? And where is that body.tpl file located?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 07-14-2015, 05:00 AM
 
vraj123@yahoo.com vraj123@yahoo.com is offline
 

Member
  
Join Date: Jun 2010
Posts: 27
 

Default Re: moving root category description to first page

In x cart5.2.5 default design.. the root category is on first page with thumbnail. which is fine, . Now under neath that category name I want description of that category. just lke shown in my screen shot. how to get it?

Thanks
__________________
i am using New PHP and MYSQl i=on new server... the problem is FRENCH is not working properly .. can anyone help?? also if i want to upgrade my licence version of X cart to new one... how can i do that keeping same layout and DB.. my store is very very busy
Reply With Quote
  #4  
Old 07-15-2015, 06:49 AM
  McGuireArmyNavy's Avatar 
McGuireArmyNavy McGuireArmyNavy is offline
 

Member
  
Join Date: Oct 2013
Posts: 29
 

Default Re: moving root category description to first page

Quote:
Originally Posted by vraj123@yahoo.com
Hi
I have created 3 root categories and able to get on the first page
now I want to get their description right below the name of that root categories
I can see that there is category_description.tpl which display the category however when i put that code under subcategories>>Icon>>body.tpl

it shows the main banner. Attached is the screen shot

What version of X-Cart are you using?
__________________
X-Cart Gold 4.6.4
www.mcguirearmynavy.com
Reply With Quote
  #5  
Old 07-15-2015, 08:52 AM
 
vraj123@yahoo.com vraj123@yahoo.com is offline
 

Member
  
Join Date: Jun 2010
Posts: 27
 

Default Re: moving root category description to first page

I have clearly mentioned that above, I am using X-cart5.2.5
__________________
i am using New PHP and MYSQl i=on new server... the problem is FRENCH is not working properly .. can anyone help?? also if i want to upgrade my licence version of X cart to new one... how can i do that keeping same layout and DB.. my store is very very busy
Reply With Quote
  #6  
Old 07-17-2015, 01:21 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: moving root category description to first page

You should:
1. Create a custom module (or use the CustomSkin module directory)
2. Add a new "skin"
3. Duplicate the skins/default/en/subcategories/icons/body.tpl file in your skin directory (make sure the path is correct) to make it replace the original one.
4. Edit the file there and add the code to display the category description below the icon.

You can use these tutorials/guides as the reference:
- http://kb.x-cart.com/display/XDD/Basic+guide+to+theme+creation
- http://kb.x-cart.com/display/XDD/Building+a+custom+skin+in+X-Cart+5%3A+Tutorial+by+Mike+White
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #7  
Old 07-17-2015, 05:46 AM
 
vraj123@yahoo.com vraj123@yahoo.com is offline
 

Member
  
Join Date: Jun 2010
Posts: 27
 

Default Re: moving root category description to first page

Yes Alex I did the same thing that you mentioned. Now please check what i want to achieve.

1) I went to admin panel and added some description for 3 root category
2) To show that description on home page below the Category

Under Subcategory>Icon>body.tpl
what code should I add to display what I have written under root category?

So according to my screenshot above, under category 1, it should display the description of category 1, similarly under category 2 it should have description of category2

thanks in advance
__________________
i am using New PHP and MYSQl i=on new server... the problem is FRENCH is not working properly .. can anyone help?? also if i want to upgrade my licence version of X cart to new one... how can i do that keeping same layout and DB.. my store is very very busy
Reply With Quote
  #8  
Old 07-19-2015, 11:53 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: moving root category description to first page

I'm sorry, but I do not understand what you mean here:
Quote:
Under Subcategory>Icon>body.tpl


The exact code depends on the file where you need to display the category description.
What is the full path to the file that you are going to edit?

If the category model is available in the template file already, you may try to do something like this:
Code:
{category.getViewDescription():h}
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

Last edited by qualiteam : 07-20-2015 at 12:33 AM.
Reply With Quote
  #9  
Old 07-20-2015, 04:27 PM
 
vraj123@yahoo.com vraj123@yahoo.com is offline
 

Member
  
Join Date: Jun 2010
Posts: 27
 

Default Re: moving root category description to first page

this is the location of file (Subcategory>Icon>body.tpl
when I write code as you mentioned above
on the home page where I pulled root categories, it shows the HOME PAGE description not what I have written for category. Again i want to show description under the category icon (for example category1 ICON should have description for category1, category2ICOn should have category2 description under neath)
__________________
i am using New PHP and MYSQl i=on new server... the problem is FRENCH is not working properly .. can anyone help?? also if i want to upgrade my licence version of X cart to new one... how can i do that keeping same layout and DB.. my store is very very busy
Reply With Quote
  #10  
Old 07-21-2015, 05:19 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: moving root category description to first page

How do you edit the body.tpl file?
Do you edit it on the server? If so, what is the full path to the file on the server?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:10 AM.

   

 
X-Cart forums © 2001-2020