Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I deleted index content but can't delete HEADING_TITLE


Guest

Recommended Posts

I wanted to only have the shopping cart items on my page. So, I deleted the entire content of index. Did I totally mess this thing up? I can't find a way to delete the words HEADING_TITLE since everything in my index is gone. How do I delete this and also the words TEXT_MAIN that I can't delete either.

 

Here's my link: http://applebuttertreats.com/order/index.php

 

Thanks.

Link to comment
Share on other sites

I wanted to only have the shopping cart items on my page. So, I deleted the entire content of index. Did I totally mess this thing up? I can't find a way to delete the words HEADING_TITLE since everything in my index is gone. How do I delete this and also the words TEXT_MAIN that I can't delete either.

 

Here's my link: http://applebuttertreats.com/order/index.php

 

Thanks.

You left these two pieces of code in the file:

<td><h1><?php echo HEADING_TITLE; ?></h1></td>

<td class="main"><?php echo TEXT_MAIN; ?></td>

 

You can either delete the code, comment out the part after echo, or leave the define empty in catalog/includes/languages/english/index.php

 

Since you have deleted so much already, I would go with this:

<td><h1><?php echo // HEADING_TITLE; ?></h1></td>

<td class="main"><?php echo // TEXT_MAIN; ?></td>

 

Tim

Link to comment
Share on other sites

You left these two pieces of code in the file:

<td><h1><?php echo HEADING_TITLE; ?></h1></td>

<td class="main"><?php echo TEXT_MAIN; ?></td>

 

You can either delete the code, comment out the part after echo, or leave the define empty in catalog/includes/languages/english/index.php

 

Since you have deleted so much already, I would go with this:

<td><h1><?php echo // HEADING_TITLE; ?></h1></td>

<td class="main"><?php echo // TEXT_MAIN; ?></td>

 

Tim

 

(forgot to hit reply) Thanks Tim, however, when I open the file with Crimson I can't see any text.

Link to comment
Share on other sites

(forgot to hit reply) Thanks Tim, however, when I open the file with Crimson I can't see any text.

I am not familiar with Crimson, but there has to be code in the catalog/index.php file

Viewing your page source shows this:

<!-- body_text //-->
   <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading">HEADING_TITLE</td>
           <td class="pageHeading" align="right"><img src="images/table_background_default.gif" border="0" alt="HEADING_TITLE" title=" HEADING_TITLE " width="57" height="40"></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="main"></td>
         </tr>
         <tr>
           <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
         </tr>
         <tr>
           <td class="main">TEXT_MAIN</td>
         </tr>

Try a php editor like PSPad. And be sure you have the root index file loaded.

 

Tim

Link to comment
Share on other sites

I am not familiar with Crimson, but there has to be code in the catalog/index.php file

Viewing your page source shows this:

<!-- body_text //-->
   <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading">HEADING_TITLE</td>
           <td class="pageHeading" align="right"><img src="images/table_background_default.gif" border="0" alt="HEADING_TITLE" title=" HEADING_TITLE " width="57" height="40"></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="main"></td>
         </tr>
         <tr>
           <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
         </tr>
         <tr>
           <td class="main">TEXT_MAIN</td>
         </tr>

Try a php editor like PSPad. And be sure you have the root index file loaded.

 

Tim

 

 

Thanks so much. I'll give it a try tomorrow. I'm gonna take a break. My eyes are burning out of my head because it's taken me all day to just get this far. :o)

Link to comment
Share on other sites

You need to put the double slash in front of the word echo, not after it.

 

<td><h1><?php //echo HEADING_TITLE; ?></h1></td>
<td class="main"><?php //echo TEXT_MAIN; ?></td>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

You need to put the double slash in front of the word echo, not after it.

 

<td><h1><?php //echo HEADING_TITLE; ?></h1></td>
<td class="main"><?php //echo TEXT_MAIN; ?></td>

Thanks Jim,

 

I guess my eyes were burning last night also. :thumbsup:

Link to comment
Share on other sites

Thanks Jim,

 

I guess my eyes were burning last night also. :thumbsup:

 

 

It worked, it worked, yay, it worked. I'm so happy, yes!!!!! :D

 

Ok, on to other things. I'll definitely be back.

 

Thanks knifeman and germ!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...