SMFHacks.com
SMF Store => Support => Topic started by: moomoo on July 01, 2016, 01:08:23 pm
-
Hi wondering if the default order could be rectified as the smf store as the index.
i.e: when someone visits my domain.com - the store is the first viewed.
-
Yes it can be changed. You can change the SMF forum to replace board with the store index requires one change.
-
could you show me please, i have already worked out that subs.php contains the menu order, i just need help with the default action being the store.
thanks in advance.
-
It would be in in the index.php file in root file
two changes
Find
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
Replace with
// Action and board are both empty... Store index!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/Store2.php');
return 'StoreMain';
}
Find
// Fall through to the board index then...
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
Replace with
// Fall through to the store index then...
require_once($sourcedir . '/Store2.php');
return 'StoreMain';