Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add image to front page


vablonde25

Recommended Posts

Posted

Hi there,

 

I'd like to add a static image to the front page in place of the What's new for the month, anyone know the tags I need to enter to accomplish this?

 

THANK YOU!

 

WM

Posted
Hi there,

 

I'd like to add a static image to the front page in place of the What's new for the month, anyone know the tags I need to enter to accomplish this?

 

THANK YOU!

 

WM

 

In catalog/index.php find:

 

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

 

replace with:

 

<td><?php tep_image(DIR_WS_IMAGES . 'yourstaticimage.gif','your alt text'); ?></td>

 

upload your image to your

 

catalog/images folder.

 

~~~Tapuahk

Posted
In catalog/index.php find:

 

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

 

replace with:

 

<td><?php tep_image(DIR_WS_IMAGES . 'yourstaticimage.gif','your alt text'); ?></td>

 

upload your image to your

 

catalog/images folder.

 

~~~Tapuahk

 

Thank you

 

I put in what you said and it's not showing the image, any other ideas? Got rid of the "What's New for April" though which is good.

 

:)

Posted
<td><?php tep_image(DIR_WS_IMAGES . 'yourstaticimage.gif','your alt text'); ?></td>

Should be

<td><?php echo tep_image(DIR_WS_IMAGES . 'yourstaticimage.gif','your alt text'); ?></td>

Posted
Should be

<td><?php echo tep_image(DIR_WS_IMAGES . 'yourstaticimage.gif','your alt text'); ?></td>

Hi

 

I don't want to get rid of the products_new box but would like a static like this. Only I would like it to change with each refresh or every so many seconds? Is this difficult? I don't know the technical term to search. :blush:

 

Thanks

Julie

Posted
Should be

<td><?php echo tep_image(DIR_WS_IMAGES . 'yourstaticimage.gif','your alt text'); ?></td>

 

Thank you Brian!!

 

Now for the coding challenged, can I completely remove the default text "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" Is it located on that same index.php page or do I need to go back to one of the other configuration pages.

 

:rolleyes:

Posted
Hi

 

I don't want to get rid of the products_new box but would like a static like this. Only I would like it to change with each refresh or every so many seconds? Is this difficult? I don't know the technical term to search. :blush:

 

Thanks

Julie

You could use javascript of flash. Or probably do something like the whats new box in the left column.

 

Thank you Brian!!

 

Now for the coding challenged, can I completely remove the default text "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" Is it located on that same index.php page or do I need to go back to one of the other configuration pages.

 

:rolleyes:

That is part of the tep_customer_greeting function. To remove it find in catalog/index.php around line 300

			<td class="main"><?php echo tep_customer_greeting(); ?></td>

Change to

			<td class="main"><?php //echo tep_customer_greeting(); ?></td>

  • 3 years later...
Posted

In catalog/index.php find:

 

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

 

replace with:

 

<td><?php tep_image(DIR_WS_IMAGES . 'yourstaticimage.gif','your alt text'); ?></td>

 

upload your image to your

 

catalog/images folder.

 

~~~Tapuahk

Should be

<td><?php echo tep_image(DIR_WS_IMAGES . 'yourstaticimage.gif','your alt text'); ?></td>

 

I done what you guys have suggested but its not working

The image isnt displayed and the whats new for September is still there???? I have OS 2.3

Posted

Have yiou changed

 

'yourstaticimage.gif'

 

to the name of your image and altered the file extension to the same as your image.

REMEMBER BACKUP, BACKUP AND BACKUP

Posted

Hi,

Just starting a store and I've also tried the above code to ad a image to the front page without success. Renamed the image and made sure the same name appeared.

www.myownart.com.au

 

any ideas what else to try?

Archived

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

×
×
  • Create New...