Aw: AJAX product pagination
I changed to standard, everything works fine
My category_default.php:
<?php defined('_JEXEC') or die(); ?>
<?php
$document = JFactory::getDocument();
$docstart = JRequest::getInt('start',0);
$docroute = rtrim(JURI::root(), '/').JRoute::_('index.php?option=com_jshopping&controller=category&task=view&category_id=' . $this->category->category_id . '');
if($docstart > 0) {
$document->addHeadLink($docroute, 'canonical', 'rel', '');
}
?>
<div class="jshop">
<h1><?php print $this->category->name?></h1>
<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>
<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>
<?php print $this->category->description?>
Last change: 04.02.2014 22:06