View Single Post
  #1  
Old 03-25-2009, 11:58 PM
 
nck-k nck-k is offline
 

Newbie
  
Join Date: Mar 2009
Posts: 8
 

Default Assign multiple arrays in var

Hi,

I am trying to assing multiple arrays to 1 var:

Code:
{assign var=curpath value=$c.categoryid|$ct.parentid|$cat}

Complete code:
Code:
{foreach from=$categories item=ct key=catid} {assign var=catpath value=$ct.categoryid_path} {assign var=curpath value=$c.categoryid/$ct.parentid/$cat} <a href="home.php?cat={$ct.categoryid}" title=" en {$catpath} und {$curpath}">{$ct.category}</a> {if ($ct.expanded || $config.Fancy_Categories.fancy_js eq "Y") && $ct.subcategory_count > 0} <ol> <li>{include file="`$fc_skin_path`/fancy_subcategories_sub.tpl" parent=$ct categories=$ct.childs}</li> </ol> {/if} {/foreach}

i get c.categoryid from another loop, this loop is a part of it.

I want to get a var like: 30/5/2 beacause i need to compare this var with the categoryid_path

This all for the solution of this post:
http://forum.x-cart.com/showthread.php?t=46407
__________________
x-cart gold - 4.1.x
Reply With Quote