Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a image to the index.php file [ PROBLEM ]


jackgilbert

Recommended Posts

Posted

Hello all, Ive edited catalog/includes/languages/english/index.php and its working fine but i wanted to know in the text_main code section, how to add an image below all your writing so the writing could be something like:

 

Tignes Interiors - Online Store DEMO

 

 

Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

Welcome to the Tignes Interiors Online Store!

 

We have a wide selection of products including baths, showers and bathroom accessories. We offer an excellent promt delivery on all products and a superb after sales service. Delivery throughout the UK on all our products.

 

HERE I WOULD LIKE AN IMAGE. Can anyone help.

 

 

My index.php code is as follows:

 

[/code]<?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', '<p><b><font size="4">

<marquee style="font-family: Verdana; text-transform: uppercase; color: #000080" behavior="alternate">Welcome to the Tignes Interiors Online Store!</marquee></font></b></p> We have a wide selection of products including baths, showers and bathroom accessories. We offer an excellent promt delivery on all products and a superb after sales service. Delivery throughout the UK on all our products.');

define('NEW PRODUCTS', 'New Products For %s');

define('UPCOMING PRODUCTS', 'Upcoming Products');

define('DATE EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Online Store');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('NEW PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'buy');

define('TEXT_NOW', ' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'Tignes Interiors - Online Store DEMO');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

 

 

PLEASE HELP!

Posted

Well just repalce this:

 

define('TEXT_MAIN', '<p><b><font size="4">

<marquee style="font-family: Verdana; text-transform: uppercase; color: #000080" behavior="alternate">Welcome to the Tignes Interiors Online Store!</marquee></font></b></p> We have a wide selection of products including baths, showers and bathroom accessories. We offer an excellent promt delivery on all products and a superb after sales service. Delivery throughout the UK on all our products.');

 

With :

 

define('TEXT_MAIN', '<p><b><font size="4">

<marquee style="font-family: Verdana; text-transform: uppercase; color: #000080" behavior="alternate">Welcome to the Tignes Interiors Online Store!</marquee></font></b></p> We have a wide selection of products including baths, showers and bathroom accessories. We offer an excellent promt delivery on all products and a superb after sales service. Delivery throughout the UK on all our products.<br><br><image src="images/imagename" width="imagewidth" height="imageheight" border="0">');

 

upload your image to catalog/images folder

 

I think this should work

 

Good Day

KP

 

 

Hello all, Ive edited catalog/includes/languages/english/index.php and its working fine but i wanted to know in the text_main code section, how to add an image below all your writing so the writing could be something like:

 

Tignes Interiors - Online Store DEMO

 

 

Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

Welcome to the Tignes Interiors Online Store!

 

We have a wide selection of products including baths, showers and bathroom accessories. We offer an excellent promt delivery on all products and a superb after sales service. Delivery throughout the UK on all our products.

 

HERE I WOULD LIKE AN IMAGE. Can anyone help.

My index.php code is as follows:

 

[/code]<?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', '<p><b><font size="4">

<marquee style="font-family: Verdana; text-transform: uppercase; color: #000080" behavior="alternate">Welcome to the Tignes Interiors Online Store!</marquee></font></b></p> We have a wide selection of products including baths, showers and bathroom accessories. We offer an excellent promt delivery on all products and a superb after sales service. Delivery throughout the UK on all our products.');

define('NEW PRODUCTS', 'New Products For %s');

define('UPCOMING PRODUCTS', 'Upcoming Products');

define('DATE EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Online Store');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('NEW PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'buy');

define('TEXT_NOW', ' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'Tignes Interiors - Online Store DEMO');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

PLEASE HELP!

:thumbsup: :thumbsup: :thumbsup:

Posted
I have done this and uploaded the image to catalog/images and its still not appearing.

Please can anyone help me ?

 

 

I do not see the image code in your file anywhere

 

<image src="images/imagename" width="imagewidth" height="imageheight" border="0">

 

You need to add the html for the image to the text below replacing /imagename with the actual name of yor image

 

 

define('TEXT_MAIN', '<p><b><font size="4">

<marquee style="font-family: Verdana; text-transform: uppercase; color: #000080" behavior="alternate">Welcome to the Tignes Interiors Online Store!</marquee></font></b></p> We have a wide selection of products including baths, showers and bathroom accessories. We offer an excellent promt delivery on all products and a superb after sales service. Delivery throughout the UK on all our products.');

define('NEW PRODUCTS', 'New Products For %s');

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Archived

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

×
×
  • Create New...