If this is your first visit, check our documentation. To post, register or login.

Admin Folder questions

Started by johntitsworth on 6 Sep 2011, 1:06 AM · Views: 977

Results 1 to 12 of 12
6 Sep 2011, 1:06 AM
#1
johntitsworth avatar

johntitsworth

New Zenner

Join Date:
Mar 2011
Posts:
17
Plugin Contributions:
0

Post #1 by johntitsworth

Something strange is going on and I wanted to know how to fix a certain problem.

I have a site called https://www.mysite.com (well, not really but you get the point).

It has a folder that I called https://www.mysite.com/SecretAdminSection (not really the correct name, but you get the idea)

I installed a complete mirror of the same site under another folder like this:

https://www.mysite.com/special

It works well. I then used a protection system and made this folder so that you have to have a separate username and password to see the special section (cheaper pricing). This software is from Omni Site Security which I have used successfully on another website for years.

All that works fine, but what doesn't work is when I try to admin using https://www.mysite.com/special/SecretAdminSection this shows in the browser...
https://www.mysite.com/SecretAdminSection instead of the protected area directory so when I adjust the prices it doest it to the main site instead of the special area.

Why?

I am using a mac book pro, version v1.3.9h

What I want to do is have the basic site for regular customers, and then a separate area for my dealers that use this protected area for the cheaper pricing. All this software does from Omni Site Security is allows me to "protect" folders so only those who I want to can see those areas. I want to run a retail and dealer/wholesale site. I cant figure why the system is not looking in the right place. I even tried to change the name SecretAdminSection to SecretAdminSection1 and that didn't help.

6 Sep 2011, 3:21 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #2 by swguy

In special/SecretAdminSection/includes/configure.php check to see that DIR_WS_ADMIN and all other paths include the "special" path component.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

6 Sep 2011, 3:25 AM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #3 by swguy

Also note: it will be easier for you if these two directory names don't overlap. For example, perhaps your main shop could be:

https://www.mysite.com/regular_shop/

(with https://www.mysite.com/regular_shop/SecretAdmin as the admin)

and your special shop could be

https://www.mysite.com/special_shop/

(with https://www.mysite.com/special_shop/SecretAdmin as the admin)

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

6 Sep 2011, 3:18 PM
#4
johntitsworth avatar

johntitsworth

New Zenner

Join Date:
Mar 2011
Posts:
17
Plugin Contributions:
0

Post #4 by johntitsworth

swguy:

In special/SecretAdminSection/includes/configure.php check to see that DIR_WS_ADMIN and all other paths include the "special" path component.

I did finally get this to show the correct path using your method above, but when I admin'ed to change pricing, it changed the prices on the main site too :no:

I wanted to install a carbon copy of the main site on this protected area, but I guess I will have to delete it all, and do a fresh zen cart install and do all that work again....:frusty:

Any other suggestions?

6 Sep 2011, 3:24 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #5 by swguy

Are you sure the special site has a separate database listed in the two configure.php files?
Posted via Mobile Device

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

6 Sep 2011, 3:45 PM
#6
johntitsworth avatar

johntitsworth

New Zenner

Join Date:
Mar 2011
Posts:
17
Plugin Contributions:
0

Post #6 by johntitsworth

That might be the problem. It looks for the database that is in use for the main site cause its a mirror image of the main site.

That makes two new questions.

  1. Will I have to make a new database and point the configure.php files (there are two, and I have been moding only that one) to look at the new database?

  2. Will that throw off the zen cart software on the secret site since it will be looking in a blank database.

Guess I should ask if I can make a copy of the current database and rename its something like zendatabase_secret? And then point the configure.php files to look there? I assume if I did that the databases would be different at that point going forward?

Thanks for you help

6 Sep 2011, 5:24 PM
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #7 by swguy

You should export your current database and import it under a new name, and use this for the secret site. Doing things the way you are proposing, you will need two databases and two completely separate cart builds.

Have you considered using Group Pricing (a built in feature) or the Dual Pricing mod to provide special pricing for your dealers? Or do you really want two sites with different look & feel and different content, etc.?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

6 Sep 2011, 7:12 PM
#8
johntitsworth avatar

johntitsworth

New Zenner

Join Date:
Mar 2011
Posts:
17
Plugin Contributions:
0

Post #8 by johntitsworth

I dont mind having two sites, as the things I sell on that site are federally restricted items, so its ok.

Any advise on database exporting?

Thanks

6 Sep 2011, 7:18 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #9 by swguy

Your hoster will have phpMyAdmin as a CPanel application. Use that.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

7 Sep 2011, 12:36 PM
#10
johntitsworth avatar

johntitsworth

New Zenner

Join Date:
Mar 2011
Posts:
17
Plugin Contributions:
0

Post #10 by johntitsworth

swguy:

Your hoster will have phpMyAdmin as a CPanel application. Use that.

Finally got it to work, but I have one remaining problem that you might know how to fix.

Since the secret site was a carbon copy of the main site, when a dealer logs into the dealer site he sees the dealer price, not the retail price. However when he clicks on the product it takes him to the retail site instead of staying on the dealer site.

I imagine this problem will be easy to fix as all the links on the dealer site only need to add the following to the link...

https://www.mysite.com/secret/dealers

the /secret/dealers is the part I need to tell zen cart to look for when in that directory. Any ideas how to do that?

Thanks!

7 Sep 2011, 12:48 PM
#11
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #11 by swguy

This will be in your secret/dealers/includes/configure.php and secret/dealers/admin/includes/configure.php. Both of these files need to know about the "secret" file path.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

7 Sep 2011, 1:19 PM
#12
johntitsworth avatar

johntitsworth

New Zenner

Join Date:
Mar 2011
Posts:
17
Plugin Contributions:
0

Post #12 by johntitsworth

swguy:

This will be in your secret/dealers/includes/configure.php and secret/dealers/admin/includes/configure.php. Both of these files need to know about the "secret" file path.

This worked. I figured that it would be in the config files. Thanks a bunch for all your help!!!