Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Two Questions please


andro123

Recommended Posts

Posted

First

I want to add logos to the home page of the site. These logos are saved in My pictures in my computer. I want to display these logos so as to show the brands we carry. How do I do this and where do I get the code to actually place these logos in the right place.

 

secondly. I changed my privacy page and renamed it as links page. this is showing correctly n the site as links but the actual address still shows as privacy.php. I tried to rename it but then got an error message. Is there another place that I need to do this?

many thanks

Posted
First

I want to add logos to the home page of the site. These logos are saved in My pictures in my computer. I want to display these logos so as to show the brands we carry. How do I do this and where do I get the code to actually place these logos in the right place.

 

secondly. I changed my privacy page and renamed it as links page. this is showing correctly n the site as links but the actual address still shows as privacy.php. I tried to rename it but then got an error message. Is there another place that I need to do this?

many thanks

 

<img src="images/toolbar.gif" alt="Internet Explorer and Firefox compliant." />

This is the code you need to display images an a web page the code highlighted in yellow is the path to that image you will have to change this for your images depending on where you keep them.

the place to put this code is www.yoursite.com/catalog/includes/languages/english/index.php

 

open the index.php and add you code here.

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', '<img src="images/toolbar.gif alt="Internet Explorer and Firefox compliant." /></a>');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

Posted

Fantastic thanks alot

any one any ideas on the renaming of the privacy bit? probably easy but when I tried I got it wrong!

Posted
Fantastic thanks alot

any one any ideas on the renaming of the privacy bit? probably easy but when I tried I got it wrong!

 

What I did for a client was make a new links page in html and put a link to it on the top of the index.php

File.

Take a look http://www.wannashop.co.uk/ p.s. sorry about the content of the shop as it?s a sex shop.

Posted
Fantastic thanks alot

any one any ideas on the renaming of the privacy bit? probably easy but when I tried I got it wrong!

 

What I did for a client was make a new links page in html and put a link to it on the top of the index.php

File.

Take a look http://www.wannashop.co.uk/ p.s. sorry about the content of the shop as it?s a sex shop.

If you do it this way you can also keep your privacy page.

Posted

Is there a quick way of doing this? I know there are various contributions but Im abit afraid to mess around with codes when im unsure of what im doing

Posted

It's not so scary if you backup the files. Then if something goes wrong you can upload the old ones...easy!

 

There are instructions here on how to add a new page based on an existing page

 

http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49

 

Is there a quick way of doing this? I know there are various contributions but Im abit afraid to mess around with codes when im unsure of what im doing
Posted
Is there a quick way of doing this? I know there are various contributions but Im abit afraid to mess around with codes when im unsure of what im doing
The quick way will cause you problems later. I strongly recommend you instal Links Manager for your links. But if you would prefer to use the page as you did, you can't just copy a page and have it work like that. You have to edit the file so that it calls in the correct language file and add an entry to the filenames. But if you can make all of the changes needed for that, you can install Links Manager. Good luck either way.

 

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
Is there a quick way of doing this? I know there are various contributions but Im abit afraid to mess around with codes when im unsure of what im doing

 

this is the code to make a links page in html

 

<!DOCTYPE html

PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

<title>your links page</title>

<!--these are meta tags-->

<meta name="keywords" content="key,words,for,your,shop,seporated by a commer," />

<meta name="description" content="description of your shop here" />

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><!--leave this line it defines the charset.-->

<meta name="autor"content="your name here" />

<meta name="contact_addr"content="[email protected]" />

<meta name="copyright"content="?2006 your site name" />

<meta name="robot"content="all" /><!--leave this line-->

<meta name="revisit-after"content="10 days" /><!--leave this line it tells the robots from search engines when to recheck your pages.-->

<link href="yourshop.css" type="text/css" rel="stylesheet"/><!--leave this line it is a link to a css file in this file you can change things like color etc. this file must be in the same directory as this links page.-->

</head>

<body> <div class="header"><a href="http://www.yourshop.co.uk/catalog/index.php"><img src="http://www.path to your image.co.uk/catalog/images/oscommerce.gif" alt="your logo" style="border: 0px double #444444; text-align: center; width:200px; height:65px;" /></a></span><br />

</div>

<div class="main2"><h1>Links</h1>

 

<br />

<ul><!--keep your links between the ul tags-->

 

 

<!--Below is a text link-->

<li><a href="http://www.link.com"'>http://www.link.com" title="discription here" target="_blank">Your link text here</a><br /><br />Discription that you will see on the web page.</li>

<li style="list-style-type: none;"><hr /></li><!--this is a line-->

 

<!--Or if you want an image as a link see below-->

<li><a href="http://www.link address.co.uk"title="link name." target="_blank"><img src="http://www.path to image.co.uk/catalog/images/oscommerce.gif" alt="link name" style="border: 0px double #444444; text-align: center; width:200px; height:65px;" /></a></li>

<li style="list-style-type: none;"><hr /></li>

 

<li><a href="http://www.link address.co.uk"title="link name." target="_blank"><!--place image or text code here--></a></li>

<li style="list-style-type: none;"><hr /></li>

 

<li><a href="http://www.link address.co.uk"title="link name." target="_blank"><!--place image or text code here--></a></li>

<li style="list-style-type: none;"><hr /></li>

 

<!--add more links here just copy and paste from above-->

<!--ps this is a comment you can delete these safely-->

 

 

 

 

 

 

 

 

 

 

</ul>

<span><a href="http://www.link to your shop.co.uk/catalog/index.php"><b>your shop name here ? 2006</b></a></span>

</div>

</body>

</html>

You can copy and paste this code in to a text editor like notpad save the file as link.html where it says save as type change this to all files.

 

the next step is to copy this code in to notepad and save it with the file name yourshop.css save the file type as all files

 

body{

position: absolute;

top: 0px;

left: 0px;

height: 100%;

width: 759px;

background-color: #ffffff;

 

 

}

a {

color: #aad000;

background: inherit;

}

 

a:hover {

color: #00aeed;

background: inherit;

}

.header

{

position: absolute;

top: 0px;

left: 0px;

height: 100px;

width: 103%;

background-color: #ffffff;

font-size: 14px;

font-family: Georgia,Times, serif;

text-align: left;

color: #a5d8f6;

}

.header a {

color: #a5d8f6;

background: inherit;

}

 

.header a:hover {

color: #00aeed;

background: inherit;

}

.main

{

position: absolute;

top: 160px;

left: 0px;

height: 700px;

width: 590px;

background-color: #ffffff;

padding-top: 0px;

padding-right: 10px;

padding-left: 10px;

color: #ffffff;

font-family: Georgia,Times, serif;

 

}

.main2

{

position: absolute;

top: 100px;

left: 0px;

height: 700px;

width: 100%;

background-color: #ffffff;

padding-top: 0px;

padding-right: 10px;

padding-left: 10px;

color: #999999;

font-family: Georgia,Times, serif;

margin-bottom: 20px;

 

 

}

 

#footer

{

left: 0px;

height: 20px;

width: 100%;

background-color: #d5d5d5;

background-image: url();

border-top: solid 3px #fefef6;

padding: 2px;

font-size: 15px;

font-family: Georgia,Times, serif;

text-align: center;

color: #000000;

}

.title

{

color: #000000;

font-size: 15px;

}

when you have these files saved you can add your links and then upload them to your server these files must be in the same directory.

 

now you have to make a link on your shop front like this.

<a href="http://www.yourshop.co.uk/links.html">Links Page</a>

you have to copy this code in to the index.php file in catalog/includes/languages/english/index.php

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', 'copy code here');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

Archived

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

×
×
  • Create New...