X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Page {current page} of {total page} (https://forum.x-cart.com/showthread.php?t=43444)

Oktane Design 11-04-2008 01:41 PM

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!

Victor D 11-04-2008 11:58 PM

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}


Oktane Design 11-05-2008 05:36 AM

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

Victor D 11-05-2008 08:12 AM

Re: Page {current page} of {total page}
 
HTML Code:


Page {$navigation_page} of {$total_super_pages*$config.Appearance.max_nav_pages}

?

Oktane Design 11-05-2008 08:33 AM

Re: Page {current page} of {total page} [Solved]
 
Works perfectly.

Thanks a lot Victor.


All times are GMT -8. The time now is 01:11 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.