Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Modifying the layout


Patriarch K

Recommended Posts

Posted

I actually have more questions:

 

1:

I know where to change colors, text and stuff, but i dont know where to change images and the whole layout of the site. Which file am i going to use?

 

2:

And by the way, how can i activate SSL security after i have installed the script?

 

3:

"Warning: I am able to write to the configuration file: c:/program/easyphp1-7/www/oscommerce/oscommerce-2.2ms2/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file."

 

4:

" Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created."

 

I hope you can help me with this. Please answer the questions that you know the solution on.

Posted

1- The images are in the images directory. To change the layout of the site, the main files that will need to be changed are in the includes directory. They are column_left.php, column_right.php, header.php and footer.php. The files in the root directory wlll probably need editing also.

 

2 - Edit the includes/configure.php file. You need to add a link for the ssl url and set enable to true.

 

3 - You need to set the permissions for this file to read only.

 

4 - You have the option set to use a file for sessions so you have to create the directory. I think you are better off using the database to store these. The option is at the bottom of your includes/configure.php file.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

1:

Yes, but if i wish to add more images or something, which file can i add the code to then?

 

2:

Add a link? I have enabled it (true) but what link am i going to add?

 

3:

Where can i do that? I have opened the configurationfile but what am i going to change, on which row?

 

4:

This was the bottom

"define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'"

 

What am i going to do with that?

 

Im sorry for my stupidity.

Posted

1 - Where you add the code depends on where you want the file displayed. For example, if you click on the contact us link in the information box, the contact_us.php file is displayed (you can tell this by looking at your browsers titel bar). So to add an image on this page, you would edit contact_up.php.

 

2 - You should see this

define('HTTPS_COOKIE_DOMAIN', '');

Change it to include the link to your site.

 

3 - No, it's the includes/configure.php file. You don't open the file. Permissions are attributes of the file. You set them with your ftp program or from your hosts filemanager program.

 

4 - Change this to

define('STORE_SESSIONS', 'mysql');

No need to apologize. These are not stupid questions. They are pretty common and are the right ones to ask. :)

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

3. In your FTP-application you ussually have to right click (on a PC) or CTRL-click (on a Mac) the file in question, this one being configure.php, and then choose something like "Info" og "CHMOD" and there change the permissions to either 666 or 777.

 

Dunno about your question no. 2;-)

Posted

FTP-application. Hmmm, i only have the programs that were included in easyphp.

 

easyphp 1.7 : apache 1.3.27 - php 4.3.3 - mysql 4.0.15 - phpmyadmin 2.5.3

 

That's all i got.

Posted

Next thing you have to do is to get a web host. :thumbsup:

Posted

What? If im going to get rid of the

 

"Warning: I am able to write to the configuration file: c:/program/easyphp1-7/www/oscommerce/oscommerce-2.2ms2/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file"

 

I have to get a webhost?

Posted
FTP-application. Hmmm, i only have the programs that were included in easyphp.

 

easyphp 1.7 : apache 1.3.27 - php 4.3.3 - mysql 4.0.15 - phpmyadmin 2.5.3

 

That's all i got.

I assumed this was on a host. If it is on your computer, then just go to the file with your file manager (windows explorer for example), right click on it, select properties and set to read only.

 

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Now the problems are solved. I hope you dont mind if i come up with more stuffs that i need helt with :)

 

1:

I have the username "root" and the host "Localhost". Do i have to change these when i put this up a real webshop that other people can see? Will the people see the names root/localhost? Do i have to have something better that is connected to the subject of my site or can i just use root and localhost?

 

2:

Still the question that you saw before (the SSL thing). What is the link to my site? How can i see it? And where shall i put it.

 

This is all for now. I really appreciate the help i get from you all.

Posted

Yes, you need a host, if you want the rest of the world to see your work. You'll also need a domain name.

Posted
Now the problems are solved. I hope you dont mind if i come up with more stuffs that i need helt with :)

 

1:

I have the username "root" and the host "Localhost". Do i have to change these when i put this up a real webshop that other people can see? Will the people see the names root/localhost? Do i have to have something better that is connected to the subject of my site or can i just use root and localhost?

 

2:

Still the question that you saw before (the SSL thing). What is the link to my site? How can i see it? And where shall i put it.

 

This is all for now. I really appreciate the help i get from you all.

1. With your server that you purchase its ok to have localhost/root:blank as long as the db server you are using is on the same box. If not then you must name it correctly to point to that machine. Best practice is to have DB on same machine as Apache(or server of choice) and use localhost. This way no-one can penetrate your db if you set up access to it from the localhost only.

 

Basically that means that only files that you put on your server(localhost) can 'talk' to the db.

conno

-----------------------------------------------------

Contribs I am using

1. register_globals_v1.2.1. Richard Bentley

2. Template for fixed width site. Rhea Anthony

3. OsPlayer v2.0b. ManMachine

 

 

Posted

DB means database?

 

Can you explain more in detail you think? Do i have to purchase a server? I can use root/localhost as long as the server has the same?

Posted

Forget about servers and domains for the moment. You've only just started by installing it on your local computer.

 

So whats the link to my site?

 

This will depend upon how you installed osCommerce. The root directory (in your browser) is http://localhost - and if you installed the 'catalog' folder into your local root then the address to your website will be http://localhost/catalog

 

If you installed it into oscommerce/oscommerce-2.2ms2/catalog/, then your address will be http://localhost/oscommerce/oscommerce-2.2ms2/catalog/

 

Do i have to purchase a server?

 

No, but if you want your website online then you will need to get a web hosting account with a company that does have servers.

 

I have the username "root" and the host "Localhost". Do i have to change these when i put this up a real webshop that other people can see?

 

Yes, but not until you have a web hosting account with someone.

 

Will the people see the names root/localhost?

 

No

 

Vger

Posted

Basically localhost, 127.0.0.1 etcs are special URL which allow a computer to refer to itself.

 

If the DB server (yes DB usually stands for Database) is on the same computer, you can use localhost to refer to the DB server.

 

To allow the rest of the world to see your site you'll need to 1. host the site on your computer or 2. get a web host.

 

The first option can be very complicated and expensive, the second option is recommended.

 

And you don't need to buy a dedicated server unless you are expecting many thousands of visitors every day. Just search the web for a web host that offers PHP, mySQL, SSL, register_global = on etc.

Posted

Okay, i see.

 

This was what i found in the osCommerce admin panel (http://localhost/catalog/admin/)

 

"Warning: session_start(): open(/tmp\sess_f6675965cc8b5867892c6973712cfee5, O_RDWR) failed: No such file or directory (2) in c:\program\easyphp1-7\www\catalog\admin\includes\functions\sessions.php on line 67"

 

How can i get rid of that?

 

And about the SSL. My code looks like this now

define('HTTPS_COOKIE_DOMAIN', 'http://localhost/catalog');

 

but when i look at the admin panel then i still see the

"You are not protected by a secure SSL connection"

 

Hmmm...

Posted

Don't bother using SSL when you are developing your site on your local machine. That is unless you have extensive knowledge on Apache configuration.

 

I can see that you are using easyPHP on Windows OS. To set up SSL on windows, you'll probably need to compile the apache source code yourself. Apache+SSL installer is not available due to various legal reasons.

 

The setup instructions for Apache, SSL and mySQL for Linux are included in the oscommerce-2.2ms2 download.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...