| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to display best sellers in a static page? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Not sure if i'm in the right category but I am stumped with this one. I am trying to display the bestsellers in a static page i created through the admin area. I have opened pages.tpl and placed the following code on the page...
{if $active_modules.Bestsellers} {include file="modules/Bestsellers/menu_bestsellers.tpl" } {/if} It displays in the categories page, home page, etc.. However it doesn't show up in a static page. Not sure what i'm doing wrong but I am completely stuck here. I would think that code would work. I do have the Bestsellers module actived too. Please help and thanks in advance for the help.
__________________
Albino D. Matesic -------------------- x-cart version 4.3.2 |
|||||||
#2
|
|||||||
|
|||||||
![]() Open pages.php
FIND: Code: # Assign the current location line
$smarty->assign("location", $location); BEFORE ADD: Code: if ($active_modules["Bestsellers"])
include $xcart_dir."/modules/Bestsellers/bestsellers.php"; In your static page use: Code: {if $active_modules.Bestsellers ne ""}
{include file="modules/Bestsellers/bestsellers.tpl"} {else} Provide a disabled message. {/if} This is for version 4.1.x.. |
|||||||
#3
|
|||||||
|
|||||||
![]() Quote:
Please update your signature.In which version you want to use?? |
|||||||
#4
|
|||||||
|
|||||||
![]() I'm using x-cart 4.3.2.
So i've seen the thread with the three snippets of code provided to me in this thread but my page.tpl only has this code in it. Code:
Am I missing something?
__________________
Albino D. Matesic -------------------- x-cart version 4.3.2 |
|||||||
#5
|
|||||||
|
|||||||
![]() work fine on 4.2, only doing the first 2 steps.
Open pages.php FIND: Code: # Assign the current location line
$smarty->assign("location", $location); BEFORE ADD: Code: if ($active_modules["Bestsellers"])
include $xcart_dir."/modules/Bestsellers/bestsellers.php"; no need for anything else on 4.2 try it on 4.3 versions.Always take backup of your original files. Thanks |
|||||||
#6
|
|||||||
|
|||||||
![]() ok so i've done the following and this is still not displaying bestsellers at all...
Code:
__________________
Albino D. Matesic -------------------- x-cart version 4.3.2 |
|||||||
#7
|
|||||||
|
|||||||
![]() Follow the instructions just change in pages.php file and see the results I think no changes will required in pages.tpl ok..
If it works please let me know.Always take necessary backup of original files. |
|||||||
|
|||
X-Cart forums © 2001-2020
|