Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a new define( in English.php....messing up somewhere


-Spazmatic-

Recommended Posts

I want to put the information box (it's contents) in the footer, so I tried putting this in english.php:

define('FOOTER_INFO_BODY', '<a href='www.trophyshoponline.com/catalog/shipping.php'>Shipping & Returns</a> - <a href='www.trophyshoponline.com/catalog/privacy.php'>Privacy Notice</a> - <a href='www.trophyshoponline.com/catalog/conditions.php'>Conditions Of Use</a> - <a href='www.trophyshoponline.com/catalog/contact.php'>Contact Us</a>');

 

And in my footer.php I added

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td align="center" class="smallText"><?php echo FOOTER_INFO_BODY; ?></td>
 </tr>
</table>

 

I get this:

 

Parse error: parse error, unexpected T_STRING in /home/content/a/w/a/awardsfor/html/catalog/includes/languages/english.php on line 323

 

Can you not use <a href>'s ?

Link to comment
Share on other sites

yes you can. looking at your code what you need to do is:

 

define('FOOTER_INFO_BODY', '<a href="www.trophyshoponline.com/catalog/shipping.php">Shipping & Returns</a> - <a href="www.trophyshoponline.com/catalog/privacy.php">Privacy Notice</a> - <a href="www.trophyshoponline.com/catalog/conditions.php">Conditions Of Use</a> - <a href="www.trophyshoponline.com/catalog/contact.php">Contact Us</a>');

 

and see if that works. there was probably a parsing error

Link to comment
Share on other sites

Open up your index.php in an editer then add the code you want right below where it says

<tr>

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

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

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

</tr>

 

You will want to put it inside of a tr and td to keep the page working properly like this

 

<tr><td>Your code here

</td></tr>

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Hmm. Is there any way I could get this to work?

 

<!-- Search Google -->
<center>
<FORM method=GET action=http://www.google.com/custom>
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
<tr valign=top><td>
<A HREF=http://www.google.com/search>
<IMG SRC=http://www.google.com/logos/Logo_40wht.gif border=0 ALT=Google align=middle></A>
</td>
<td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=sa VALUE="Google Search">
<INPUT type=hidden name=cof VALUE="S:http://www.trophyshoponline.com/catalog;AH:center;BGC:ffffff;LH:118;L:https://www.trophyshoponline.com/catalog/images/afe%20copy.jpg;LW:200;AWFID:d30c873d2eaa8157;">
<input type=hidden name=domains value="trophyshoponline.com"><br><input type=radio name=sitesearch value=""> Search WWW <input type=radio name=sitesearch value="trophyshoponline.com" checked> Search trophyshoponline.com
</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...