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)
-   -   how to show Bestsellers and specials on all pages including static pages (https://forum.x-cart.com/showthread.php?t=28225)

onewebsite 01-22-2007 02:41 AM

how to show Bestsellers and specials on all pages including static pages
 
Hi does any one know how to show the Bestsellers and specials on all pages including static pages. Currently when im under say contact us/about us pages the specials and bestsellers displays nothing.

Is anyone able to help.
Thanks

X-cart version 4.1

balinor 01-22-2007 03:52 PM

Re: how to show Bestsellers and specials on all pages including static pages
 
Have you had a look in the Custom Mods forum? I believe there are a few mods for this kind of functionality.

onewebsite 01-22-2007 08:02 PM

Re: how to show Bestsellers and specials on all pages including static pages
 
Hi yes have tried that but didnt find anything.

balinor 01-23-2007 02:59 AM

Re: how to show Bestsellers and specials on all pages including static pages
 
Here's a start:

http://forum.x-cart.com/showthread.php?t=6073&highlight=bestsellers+all+pa ges

ranger82nd 01-23-2007 11:41 AM

Re: how to show Bestsellers and specials on all pages including static pages
 
This one caused me fits as well, so I coughed up some points to get it resolved.

1. Add a new static page (embedded level) with the following code, put it where you want the items to show.
Code:

{ include file="modules/Bestsellers/bestsellers.tpl" }
2. Add to the <xcart_dir>/pages.php as shown below:
Code:

if ($pageid == <page_id>)
include $xcart_dir."/modules/Bestsellers/bestsellers.php";

where you should replace <page_id> with the page id of the static page created at step one.

You can pretty much do this for any of the modules, not just bestsellers!


All times are GMT -8. The time now is 06:48 PM.

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