Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Page {current page} of {total page}

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-04-2008, 01:41 PM
 
Oktane Design Oktane Design is offline
 

Member
  
Join Date: Apr 2008
Posts: 29
 

Default Page {current page} of {total page} [Solved]

Hello how can i display;

Page {current page} of {total page}

into the navigation.tlp?

Thanks a lot!
__________________
X-Cart version 4.2
Reply With Quote
  #2  
Old 11-04-2008, 11:58 PM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Page {current page} of {total page}

after the line
HTML Code:
{if $total_pages gt 2}

insert
HTML Code:
Page {$navigation_page} of {$total_pages}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #3  
Old 11-05-2008, 05:36 AM
 
Oktane Design Oktane Design is offline
 

Member
  
Join Date: Apr 2008
Posts: 29
 

Default Re: Page {current page} of {total page}

Hello Victor,

There's a little bug, the total of pages is always one more than what it should be. if i have a total of 28 pages it will show 29 pages.

Also my maximum navigation pages is set to 15 pages in the x-cart admin. Even if i have 30 pages it will show page 15 of 16 and the next step 16 of 31. That's not the real total but the total of the number of pages shown.

thanks
__________________
X-Cart version 4.2
Reply With Quote
  #4  
Old 11-05-2008, 08:12 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Page {current page} of {total page}

HTML Code:
Page {$navigation_page} of {$total_super_pages*$config.Appearance.max_nav_pages}
?
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #5  
Old 11-05-2008, 08:33 AM
 
Oktane Design Oktane Design is offline
 

Member
  
Join Date: Apr 2008
Posts: 29
 

Thumbs up Re: Page {current page} of {total page} [Solved]

Works perfectly.

Thanks a lot Victor.
__________________
X-Cart version 4.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:37 AM.

   

 
X-Cart forums © 2001-2020