Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

My Store's Address on Contact Us Page


jbsemtner

Recommended Posts

I'm new to OSCommerce and I can't find a good example of the best way to get the address you put into your My Store Admin page (admin/configuration.php?gID=1) to display on the contact_us.php page. I think you could just do a querry on the database, but I'm looking for a pointer on the best way to do that. Any help would be appreciated.

-John

Link to comment
Share on other sites

You are better of hard coding it there, i am pretty sure there are contributions for this

Nic

 

I don't want to have to re-code anything to change it. I want my father to be able to update everything from the admin pannel.

Link to comment
Share on other sites

I liked this better though:

 

<tr>

<td class="main"><?php

echo '<h2>'.STORE_NAME.'</h2>'.nl2br(STORE_NAME_ADDRESS).'<br>Email: <a href="mailto:'.STORE_OWNER_EMAIL_ADDRESS.'">'.STORE_OWNER_EMAIL_ADDRESS.'</a><br><br>';

?>

</td>

</tr>

Link to comment
Share on other sites

I did mine as such just above

<tr>

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

 

like this:

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<?php

} else {

?>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<TR>My Store Name</TR>

<TR>Street Address.</TR>

<TR>city, state. zip</TR>

<TR>(281)phone number</TR>

<BR><BR>

<TR>Monday to Friday 8 AM - 4 PM CST</TR>

 

<tr>

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...