jbsemtner Posted February 2, 2009 Share Posted February 2, 2009 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 More sharing options...
FIMBLE Posted February 2, 2009 Share Posted February 2, 2009 You are better of hard coding it there, i am pretty sure there are contributions for this Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
jbsemtner Posted February 3, 2009 Author Share Posted February 3, 2009 You are better of hard coding it there, i am pretty sure there are contributions for thisNic 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 More sharing options...
jbsemtner Posted February 3, 2009 Author Share Posted February 3, 2009 I think this is it: Add Store Details To Contact Us http://addons.oscommerce.com/info/3250 Link to comment Share on other sites More sharing options...
jbsemtner Posted February 3, 2009 Author Share Posted February 3, 2009 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 More sharing options...
Guest Posted February 3, 2009 Share Posted February 3, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.