| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
$cat.category..........desc? | ||||
|
|
Thread Tools | Search this Thread |
#31
|
|||||||||
|
|||||||||
Re: $cat.category..........desc?
You are trying to list more then one category - currect_category is just what it says and applies to currect category you are in and is only one category. This {foreach from=$current_category item=cat} will list individual properties under currect category and nothing else. Not sure yet where are you trying all of this and what variable are available. Try this
{foreach from=$categories key=c item=i} $i.category : $i.description {/foreach} but looking at your debug file attached here you still don't have description included in categories arrays. You need to edit php file and include it
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#32
|
|||||||||
|
|||||||||
Re: $cat.category..........desc?
Quote:
Oh sorry about that, it's on the home_list.tpl which loads up in the home page. Ashley has the code working on his website. The debug file attached is when you go into the category which is where the variable was original taken from and is working. But it doesn't work in home_list.tpl Very sorry about that confusion. --- Update --- I tried changing the code you mentioned. What php did you think I should edit and include. When I changed the code I realized it was also pulling up another variable and displaying it. Which was Category. So that's neat, it can display the ID and the Category as well. But not the description? How do we make the array begin from Current_Category?
__________________
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. |
|||||||||
#33
|
|||||||||
|
|||||||||
Re: $cat.category..........desc?
This is part of the debug window
Code:
I assume you are trying to get this code to work Code:
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#34
|
|||||||||
|
|||||||||
Re: $cat.category..........desc?
Quote:
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. |
|||||||||
#35
|
|||||||||
|
|||||||||
Re: $cat.category..........desc?
See earlier posts. categories.php probably but just read through the thread
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#36
|
|||||||||
|
|||||||||
Re: $cat.category..........desc?
Quote:
Hey, Ashley, if there's no problem with it, could you attach your categories.php to me? I'm going to compare it to the one that I have. And since I know the one you have is working, it would really help.
__________________
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. |
|||||||||
#37
|
|||||||||
|
|||||||||
Re: $cat.category..........desc?
Quote:
DER SUCCESS! THANK YOU CFL and Ashley! Yeah, so I went into the categories.php I don't know if this was modified but you were absolutely right. I cross referenced with what Ashley said, and figured that it had nothing to do with the home_list page. These were the exact lines that needed to be changed. Code:
with Code:
I'm sorry if I wasn't listening clearly in the beginning. Thank you once again guys!
__________________
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. |
|||||||||
#38
|
|||||||||
|
|||||||||
Re: $cat.category..........desc?
DERRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR!!!!! glad you got it!!
__________________
xcart 5.1.2 |
|||||||||
|
#39
|
|||||||||
|
|||||||||
Re: $cat.category..........desc?
derrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr rrrrrrrrr
__________________
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. |
|||||||||
#40
|
|||||||||
|
|||||||||
Re: $cat.category..........desc?
Keep on reading, you will get a lot more
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|