X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Category Description (https://forum.x-cart.com/showthread.php?t=49025)

kierweb 08-06-2009 12:43 AM

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?

AusNetIT 08-07-2009 03:45 AM

Re: Category Description
 
Your Version?

kierweb 08-07-2009 04:16 AM

Re: Category Description
 
Sorry I forgot to mention that ... using the latest v4.2

kierweb 08-13-2009 01:46 AM

Re: Category Description
 
Any ideas ?

Shamun 08-13-2009 02:17 AM

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

webeditors 08-13-2009 01:41 PM

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)

Shamun 08-13-2009 02:28 PM

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.

webeditors 08-13-2009 02:36 PM

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

Thanks!

Shamun 08-13-2009 04:26 PM

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


All times are GMT -8. The time now is 10:52 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.