After update theme to 1.2.4 – problem with page pagination in Stories – see atached image.
-
This reply was modified 3322 days ago by npop.
|
|
Hi,
We will need the website url, admin and ftp access, so we can check.
You can use hidepost to share private information with the support staff.
Best,
ThemeBurn team
|
|
Version 1.2.4 is still on my local server. OpenCart 1.5.6.4, Pavilion 1.2.4
I think the problem is in the file
catalog/view/theme/pavilion/template/stories/index.tpl
rows from 61 to 66
<div class="pagination tb_border_str_2">
<?php $pagination = str_replace('<a', '<a class="tb_bg_str_2 tb_bg_hover_str_3"', $pagination); ?>
<?php $pagination = str_replace('<span', '<span class="tb_text_str_3"', $pagination); ?>
<?php echo str_replace('pagination', 'links', $pagination); ?>
<div class="results"><?php echo $results; ?></div>
</div>
row 64 - <?php echo str_replace('pagination', 'links', $pagination); ?> - displayed:
<div class="links">
<b>1</b>
<a class="tb_bg_str_2 tb_bg_hover_str_3" href="http://site.com/articles?page=2">2</a>
<a class="tb_bg_str_2 tb_bg_hover_str_3" href="http://site.com/articles?page=2">></a>
<a class="tb_bg_str_2 tb_bg_hover_str_3" href="http://site.com/articles?page=2">>|</a>
</div>
<div class="results">Showing 1 to 2 of 3 (2 Pages)</div>
row 65 - <div class="results"><?php echo $results; ?></div> - displayed:
<div class="results">Showing {start} to {end} of {total} ({pages} Pages)</div>
The same is in file – catalog/view/theme/pavilion/template/stories/tag.tpl – row from 65 to 70
<div class="pagination tb_border_str_2">
<?php $pagination = str_replace('<a', '<a class="tb_bg_str_2 tb_bg_hover_str_3"', $pagination); ?>
<?php $pagination = str_replace('<span', '<span class="tb_text_str_3"', $pagination); ?>
<?php echo str_replace('pagination', 'links', $pagination); ?>
<div class="results"><?php echo $results; ?></div>
</div>
I found another error in module STORIES:
When category (tag) has been selected page navigation does not work corectly. The code for tag (story_tag_id) is missing in the links for next, prev, last and first page and all articles are displayed instead of those of the selected category.
In file catalog\controler\stories\tag.php, row 86:
$pagination->url = $this->url->link('stories/index', $url . '&page={page}');
“stories/index” instead of “stories/tag” and missing “story_tag_id”
How corect this errors.
-
This reply was modified 3317 days ago by npop.
|
|
Hi,
Open catalog/view/theme/pavilion/template/stories/index.tpl and catalog/view/theme/pavilion/template/stories/tag.tpl and remove this code line:
<div class="results"><?php echo $results; ?></div>
BR,
ThemeBurn team
|
|
This I did as soon as I found.
How can i fix problem with category list in Stories module?
|
|
Hi,
just unzip the attached file and upload its contents to your opencart’s root folder, replacing the current files. It should fix your issues with tag pagination.
BR,
ThemeBurn team
|
|
Glad we’ve helped
BR,
ThemeBurn team
|
|