Jayson Wonder Posted February 21, 2007 Share Posted February 21, 2007 Hi, I have no problem to change the osCommerce logo but how do I change the URL? This is the code: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo.jpg', 'My Store') . '</a>'; ?></td> I am not a PHP pro but I think I could do it by hard coding a link there instead of : <a href="' . tep_href_link(FILENAME_DEFAULT) . '"> But is there a place where I can change the variable for tep_href_link(FILENAME_DEFAULT) instead? Thanks, Link to comment Share on other sites More sharing options...
khime Posted February 21, 2007 Share Posted February 21, 2007 you can change the FILENAME_DEFAULT constant in catalog/includes/filenames.php Link to comment Share on other sites More sharing options...
Jayson Wonder Posted February 21, 2007 Author Share Posted February 21, 2007 you can change the FILENAME_DEFAULT constant in catalog/includes/filenames.php Thank you! Link to comment Share on other sites More sharing options...
Jayson Wonder Posted February 21, 2007 Author Share Posted February 21, 2007 Thank you! Actually now that I look at it I see that the value for that variable is index.php. I am wondering what or if anything else will break by changing this. Basically I replaced the logo with my conpany logo but if someone clicks on it it takes them back to the store root. Since they are already in the store if they click that logo, I want to send them back to the site root / index.html page. Any suggestions? Link to comment Share on other sites More sharing options...
Guest Posted February 21, 2007 Share Posted February 21, 2007 Does not work since this influences what page the site goes to!! Link to comment Share on other sites More sharing options...
Jayson Wonder Posted February 22, 2007 Author Share Posted February 22, 2007 Does not work since this influences what page the site goes to!! So what are my options? Only to hard code it in? Link to comment Share on other sites More sharing options...
Jayson Wonder Posted February 22, 2007 Author Share Posted February 22, 2007 So what are my options? Only to hard code it in? Any thoughts? Link to comment Share on other sites More sharing options...
jasonabc Posted February 22, 2007 Share Posted February 22, 2007 You can hard code it but this will lose the session meaning anyone logged in with stuff in their cart will lose everything. Install this to keep the session going outside of the store: http://www.oscommerce.com/community/contributions,3257 Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.