AJAX product pagination

03.02.2014 22:20
#1
Igorenia
Joomshopping forum user no avatar
Name: Igor
07.09.2012
Posts: 8
Quote
AJAX product pagination

AJAX product pagination duplicate items. For example:
http://www.zakazhi.com.ua/katalog-tovarov/tekhnika-dlya-kukhni/blendery-miksery.html


Joomla: 2.5.14
JoomShopping: 3.15.3
PHP: 5.3.3
Website Url: www.zakazhi.com.ua
 
04.02.2014 20:49
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19073
Quote
Aw: AJAX product pagination

The problem in the module on the left position.

Delete CSS class "jshop" for module

 
04.02.2014 21:04
#3
Igorenia
Joomshopping forum user no avatar
Name: Igor
07.09.2012
Posts: 8
Quote
Aw: AJAX product pagination

Thank you, it helped.
But the description of the category still duplicated 4 times

 
04.02.2014 21:31
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19073
Quote
Aw: AJAX product pagination

template changes?

 
04.02.2014 21:33
#5
Igorenia
Joomshopping forum user no avatar
Name: Igor
07.09.2012
Posts: 8
Quote
Aw: AJAX product pagination

Just moved down description. not more than

 
04.02.2014 21:39
#6
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19073
Quote
Aw: AJAX product pagination

Try use original.

 
04.02.2014 21:52
#7
Igorenia
Joomshopping forum user no avatar
Name: Igor
07.09.2012
Posts: 8
Quote
Aw: AJAX product pagination

Are there other ways to solve? I need just such a template - with the description bottom

 
04.02.2014 21:59
#8
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19073
Quote
Aw: AJAX product pagination

only try.

send code template.

 
04.02.2014 22:05
#9
Igorenia
Joomshopping forum user no avatar
Name: Igor
07.09.2012
Posts: 8
Quote
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?>


Letzte Änderung: 04.02.2014 22:06
 
04.02.2014 22:09
#10
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19073
Quote
Aw: AJAX product pagination

Change to

<?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");?>

<?php print $this->category->description?>
</div>

 
04.02.2014 22:29
#11
Igorenia
Joomshopping forum user no avatar
Name: Igor
07.09.2012
Posts: 8
Quote
Aw: AJAX product pagination

Thank you!

 
25.08.2014 15:45
#12
Bazaliy
Joomshopping forum user no avatar
Name: Yura
20.01.2013
Posts: 1
Quote
Aw: AJAX product pagination

Its doesn't work in search.

 
25.08.2014 18:41
#13
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19073
Quote
Aw: AJAX product pagination

Works for me.

url?

 


Copyrights MAXXmarketing GmbH. All Rights Reserved
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.