Is there an effective way to duplicate the pagination at the top right to the bottm right of each page? It would prevent having to scroll all the way back to the top just to go the next page?
Also, can page 1 (of however many pages) be made the default page? As it is now, if you are on page 3 and navigate away from that page but then return you are still on page 3.
Thanks,
Sam
Also, can page 1 (of however many pages) be made the default page? As it is now, if you are on page 3 and navigate away from that page but then return you are still on page 3.
Thanks,
Sam
I actually discovered a bug looking into this.....shughey wrote: Is there an effective way to duplicate the pagination at the top right to the bottm right of each page? It would prevent having to scroll all the way back to the top just to go the next page?
Edit: catalog/template/default/content/category.tpl
Find:
Code: Select all
<div class="results">
<div class="left"><?php echo $text_results; ?></div>
<div class="right"><?php echo $entry_page; ?>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
<div>
<select name="page" onchange="this.form.submit();">
<?php foreach ($pages as $pages) { ?>
<?php if ($pages['value'] == $page) { ?>
<option value="<?php echo $pages['value']; ?>" SELECTED><?php echo $pages['text']; ?></option>
<?php } else { ?>
<option value="<?php echo $pages['value']; ?>"><?php echo $pages['text']; ?></option>
<?php } ?>
<?php } ?>
</select>
</div>
</form>
</div>
</div>
Code: Select all
<div class="results">
<div class="left"><?php echo $text_results; ?></div>
<div class="right"><?php echo $entry_page; ?>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
<div>
<select name="page" onchange="this.form.submit();">
<?php foreach ($pages as $xpage) { ?>
<?php if ($xpage['value'] == $page) { ?>
<option value="<?php echo $xpage['value']; ?>" SELECTED><?php echo $xpage['text']; ?></option>
<?php } else { ?>
<option value="<?php echo $xpage['value']; ?>"><?php echo $xpage['text']; ?></option>
<?php } ?>
<?php } ?>
</select>
</div>
</form>
</div>
</div>
Code: Select all
<div class="results">
<div class="left"><?php echo $text_results; ?></div>
</div>
Code: Select all
<div class="results">
<div class="left"><?php echo $text_results; ?></div>
<div class="right"><?php echo $entry_page; ?>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
<div>
<select name="page" onchange="this.form.submit();">
<?php foreach ($pages as $xpage) { ?>
<?php if ($xpage['value'] == $page) { ?>
<option value="<?php echo $xpage['value']; ?>" SELECTED><?php echo $xpage['text']; ?></option>
<?php } else { ?>
<option value="<?php echo $xpage['value']; ?>"><?php echo $xpage['text']; ?></option>
<?php } ?>
<?php } ?>
</select>
</div>
</form>
</div>
</div>
Yea, this is one of those features that nobody cares for. You can fix it.....Also, can page 1 (of however many pages) be made the default page? As it is now, if you are on page 3 and navigate away from that page but then return you are still on page 3.
EDIT: catalog/controller/category.php
FIND:
Code: Select all
$session->set(($request->has('path') ? 'category.' . $request->gethtml('path') . '.page' : 'category.page'), $request->gethtml('page', 'post'));
//$session->set(($request->has('path') ? 'category.' . $request->gethtml('path') . '.page' : 'category.page'), $request->gethtml('page', 'post'));
See below for proper fix
Last edited by Qphoria on Sat Jan 10, 2009 6:00 am, edited 1 time in total.
Also, can page 1 (of however many pages) be made the default page? As it is now, if you are on page 3 and navigate away from that page but then return you are still on page 3.
This defaults any attempt to go to page 2, 3, 4 or whatever back to page 1 without ever going to page 2,3,4 or whatever.Yea, this is one of those features that nobody cares for. You can fix it.....
EDIT: catalog/controller/category.php
FIND:REPLACE WITH:Code: Select all
$session->set(($request->has('path') ? 'category.' . $request->gethtml('path') . '.page' : 'category.page'), $request->gethtml('page', 'post'));
Code: Select all
//$session->set(($request->has('path') ? 'category.' . $request->gethtml('path') . '.page' : 'category.page'), $request->gethtml('page', 'post'));
OH yea sorry..
UNDO THAT CHANGE
The proper fix is:
FIND:
AFTER, ADD:
UNDO THAT CHANGE
The proper fix is:
FIND:
Code: Select all
$view->set('page', ($request->has('path') ? $session->get('category.' . $request->gethtml('path') . '.page') : $session->get('category.page')));
Code: Select all
$session->delete('category.' . $request->gethtml('path') . '.page');
Last edited by Qphoria on Sat Jan 10, 2009 6:07 am, edited 1 time in total.
Excellent. Works great.Qphoria wrote: OH yea sorry..
UNDO THAT CHANGE
The proper fix is:
FIND:AFTER, ADD:Code: Select all
$view->set('page', ($request->has('path') ? $session->get('category.' . $request->gethtml('path') . '.page') : $session->get('category.page')));
Code: Select all
$session->delete('category.' . $request->gethtml('path') . '.page');
I'm a bit confused with something. You said toQphoria wrote:I actually discovered a bug looking into this.....shughey wrote: Is there an effective way to duplicate the pagination at the top right to the bottm right of each page? It would prevent having to scroll all the way back to the top just to go the next page?
Edit: catalog/template/default/content/category.tpl
Find:Replace with:Code: Select all
<div class="results"> <div class="left"><?php echo $text_results; ?></div> <div class="right"><?php echo $entry_page; ?> <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data"> <div> <select name="page" onchange="this.form.submit();"> <?php foreach ($pages as $pages) { ?> <?php if ($pages['value'] == $page) { ?> <option value="<?php echo $pages['value']; ?>" SELECTED><?php echo $pages['text']; ?></option> <?php } else { ?> <option value="<?php echo $pages['value']; ?>"><?php echo $pages['text']; ?></option> <?php } ?> <?php } ?> </select> </div> </form> </div> </div>
Then Find:Code: Select all
<div class="results"> <div class="left"><?php echo $text_results; ?></div> <div class="right"><?php echo $entry_page; ?> <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data"> <div> <select name="page" onchange="this.form.submit();"> <?php foreach ($pages as $xpage) { ?> <?php if ($xpage['value'] == $page) { ?> <option value="<?php echo $xpage['value']; ?>" SELECTED><?php echo $xpage['text']; ?></option> <?php } else { ?> <option value="<?php echo $xpage['value']; ?>"><?php echo $xpage['text']; ?></option> <?php } ?> <?php } ?> </select> </div> </form> </div> </div>
Replace with:Code: Select all
<div class="results"> <div class="left"><?php echo $text_results; ?></div> </div>
Code: Select all
<div class="results"> <div class="left"><?php echo $text_results; ?></div> <div class="right"><?php echo $entry_page; ?> <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data"> <div> <select name="page" onchange="this.form.submit();"> <?php foreach ($pages as $xpage) { ?> <?php if ($xpage['value'] == $page) { ?> <option value="<?php echo $xpage['value']; ?>" SELECTED><?php echo $xpage['text']; ?></option> <?php } else { ?> <option value="<?php echo $xpage['value']; ?>"><?php echo $xpage['text']; ?></option> <?php } ?> <?php } ?> </select> </div> </form> </div> </div>
Then Find:
Code: Select all
<div class="results">
<div class="left"><?php echo $text_results; ?></div>
</div>
(no second /div)
There are 2 spots... that second one is at the very bottom.shughey wrote:
I'm a bit confused with something. You said to
Then Find:Isn't this part of what I already did above? All I can find isCode: Select all
<div class="results"> <div class="left"><?php echo $text_results; ?></div> </div>
(no second /div)
Or just use the attached version:
Attachments
I found the problem. It's working perfectly now.Qphoria wrote:There are 2 spots... that second one is at the very bottom.shughey wrote:
I'm a bit confused with something. You said to
Then Find:Isn't this part of what I already did above? All I can find isCode: Select all
<div class="results"> <div class="left"><?php echo $text_results; ?></div> </div>
(no second /div)
Or just use the attached version:
Thanks,
Sam
http://code.google.com/p/open-cart/source/detail?r=327
Are there any other changes to be made? I'll probably leave them up to Qphoria.
Are there any other changes to be made? I'll probably leave them up to Qphoria.
Who is online
Users browsing this forum: No registered users and 33 guests