Zen Cart Logo
Forums / Installing on a Linux/Unix Server / The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

Views: 2,102

Results 1 to 20 of 22
26 Jul 2011, 4:14 PM
#1
mjmindustrial avatar

mjmindustrial

New Zenner

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

The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

Guys ive done so many carts now and i want to try this zencart out - im nearly done all i have left is to find the following:

A - Edit /admin/includes/configure.php

Ive done this part .....

define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

How do i find this? Where is it? :/

define('DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');
define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');

26 Jul 2011, 5:26 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

Line 61 - right below this:

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/

Welcome to Zencart. I think you'll like it better than all the others.

26 Jul 2011, 7:44 PM
#3
mjmindustrial avatar

mjmindustrial

New Zenner

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

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

Ye but where is that cmd locted?

domain/../../../???

am i just being really supid? lol :blink:

26 Jul 2011, 7:54 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

Now you're confusing me :laugh:.

I assumed you were trying to change the name of your 'admin' folder. You got the first two instances right. The third is where I mentioned:

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/home/stevesh/public_html/demo/MY_NEW_ADMIN_FOLDER_NAME/');
define('DIR_FS_CATALOG', '/home/stevesh/public_html/demo/');

This is for a Zencart site at https://www.stevesh.org/demo.

If I've misunderstood, let me know.

26 Jul 2011, 7:55 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

Like stevesh, I don't understand your questions. The text is already in the file. You just need to rename the admin path to suit the new name you've given it. Uber simple.

26 Jul 2011, 8:05 PM
#6
mjmindustrial avatar

mjmindustrial

New Zenner

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

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

lol ... im confusing myself now!

Oki did the first one, i changed the 'admin' to my user name ?? user name being my personal user name i set up in the install section right?

define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

the bit i cant do is this one:

define('DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');
define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');

where is this located? in what folder/s ?? i feel so stupid, someone give us a quick brif lol :clap:

26 Jul 2011, 8:08 PM
#7
mjmindustrial avatar

mjmindustrial

New Zenner

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

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

heres the domain imworking on ... https://www.draperdrill.com

look where im stuck at .. i feel like such a n00b :\ lol

26 Jul 2011, 8:08 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

Let's start over.

You're trying to change the name of your 'admin' folder, right ?

26 Jul 2011, 8:09 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

User name?

NO

It's referring to a FOLDER name.

Instead of visiting www.your_site.com/admin to access your store's admin, you need to rename that to something else that's not easily guessed. So, YOU pick a name, like "fred" or "i_like_jalapenos" or whatever, and you substitute all references to /admin/ in the admin configure.php file with that path name, and then in your FTP program you ALSo rename the admin folder to that name.

26 Jul 2011, 8:15 PM
#10
mjmindustrial avatar

mjmindustrial

New Zenner

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

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

oh my god - honestly im not understanding this proccess bit...who wants a quick cash job? its my boss - he wants a cart set up but he wants zencart but now im having trouble geting this part up!

paypal?...im not messing about this needs to be done by tomorrow or im getting a slap or the sack lol.

26 Jul 2011, 8:41 PM
#11
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

You're making this a lot harder than it needs to be. One more time - are you trying to change the 'admin' folder name ? Please answer 'yes' or 'no'.

27 Jul 2011, 7:05 AM
#12
mjmindustrial avatar

mjmindustrial

New Zenner

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

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

stevesh:

You're making this a lot harder than it needs to be. One more time - are you trying to change the 'admin' folder name ? Please answer 'yes' or 'no'.

yes and trying to fix the above ...

27 Jul 2011, 7:28 AM
#13
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

so you are setting up for the first time, correct?
does the frontside of the cart work?

27 Jul 2011, 8:07 AM
#14
mjmindustrial avatar

mjmindustrial

New Zenner

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

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

ye first time ... ive just noticed im installing before editing? is that where im going wrong or something? and how would i change the admin folder name...and what do i need to edit - i reaqlly dont get the documentation for the install :(

27 Jul 2011, 8:12 AM
#15
mjmindustrial avatar

mjmindustrial

New Zenner

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

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

barco57:

so you are setting up for the first time, correct?
does the frontside of the cart work?

Ive changed the admin folder to 'newfolder' now look,

http://draperdrill.com/newfolder

What is going on ?? ive deleted this 3 times now lol

27 Jul 2011, 9:19 AM
#16
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

That's exactly what it's supposed to look like. Just log in (and change the folder name again, since you've published it here).

27 Jul 2011, 9:12 PM
#17
mjmindustrial avatar

mjmindustrial

New Zenner

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

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

stevesh - ye i did it in the end, cheers bro lol :p

I wona ask you something as you seem to know too much about this zencart system - do you know how i would add a new table (html coding) above the Featured Products section so we have our own info at the top maybe an image and some text etc ... but does really have to be html coding if poss.

heres the site anyway have a look and see what i mean - https://www.draperdrill.com

cheers guys.

28 Jul 2011, 2:02 AM
#18
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

You should be able to include your custom HTML in define_main_page.php (admin > Tools > Define Pages Editor); however, as you have a Template Monster template, it may not be so simple. TM often disables standard Zen Cart admin switches and functions to get the layout they sold you on. Try it and see.
Your home page has this in view source

<div id="indexDefaultMainContent"></div>

which is where define_main_page content would go, so it may work.

28 Jul 2011, 7:12 AM
#19
mjmindustrial avatar

mjmindustrial

New Zenner

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

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

gjh42:

You should be able to include your custom HTML in define_main_page.php (admin > Tools > Define Pages Editor); however, as you have a Template Monster template, it may not be so simple. TM often disables standard Zen Cart admin switches and functions to get the layout they sold you on. Try it and see.
Your home page has this in view source

<div id="indexDefaultMainContent"></div>

which is where define_main_page content would go, so it may work.

do you also know how you go about editing the credits at the bottom for etc: designed by zencart ... :\

28 Jul 2011, 10:31 AM
#20
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: The most SIMPLE thing and it doesnt work!!!!!!!!!!!!

Hard to say, since Template Monster has messed with that, too.

Best advice I can offer - install the Firefox browser and the Web Developer plugin for Firefox. You can use those to see where in the stylesheet you change the styling of the various page elements.

Ctrl-Shift-Y will allow you to hover over a section of the page and see the class and id names for that section in the box at the top. The statements in the stylesheet that begin with # are id's and the ones that begin with dots are classes.

Ctrl-Shift-E will open the CSS editor and allow you to edit the stylesheet and see the changes in real time without changing anything permanently. An essential tool.

Some prefer Firebug, which does much the same thing.

(If you're using Firefox 4 or 5, you'll need to remap the editor shortcut, since Firefox has appropriated Ctrl-Shift-E for an internal function - I use Ctrl-Shift-Q.)

Also,

https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39

Most here think you should leave the Powered By Zencart link.