Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do I remove goofy shopping cart image?


vjboc

Recommended Posts

Posted

how do I remove goofy shopping cart image? It is in the header of the page. The strange thing is I deleted the image and it is still there. I also refreshed the page. Is there a way to remove the code all together?

Posted

how do I remove goofy shopping cart image? It is in the header of the page. The strange thing is I deleted the image and it is still there. I also refreshed the page. Is there a way to remove the code all together?

 

Try this:

 

In the code find where it has

 

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

Can't remember the name of the image of the top of my head but it will be where I have written ' name of image.gif'. This works for all pages with the little images.

 

What you need to do is comment out the php code part:

 

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

 

You do thes by adding '//' in front of it. So you change the above code to this:

 

<td class="pageHeading" align="right"><//?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

You could delete everything from <td to /td> but I find it's easier to just comment out so I know what I have done later.

Posted

Try this:

 

In the code find where it has

 

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

Can't remember the name of the image of the top of my head but it will be where I have written ' name of image.gif'. This works for all pages with the little images.

 

What you need to do is comment out the php code part:

 

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

 

 

Hey thanks , That is good to know for future images.

 

You do thes by adding '//' in front of it. So you change the above code to this:

 

<td class="pageHeading" align="right"><//?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

You could delete everything from <td to /td> but I find it's easier to just comment out so I know what I have done later.

Posted

<td class="pageHeading" align="right"><//?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

No, <// is not valid. You want

<td class="pageHeading" align="right"><?php /* echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); */ ?></td>

You might be able to use just //, but that's risky if your PHP snippet doesn't go to the end of the line.

Posted

No, <// is not valid...

You might be able to use just //, but that's risky if your PHP snippet doesn't go to the end of the line.

 

Thanks for the tip MrPhil :) . It worked for me as the code went to the end of the line, but yes /* is better.

Archived

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

×
×
  • Create New...