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

Category Description

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-06-2009, 12:43 AM
 
kierweb kierweb is offline
 

Newbie
  
Join Date: Oct 2008
Posts: 6
 

Default Category Description

I'm changing my front page to show a list of top level categories, but the smarty array which controls this doesn't have the description text. Anyone know how to grab the description of the category?
__________________
Darren Kierman
http://www.kierweb.co.uk/

Also known as 'carlisleglass' on these forums !
Reply With Quote
  #2  
Old 08-07-2009, 03:45 AM
  AusNetIT's Avatar 
AusNetIT AusNetIT is offline
 

Senior Member
  
Join Date: Apr 2009
Posts: 152
 

Default Re: Category Description

Your Version?
__________________
Melbourne website design | SEO in Melbourne

Installed Ver 4.6.0
Reply With Quote
  #3  
Old 08-07-2009, 04:16 AM
 
kierweb kierweb is offline
 

Newbie
  
Join Date: Oct 2008
Posts: 6
 

Default Re: Category Description

Sorry I forgot to mention that ... using the latest v4.2
__________________
Darren Kierman
http://www.kierweb.co.uk/

Also known as 'carlisleglass' on these forums !
Reply With Quote
  #4  
Old 08-13-2009, 01:46 AM
 
kierweb kierweb is offline
 

Newbie
  
Join Date: Oct 2008
Posts: 6
 

Default Re: Category Description

Any ideas ?
__________________
Darren Kierman
http://www.kierweb.co.uk/

Also known as 'carlisleglass' on these forums !
Reply With Quote
  #5  
Old 08-13-2009, 02:17 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Category Description

Code:
{if $current_category.description ne ""} <p class="subcategory-descr">{$current_category.description}</p> {/if}

The smarty code for category description is in customer/main/subcategories.tpl
__________________
- Shane Munroe
Reply With Quote
  #6  
Old 08-13-2009, 01:41 PM
 
webeditors webeditors is offline
 

Member
  
Join Date: Jul 2009
Posts: 20
 

Red face Re: Category Description

Quote:
Originally Posted by Tal
Code:
{if $current_category.description ne ""} <p class="subcategory-descr">{$current_category.description}</p> {/if}

The smarty code for category description is in customer/main/subcategories.tpl

We have the same issue but the code above is not working for us. We'd like to display top level category icons, description, and links.

Sample page of what we are working on: http://juhlir.tempdomainname.com/store/pages.php?pageid=6

the top is *hard coded* to look like what we need
the bottom are the links we got to show up but can't figure out how to get the rest to display (thubnails and descriptions)
__________________
www.webeditors.com
4.2.1 or 4.2.2
Reply With Quote
  #7  
Old 08-13-2009, 02:28 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Category Description

Well, I know for a fact the thumbnails for images is used by product_thumbnail.tpl is skin1/customer since I had to remake one for my mod.

I'll see what I can come up with if I get any free time.
__________________
- Shane Munroe
Reply With Quote
  #8  
Old 08-13-2009, 02:36 PM
 
webeditors webeditors is offline
 

Member
  
Join Date: Jul 2009
Posts: 20
 

Default Re: Category Description

shouldn't it be a category template since we are trying to display all the top level category images?

Thanks!
__________________
www.webeditors.com
4.2.1 or 4.2.2
Reply With Quote
  #9  
Old 08-13-2009, 04:26 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Category Description

Products.tpl (Category):
Code:
{if $config.Appearance.products_per_row && ($featured eq "Y" || $config.Appearance.featured_only_multicolumn eq "N")} {include file="customer/main/products_t.tpl"} {else}


Products_t.tpl:

Code:
<div class="image"> <a href="product.php?productid={$product.productid}&amp;cat={$cat}&amp;page={$navigation_page}">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a> {if $active_modules.Special_Offers ne "" && $product.have_offers} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl"} {/if} {* <a href="product.php?productid={$product.productid}&amp;cat={$cat}&amp;page={$navigation_page}" class="see-details">{$lng.lbl_see_details}</a> *} </div>


Thats the code for thumbnails displayed on category.
products.tpl calls products_t.tpl
__________________
- Shane Munroe
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 09:52 PM.

   

 
X-Cart forums © 2001-2020