View Single Post
  #34  
Old 09-08-2009, 06:34 AM
  cowsdonthack's Avatar 
cowsdonthack cowsdonthack is offline
 

Advanced Member
  
Join Date: May 2009
Location: Out in the field. Chewin some grass
Posts: 89
 

Default Re: $cat.category..........desc?

Quote:
Originally Posted by cflsystems
This is part of the debug window
Code:
{$categories} Array (14) 155 => Array (11) parentid => "0" categoryid_path => "155" category => "Access Control Hardware" avail => "Y" order_by => "0" subcategory_count => "4" product_count => "59" is_icon => "Y" image_path => "./images/C/01.gif" categoryid => 155 icon_url => "http://www.qualitydoor.com/images/C/0..." 9 => Array (11) parentid => "0" categoryid_path => "9" category => "Bathroom Accessories" avail => "Y" order_by => "0" subcategory_count => "16" product_count => "173" is_icon => "Y"
as you can see there is no description in categories arrays. Edit php file as posted earlier so you can get the descr to show in arrays, then you will be able to access it
I assume you are trying to get this code to work
Code:
<div class="bot_cat" align="left"> {foreach from=$categories item=cat} <a class="bot_products" href="home.php?cat={ $cat.categoryid }"><img src="{$xcart_web_dir}/image.php?id={ $cat.categoryid }&amp;type=C" alt="" />{ $cat.categoryid } </a>{/foreach} </div>
after you edit the php file and have descr in cat arrays they yes it will be {$cat.description} inside that code

Thank you so much for bringing that up, I didn't even know that the webmaster mode was giving me ALL the variables for each thing, that's very helpful

But when you mean editing the PHP file did you mean -->
func.category.php
categories.php
or the index or home_list?
__________________
Moo?
Quality Door & Hardware

Version
X-Cart 4.1.108

Add-ons
X-AOM (Advanced Order Management)
Ad / Banner X-cart Mod (BCSE)
DSEFU
Dynamic Image Mod
Pre-login Shipping Calculator
Power Filter
Contact Us Form
Shipping Carrier Mod
Submit Button

Send me a message, I can talk about anything.
Reply With Quote