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

Category Description Position

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-17-2010, 08:13 AM
 
tacdesign tacdesign is offline
 

Newbie
  
Join Date: Jan 2010
Posts: 4
 

Default Category Description Position

Hi there,

Does anybody know how to move the category descriptions to appear below the product thumbs? I've located the smarty statement in the correct template and have managed to delete the text block, but can't work out how to move it to below the product listing grid...

The template file is:
skin1/customer/main/subcategories.tpl

and the bit of code that holds the description is:
{if $current_category.description ne ""}
<div class="subcategory-descr">{$current_category.description}</div>
{/if}


I've tried putting this inside it's own div and moving that to below the category isting without success - it stays at the top of the content area no matter what?


Any help is greatly apreciated...
__________________
xcart v4.3.1
Reply With Quote
  #2  
Old 03-17-2010, 08:18 AM
 
Pyro Pyro is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 506
 

Default Re: Category Description Position

Could it be that "<div class="subcategory-descr">" is styled to be a specific position on the page?

I have no idea if that is the case or not, but it wouldn't hurt to check I guess.


To check you could use this bit of code where you want it to go:

{if $current_category.description ne ""}
{$current_category.description}
{/if}


Hope it helps
__________________
Best Wishes,
James

4.5.2 Gold (work in progress)
Reply With Quote
  #3  
Old 03-17-2010, 08:29 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Category Description Position

Be sure to clear your template cache after you make the change.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 03-18-2010, 02:30 AM
 
tacdesign tacdesign is offline
 

Newbie
  
Join Date: Jan 2010
Posts: 4
 

Default Re: Category Description Position

Thanks for the feedback guys - I've got it working by taking the smarty tag out of the div as suggested, clearing my template cache (yourdomain/cleanup.php) and placing the tag right at the bottom of the template code.

Thanks again...
__________________
xcart v4.3.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 03:47 PM.

   

 
X-Cart forums © 2001-2020