Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I cant remove...


happyyo

Recommended Posts

Posted

Hi again guys :D

 

I did what the wiki doc said for removing the "New products for Dec" box but I still see it.

 

Can anyone tell me what I can do ??

 

Thanks a lot :)

 

---- Ohhh and another question... could i add an image to my index text in the front page??

 

Thankssssssss again :)

 

Regards

 

Laura

Posted

I don't know what the wiki docs say, but if, in catalog/index.php, you remove the line at or about line 315 (this may be different for you as my pages are heavily modded). but look for this line:

 

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

 

and ether delete it, or comment it out. If you comment it out, you can always uncomment it again if anything screws up.

 

As for the image, in catalog/includes/languages/english/index.php, at or around line 13, is this: (edited for brevity)

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project, ... demonstrational purposes, <b>any products purchased ...... ..... This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');  

 

This info will not apply if you are using the "Define Mainpage" mod, but the

define('TEXT_MAIN" ...

is the default text that displays on your main page. You can use an html editor to create the text you want on the front page, then just copy and paste it between the ('TEXT_MAIN', and ');

You can include an image tag in your html code. Just be sure to escape any 's with a \. i.e. we\'re

Or if you are typing plain text into your main page definition, just include an <img src="images/imagename.jpg"> tag wherever you want the image to appear, ensuring of course that you have already uploaded the image to your images folder.

 

HTH

Posted

HI there :)

 

Thanks a lot for your help :) but what you said for removing the "New products for Dec" is what I have done and It doesnt work!!!!

 

Here is what I did:

 

Original code:

 

<tr>

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

</tr>

 

 

I changed it to this:

 

<!-- New Prod for Dec //-->

<tr>

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

</tr>

<!-- New Prod for Dec //-->

 

I dont know what I am doing wrong <_< Any help please??????? :)

 

Thanks

Posted

On a clean catalog/index the

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

that you have to comment out is on line 121 and line 313

 

The_Bear

Posted

Thankss a lot :) but...... I cant get it away!!!!!!!!! :blink: I commented out both lines but the box is still there !!!!!!!! :angry: lol

 

Ahhhhh I dont know what I am doing wrong..... If you have any idea, pleaseee let me know

 

Thankss :) :)

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

 

to comment out the line use this

 

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

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

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

×
×
  • Create New...