Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New products on index? how to remove


westmidsguy

Recommended Posts

Basically I want 3 of my own images to be inserted on the index.php

instead of 3 randomised product images

how can i remove the randomised images of products on index.php?

I want to replace them with other images which wont change.

Link to comment
Share on other sites

If I understand correctly, you need some static images instead of what is getting displayed by the "new products" module, right?

 

One option is to install the "featured products" addon, and then style the listing way so that it displays just the items image in the way and size you want

 

Other option is to insert some images with just static html.

 

The place of index.php that is responsible for the "home" page starts at about line 280 like this:

<?php
 } else { // default page
?>
   <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

and ends at about line 324 like this

    </table></td>
<?php
 }
?>
<!-- body_text_eof //-->

 

You can add into here whatever you want, images, videos, display modules (ie specials) or whatever.

 

OsCommerce is displaying by default some text (the famous user greeting) like this for example

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

 

The new products are coming from this here

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

 

Now, after you know whats going on, you need to decide how and what you want to have displayed. You can delete everything between the "start" and "end" that I said before and replace it with your own html design. You dont need to follow any structure that exist there of course.

 

The nicest way would be to wrap each image into a left floating div and add to your css one class to control the appereance of your images

 

An other option is to include an external html page (for example mypage.html) and to let it play there instead of the new products module. After you design this html completelly as you like, you just need to say in your index.php file the following

<?php include("mypage.html"); ?>

Don't forget to upload the file to the server.

 

Finally a last option would be to install one of the contributions that display slideshows or flash animations on the front page

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

I hope this explanations will help you to make your page as you like it

Have a nice day

Link to comment
Share on other sites

  • 1 year later...

Hi

In the NEW PRODUCTS Page, I would like to display only Product Names Text of my new Products, but i don;t want it to display Images for my Products Names, please let me know how to Hide the images of my Product names and remain only Text of my new Products

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...