drezitas Posted March 3, 2006 Share Posted March 3, 2006 Hi there, New to osCommerce and the forum and really need some help on the following problem... Just some backround - I'm more of a hacker than a programmer. But one day I might succeed. I have my main website which I am setting up for non-registered and potential clients to view our product range. http://www.podech.co.nz/ Registered clients will be using osCommerce to purchase products. The plan is to have them login to osCommerce via the website above. I've hacked the login pages so only the form is there in a table. The login.php has been renamed to podech_login.php and I've created an inline frame in which this page is displayed. View the image below... What I am after is hopefully something that a few lines of code will fix. When the Client signs in I want podech_login.php to open the osCommerce page (with the client signed in) in the same browser window, and not the inline frame. I'm after the same action as if it fired of a hyperlink with the attribute target='_top'. When podech_login.php fires the code: <?php echo tep_draw_form('login', tep_href_link(FILENAME_PODECH_TOP_LOGIN, 'action=process', 'SSL')); ?> I can't find where in the 'process' script I can load the page in the desired fashion and I don't know what php code I would use to do this. Can anyone out there help or point me in the right direction. This is all in development and I may try other alternatives at a later date. The store can be accessed by anyone at the moment but I will be placing a layer between the standard website and the root directory for the osCommerce cart which is located at http://www.podech.co.nz/store/index.php. This layer will just redirect anyone that hits the /store/ folder to the login page. No where near bullet proof or water proof but is all that is required for now. Thanks. Link to comment Share on other sites More sharing options...
drezitas Posted March 6, 2006 Author Share Posted March 6, 2006 I found that it was calling the tep_redirect function found in functions/general.php. Here is the code for the function... function tep_redirect($url) { global $logger; header('Location: ' . $url); if (STORE_PAGE_PARSE_TIME == 'true') { if (!is_object($logger)) $logger = new logger; $logger->timer_stop(); } exit; } Can anyone help me with creating a new function titled 'tep_loctation_top' where instead of redirecting the signed in Client, the link is opened in the same manner as if I was using <a href="yadayada.php" target=_top>. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.