Имею мало знаний по PHP, но желаю научится, не сочтите за невежество если что то не так спрошу...
Есть Интернет каталог (магазин Joomshopping) где размещаю прайсы разных производителей.
Теперь вопрос:
Открывается страница категорий, а там- снова множество подкатегорий, а хочется, что был полностью весь прайс с группировкой товаров. То-есть открываешь категорию, а там список подкатегорий с "+" слева, и при нажатии на название или на плюс открываются список товара в подкатегории. Например как в Exel.
Вот PHP код который содержит список категорий:
<div class="jshop">
<h1><?php print $this->category->name?></h1>
<?php print $this->category->description?>
<div class="jshop_list_category">
<?php if (count($this->categories)){ ?>
<table class = "jshop list_category">
<?php foreach($this->categories as $k=>$category){?>
<?php if ($k%$this->count_category_to_row==0) print "<tr>"; ?>
<td class="jshop_categ" width="<?php print (100/$this->count_category_to_row)?>%">
<table class = "category">
<tr>
<td class="image">
<a href = "<?php print $category->category_link;?>"><img class="jshop_img" src="<?php print $this->image_category_path;?>/<?php if ($category->category_image) print $category->category_image; else print $this->noimage;?>" alt="<?php print htmlspecialchars($category->name)?>" title="<?php print htmlspecialchars($category->name)?>" /></a>
</td>
</tr><!Dodaem>
<tr><!Dodaem>
<td>
<a class = "product_link" href = "<?php print $category->category_link?>"><?php print $category->name?></a>
<p class = "category_short_description"><?php print $category->short_description?></p>
</td>
</tr>
</table>
</td>
<?php if ($k%$this->count_category_to_row==$this->count_category_to_row-1) print '</tr>'; ?>
<?php } ?>
<?php if ($k%$this->count_category_to_row!=$this->count_category_to_row-1) print '</tr>'; ?>
</table>
<?php }?>
</div>
<?php include(dirname(__FILE__)."/products.php");?>
</div>
а это ссылка на внешний вид: http://opt-torg.in.ua/index.php/kategorii/...lyuchateli.html
А вот PHP код со списка товаров:
<?php print $product->_tmp_var_start?>
<td class="name">
<a class="product_name" href="<?php print $product->product_link?>"><?php print $product->name?><img class="jshop_img" src="<?php print $product->image?>" alt="<?php print htmlspecialchars($product->name);?>" /></a>
<?php if ($this->config->product_list_show_product_code){?><span class="jshop_code_prod">(<?php print _JSHOP_EAN?>: <?php print $product->product_ean;?>)</span><?php }?>
</td>
<td class = "jshop_price">
<?php if ($product->_display_price){?>
<?php if ($this->config->product_list_show_price_description) print _JSHOP_PRICE.": ";?>
<?php if ($product->show_price_from) print _JSHOP_FROM." ";?>
<?php print formatprice($product->product_price);?>
<?php }?>
</td>
<td>
<input type = "text" name = "quantity[]" id = "<?php print $product->product_id?>" class="<?php print $product->category_id?>" style = "width: 60px" value = "0" onchange="var val = jQuery('#<?php print $product->product_id?>').val(); jQuery('#a<?php print $product->product_id?>').attr('href', '<?php print $product->buy_link?>&quantity='+val);"/>
</td>
<td class="buttons">
<?php if ($product->buy_link){?>
<a class="button" id="a<?php print $product->product_id?>" href="<?php print $product->buy_link?>&quantity=1"><?php print _JSHOP_BUY?></a>
<?php }?>
</td>
<?php print $product->_tmp_var_end?>
А это ссылка на внешний вид: http://opt-torg.in.ua/index.php/main/hager...inal-6-63a.html
в принципе если править категории и вставить текст со списком товара, я могу добиться желаемого результата? Или необходимо кроме этих файлов еще где то править?