Forums / General Questions / Trying to Move ZenCart to new folder... Unsuccessful

Trying to Move ZenCart to new folder... Unsuccessful

Locked

Views: 1,143

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
14 May 2008, 9:02 PM
#1
swelter83 avatar

swelter83

Zen Follower

Join Date:
Mar 2008
Posts:
98
Plugin Contributions:
0

Trying to Move ZenCart to new folder... Unsuccessful

Hey everyone.
I have been trying to figure out how to move my Zen-Cart to a new directory/folder and have been VERY unsuccessful at it.
I have followed the tutorial's outline but it doesn't work
I have gone into the configure.php for both admin and the includes/configure.php
then moved my cart from:
cart.lifewaynutrition.com to this...

http://www.lifewaynutrition.com/shop

only to find out it does not work and i get a blank screen or something else.
since then I have moved the cart back to its default directory of installation:
cart.lifewaynutrition.com and it's working fine.

can someone please explain to me in simple terms how to make this transfer?
I am REALLY confused. Im not stupid, I just need someone that won't mind taking the time to help me understand whats going on so i can get this resolved. :smile:

the reason I want to move the shopping cart is for the SSL reasons, my server has my certificates under lifewaynutrition.com not under the sub-domains.

Any help will be GREATLY appreciated as always.
Sorry to be so long winded.

_/_/_Swelter

14 May 2008, 9:35 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Trying to Move ZenCart to new folder... Unsuccessful

The tutorial is pretty straightforward.
https://www.zen-cart.com/tutorials/index.php?article=122

Basically, you just alter the paths that are listed in the configure.php files to match the new paths you're moving your files to.

In your case, it sounds like you're really only renaming from public_html/cart to public_html/shop and changing the URLs to www instead of cart.

So, you'd follow the pattern of finding all '/cart' references in the files and replacing them with '/shop'.

Since you're changing from a subdomain to not a subdomain, you'll have to add the foldername to the DIR_WS_CATALOG and DIR_WS_ADMIN and related entries ... ie: '/' becomes '/shop/' and '/admin/' becomes '/shop/admin'

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 May 2008, 9:38 PM
#3
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Trying to Move ZenCart to new folder... Unsuccessful

Nice looking site, you did a great job with the graphics and the ambiance of the site.

Really, the places to make your changes are in the two configure.php files. Make sure that you don't mix them up, the admin and general files have slight differences.

Make sure you change
define('HTTP_SERVER', 'http://cart.lifewaynutrition.com');
to
define('HTTP_SERVER', 'http://www.lifewaynutrition.com/shop');
and
define('HTTPS_SERVER', 'https://cart.lifewaynutrition.com');
to
define('HTTPS_SERVER', 'https://www.lifewaynutrition.com/shop');

AND these to
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');

AND
the physical path needs to be set too!
define('DIR_FS_CATALOG', '/physical/path/to/your/sites/shop/');
As Well As
define('DIR_FS_SQL_CACHE', '/physical/path/to/your/sites/shop/cache');

Did I miss anything?
JOhn ><>

Newest Site: ChargerPros - Stuff4Toys

14 May 2008, 10:26 PM
#4
swelter83 avatar

swelter83

Zen Follower

Join Date:
Mar 2008
Posts:
98
Plugin Contributions:
0

Re: Trying to Move ZenCart to new folder... Unsuccessful

THanks for the complement John! :)
If you would like to see the actual full working site (which is sorta hidden) send me a PM and I can send you the actual address to the main page.

I R a Web Developer. This is my first Shopping Cart though!
and thanks for the info on what all to change fellas! :)

_/_/_Swelter

19 May 2008, 12:14 AM
#5
swelter83 avatar

swelter83

Zen Follower

Join Date:
Mar 2008
Posts:
98
Plugin Contributions:
0

Re: Trying to Move ZenCart to new folder... Unsuccessful

lol i hope you didn't miss anything im gonna be trying that move soon... sometime tonight! ;)
hope it all works! :cool:

_/_/_Swelter

19 May 2008, 3:33 PM
#6
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Trying to Move ZenCart to new folder... Unsuccessful

Per your PM
I don't want to quote line numbers because you may have made changes to the files that changed the line numbers.

Just make those changes in the includes/configure.php and the admin/includes/configure.php and you should be good to go.

JOhn ><>

Newest Site: ChargerPros - Stuff4Toys

19 May 2008, 4:18 PM
#7
swelter83 avatar

swelter83

Zen Follower

Join Date:
Mar 2008
Posts:
98
Plugin Contributions:
0

Re: Trying to Move ZenCart to new folder... Unsuccessful

okay thats exactly what i was looking for actually :)
thanks!

_/_/_Swelter