Post by johny2k » Wed Aug 20, 2008 4:00 pm

Hi, I just done the Next/Previous button page function, really thanks brother jarek to share it, here is my another question. Hope some one can help me, thank you.

How can i copy the next/previous page function to bottom right corner side (Please view the picture i attach here)? Before this, i got try to copy & paste the code from category.tpl. But it`s not working. Hope all of you can give me suggestion again, thank you.

Regards,
John

Attachments

???
resultbar2.png
???
resultbar.png
Last edited by johny2k on Thu Aug 21, 2008 10:39 am, edited 1 time in total.

New member

Posts

Joined
Tue Mar 04, 2008 4:35 pm

Post by Qphoria » Wed Aug 20, 2008 7:21 pm

look for the page stuff in catalog/template/default/content/category.tpl
Move it where you want it.

Code: Select all

  <div class="right"><?php echo $entry_page; ?>
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
      <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>
    </form>
  </div>

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by johny2k » Thu Aug 21, 2008 10:41 am

Qphoria wrote: look for the page stuff in catalog/template/default/content/category.tpl
Move it where you want it.

Code: Select all

  <div class="right"><?php echo $entry_page; ?>
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
      <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>
    </form>
  </div>
Dear Qphoria Brother,

I think i have been do a mistake again, i mean need to duplicated it one more to bottom side..... sorry for my poor english........... :'( :'(

Regards,
John

New member

Posts

Joined
Tue Mar 04, 2008 4:35 pm

Post by bruce » Thu Aug 21, 2008 11:08 am

search search search... the forum posts are full of goodies including this complete solution

http://forum.opencart.com/index.php/top ... ml#msg4174

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm
Who is online

Users browsing this forum: No registered users and 1 guest