SMFShop > Installation Problems

Installation problem?

(1/1)

blitzchic:
Hi guys, I have just recently installed the new SMFShop (for the first time) but there is no-where in Admin Centre for me to be able to change any settings? Nothing shows up in the Mainenaince section .. any ideas?

Daniel15:
Hmmmm... Check your Sources/Subs.php for a SMFShop section.
If there's not one, then here's how to fix the problem:
Open Sources/Subs.php, and find:

validateSession();


Add before:

//Begin SMFShop code
loadLanguage('Shop');
        if (allowedTo('shop_admin'))
    $context['admin_areas']['shop'] = array (
    'title' => $txt['shop_admin'],
    'areas' => array(
      'shop_general' => "<a href='$scripturl?action=shop_general'>{$txt['shop_admin_general']}</a>",
    'shop_inventory' => "<a href='$scripturl?action=shop_inventory'>{$txt['shop_admin_inventory']}</a>",
                'shop_items' => $txt['shop_admin_items'],
'shop_items_edit' => "|--- <a href='$scripturl?action=shop_items_edit'>{$txt['shop_admin_items_addedit']}</a>",
'shop_restock' => "|--- <a href='$scripturl?action=shop_restock'>{$txt['shop_admin_restock']}</a>",

'shop_usergroup' => "<a href='$scripturl?action=shop_usergroup'>{$txt['shop_admin_usergroup']}</a>",
    ) 
    );
//End SMFShop code


Hope this helps you :)

blitzchic:
Thanks for the quick response Daniel :D

There is that code there in the subs.php .. I checked it, and its the same ..

Daniel15:
Hmmm... Try accessing [yourforum]/index.php?action=shop_general, and see if that works.

Navigation

[0] Message Index

Go to full version