Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
Shopping Cart Software Forum for Ecommerce Templates
Home | Profile | Register | Active Topics | Members | Search | FAQ
Click Here To Login
Forgot your Password?



Find us on Facebook

Follow us on Twitter

View our YouTube channel

Ecommerce Templates on Google Plus


 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Using dynamic menus on a non store page
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bpike
Advanced Member

USA
212 Posts

Posted - 07/07/2012 :  16:07  Show Profile
How can I call database in the vsadmin folders outside of the cart files directory?

Currently I am using the CSS dynamic menus for my store which resides in a sub directory titled /shop/ http://www.shopbleachers.com/shop/products2.php.

I will be creating the home page outside of the /shop/ directory and want to use the dynamic menus. http://www.shopbleachers.com/index.php

I tried absolute and relative paths and the menu will not display.
include "/shop/vsadmin/db_conn_open.php";
include "/shop/vsadmin/includes.php";
include "/shop/vsadmin/metainfo.php"; ?>

thanks,
Brian

dbdave
ECT Moderator

USA
4369 Posts

Posted - 07/07/2012 :  16:23  Show Profile
I think you are missing at least one include line if that is all you are using.
I think you need incfunctions at least. You should call the languagefile also.

Then you will need the include to call the menu.

If you do all of this and nothing works you can place a copy of the vsadmin folder in the root of the site and leave the include lines the way they are in the store pages and it should work.

If you go that route, you should disable login on that folder with a switch in the includes of that folder only.
To disable the login to your admin section set:
$disallowlogin=TRUE;


One other thought, if the store is new, why not place the store in the root of the site and do away with the whole sub-folder thing?

David

Edited by - dbdave on 07/07/2012 16:24
Go to Top of Page

bpike
Advanced Member

USA
212 Posts

Posted - 07/07/2012 :  17:03  Show Profile
David,

Thanks for the reply. I do have the other include lines down in the body. I just listed these few as an example. I have them in my header.

I got it to work. The only issue I have now is the path to the pages in the menu are missing the sub directory /shop/ as the index page is outside of the store directory.

Maybe this will fix the problem:
quote:
If you do all of this and nothing works you can place a copy of the vsadmin folder in the root of the site and leave the include lines the way they are in the store pages and it should work.


I initially set-up the store with a sub directory as I was going to build part of the site in WordPress so I can utilize a CMS. As this site is almost 100% product based, I may have to rethink that.

Thanks for the insight. It helped me think through things.

Brian
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2013 ecommercetemplates.com Go To Top Of Page
This page was generated in 0.06 seconds. Snitz Forums 2000