Hello.
Prompt how to alter the standard category_default.php template.
It is necessary to lead to the following look when opening category the goods of this category were displayed, the ambassador in a bottom the name of a subcategory was displayed and the goods of this subcategory are lower
The code of a standard template led to the following look:
<div class="jshop">
<h1><?php print $this->category->name?></h1>
<?php print $this->category->description?>
<?php include(dirname(__FILE__)."/products.php");?>
</div>
<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></td>
</tr>
<tr>
<td align="center">
<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>
<h1><?php print $this->category->name?></h1>
<?php print $this->category->description?>
<?php include(dirname(__FILE__)."/products.php");?>
</div>
<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></td>
</tr>
<tr>
<td align="center">
<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>
Prompt that it is necessary to add that the subcategory goods were deduced. Or it not here becomes?
Joomla: 2.5.7
JoomShopping: 3.11.2
Website Url: znaksnab.ru
JoomShopping: 3.11.2
Website Url: znaksnab.ru