categories and products

11.08.2014 16:56
#1
patje
Joomshopping forum user no avatar
Name: Patricia
22.07.2014
Posts: 32
Quote
categories and products

I want to show the categories in colom 1 and de products of categorie 1 in colom 2.
Now I use this code but it doesn't work.
Can someone help me please?

<?php defined('_JEXEC') or die(); ?>
<section>
<article>
<table cellpadding="25" border="1" width="100%" cellspacing="15">
<tr>
<td valign="top" rowspan="2">
<aside>
<ul>
<lh>Categories</lh>
<?php foreach($this->categories as $k=>$category){?>

<?php if ($k%$this->count_category_to_row==0) print "<li>"; ?>

<a href = "<?php print $category->category_link?>"><?php print $category->name?></a>
<?php if ($k%$this->count_category_to_row==$this->count_category_to_row-1) print '</li>'; ?>

<?php } ?>

<?php if ($k%$this->count_category_to_row!=$this->count_category_to_row-1) print '</li>'; ?>
</ul>
</aside>
</td>
<?php foreach ($this->rows as $k=>$product){?>
<?php if ($k%$this->count_product_to_row==0);?>
<td align="center" bgcolor="#FFFFFF">
<?php include(dirname(__FILE__)."/".$product->template_block_product);?>
</td>
<?php if ($k%$this->count_product_to_row==$this->count_product_to_row-1){?>
<tr>
<?php }?>
<?php }?>
<?php if ($k%$this->count_product_to_row!=$this->count_product_to_row-1) print "</tr>";?>
</table>
</article>
</section>


 
12.08.2014 17:33
#2
patje
Joomshopping forum user no avatar
Name: Patricia
22.07.2014
Posts: 32
Quote
Aw: categories and products

please, can someone help me?

 
Copyrights MAXXmarketing GmbH. All Rights Reserved