twopooches Posted March 23, 2003 Share Posted March 23, 2003 I would like to change where "create an account" goes to. I also want to redirect after they go to the new page and complete the form. What file do I modify to define where "Create an account" goes to? What is the URL to then redirect back to the "create an account" form?(catalog/create_account.php) I have looked through numerous files and am clueless as to which file to modify. Thank you in advance for your help :lol: Link to comment Share on other sites More sharing options...
Ian Posted March 23, 2003 Share Posted March 23, 2003 If you mean the text which reads Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account? then the define for this is in includes/languages/english.php (or german.php, epanol.php etc) The define is called TEXT_GREETING_GUEST Not sure about the second part. Do you mean you want to go somewhere else instead of create_account_success.php Trust me, I'm an Accountant. Link to comment Share on other sites More sharing options...
twopooches Posted March 23, 2003 Author Share Posted March 23, 2003 I want to go to another page rather than the account creation form. Then from the other page I want to go back to the create account form. My goal is to have people pay for a membership prior to signing up for an account. I will be doing this with a PayPal subscription. Link to comment Share on other sites More sharing options...
burt Posted March 23, 2003 Share Posted March 23, 2003 The create_account_success.php page is a page that shouldn't even be part of the checkout procedure - it's an unnecessary complication for the buyer, as it doesn't give enough instructions that to complete their order they should press continue. It also does nothing code-wise that is a necessary part of Oscommerce. I believe it can be removed without damaging anything. I've changed the following line in checkout_process.php: tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); To: tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, 'creation=true', 'SSL')); checkout_shipping.php checks cart contents anyway, and if it is zero, it will return them to shopping_cart.php If they have something in their cart, then it continues the rest of the checkout as per the normal procedure. The creation=true is what I use to say "Thank you for telling us your details, please now choose your shipping method..." I haven't fully tested it yet on a number of shops, but it appears to work pretty much OK. Link to comment Share on other sites More sharing options...
Ian Posted March 23, 2003 Share Posted March 23, 2003 Ok, the link you also want is in login.php <td width="50%" align="right" valign="top"><?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> change the FILENAME_CREATE_ACCOUNT to the name of your new file. You can obviously use a similar link to go from your custome page back to the create account page. Trust me, I'm an Accountant. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.