网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   X-Cart (https://www.0058.net/forumdisplay.php?f=70)
-   -   Bestsellers on 1 static page (https://www.0058.net/showthread.php?t=4828)

Abernant 2014-10-03 06:14 PM

Bestsellers on 1 static page
 
Hi guys,

Does anyone know how to create a static page that shows all the bestsellers?

I only want this on one page.

I have created a static page in the admin called shows.php and now I want to show all the bestsellers on the shows page.

My shows page link is ecommerce/pages.php?pageid=12

So i'm guessing I need to give an if statement on pages id=12 somewhere.

Abingdon 2014-10-03 06:16 PM

Turn on webmaster mode. Go to your static page and look to see if $bestsellers is in the list of variables in the popup.

Your lucky it is. {$bestsellers}. That saves some time. First try would be to copy the homepage include code for the bestsellers and paste in a static page in the back end. Make sure you have parse smarty tags ticked.

Tested it on mine and that works so all you need now is a custom {include file="modules/Bestsellers/bestsellers.tpl"} that calls in the amount of products that you want. I would limit it as there will probably be a lot if you have a big store.


All times are GMT +8. The time now is 10:59 PM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.