Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Where are the Default Values saved ?

Where are the Default Values saved ?

Locked

Views: 1,171

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
7 Aug 2007, 1:57 PM
#1
ohiseekyou avatar

ohiseekyou

New Zenner

Join Date:
Aug 2007
Posts:
41
Plugin Contributions:
0

Where are the Default Values saved ?

Where are the Default Values saved ?
For Example:
I'd like "199px" as the default value in Admin of Configuratin -> Layout Settings -> Column width - left .
Surely we can set it in admin after we installed successfully.
But if I wanna install several sites with the same setting Parameters,
I have to set them several times manually.
Can I set the Default Values in the programming files before install ?
Then I will get my favorite setting as soon as I finish installing my sites without setting in the admin manually.
Where do the default values locate in ?
Give me some directs pls!

7 Aug 2007, 2:00 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Where are the Default Values saved ?

The Configuration settings are stored in the configuration table ...

Be careful of settings that are site specific ...

7 Aug 2007, 2:06 PM
#3
ohiseekyou avatar

ohiseekyou

New Zenner

Join Date:
Aug 2007
Posts:
41
Plugin Contributions:
0

Re: Where are the Default Values saved ?

Where does the Configuration table ? Which files ?

PS: for Zen Cart V1.3.7

7 Aug 2007, 2:09 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Where are the Default Values saved ?

The configuration table is in your database ... this is not a file on your site ...

This is accessible via phpMyAdmin ...

The database name can be read in the file:
/includes/configure.php

this you setup when you installed the site and will be different with each installation ...

7 Aug 2007, 2:25 PM
#5
ohiseekyou avatar

ohiseekyou

New Zenner

Join Date:
Aug 2007
Posts:
41
Plugin Contributions:
0

Re: Where are the Default Values saved ?

Many Thanks for Your Quick Reply, Ajeh!
I couldn't find the file Configure.php in /includes for Version 1.3.7

I think the default records in the Database were created by SQL script files.
So there must be some files saving the default values.
Not via phpMyAdmin.

I think it is no difference to set via phpMyAdmin and via in ZenCart Admin.
Because both of them will be done after installing ZenCart successfully.
I hope to modify the default values before installing.

7 Aug 2007, 2:53 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Where are the Default Values saved ?

Speak to your hosting site about how to access your databases ...

The configuration table is in that database not a file on the server ...

7 Aug 2007, 3:03 PM
#7
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Where are the Default Values saved ?

Are you wanting to change these so that they default on install,

that would mean that you would go through
zc_install/sql/mysql.sql

dig carefully cause if you hit the wrong thing it can make a mess

unless you are 1 comfortable with making changes to a database manually, dosnt seem like you are. and 2 doing a MASS amount of sites, I mean more than 2 or 3 a day, yur better off just making htese changes manually once you get the admin setup

9 Aug 2007, 4:55 AM
#8
ohiseekyou avatar

ohiseekyou

New Zenner

Join Date:
Aug 2007
Posts:
41
Plugin Contributions:
0

Re: Where are the Default Values saved ?

Merlinpa1969:

Are you wanting to change these so that they default on install,

that would mean that you would go through
zc_install/sql/mysql.sql

dig carefully cause if you hit the wrong thing it can make a mess

unless you are 1 comfortable with making changes to a database manually, dosnt seem like you are. and 2 doing a MASS amount of sites, I mean more than 2 or 3 a day, yur better off just making htese changes manually once you get the admin setup

Thanks for your directs and advices, Merlinpa1969!
:blink: Why do you think I seem not like to comfortable with making changes to a database manually ?:D
I'm a newbie to ZenCart and PHP, but learn something about SQL and other Programming Language. I think that's enough !

I found so many commands like "INSERT INTO configuration (configuration_title,..."
Pay more attention to it, I think I can solve it now.