orangechicken Posted October 2, 2002 Share Posted October 2, 2002 Posted: Sun Jul 28, 2002 6:51 am Post subject: Re: [CONTRIBUTION] non-member checkout processing v1.0 -------------------------------------------------------------------------------- yes and yes .. sorry, I threw it together in a day and I should be a little more concientious in my coding style. I apologize for the inconvienience. I guess I need to do an update. Thank you for the info and I hope it works for you. Hey man, have you made any progress on this? I've got it mostly working. I just need to have the non-members skip the 'Congratulations, you've created an account' page. Wanna have a look see? (Or post updated code) -chicken Link to comment Share on other sites More sharing options...
orangechicken Posted October 16, 2002 Author Share Posted October 16, 2002 OK, just revisited this. Got it to work wonderfully. Here's how At the bottom of create_account_process.php, replace this line: tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); With this chunk of code // DM: Addition to Strider's nonmember checkout. Skip the 'Congratulations' page if they're not becoming a member if( $membership == '1') { tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); } else { if (sizeof($navigation->snapshot) > 0) { $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); $navigation->clear_snapshot(); } else { $origin_href = tep_href_link(FILENAME_DEFAULT); } tep_redirect( $origin_href ); } // End DM: Addition to Strider's nonmember checkout. Hope that helps somebody else out! -chicken Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.