chrometweaks.org

How do I make a website? (my domain is registered with iPage.com)?

Click Here To View All Answers...


Got a question... How do I make a website? (my domain is registered with iPage.com)? Many thanks for any comment. 2nd question I got is.. Thanks to a customer complaint, I just noticed that if you create an account before adding things to the cart, you are redirected to a non-secure page default page when you click "continue" after entering your name, address, etc. Windows pops up a security warning box about this. I think it may have scared off some customers..

I'm using an old 2.2CVS version from 11/28/02.

Any ideas to fix this would be greatly appreciated..

Thanks.

Joe..

Comments (70)

I'm stumped. I'm not so sure what is the right answer. I'll do some research in Google and get back to you if I find an useful answer. You should email the people at iPage as they probably could help you..

Comment #1

Thanks for the suggestion..

Unfortunately it didnt work..

Here is the original code.

<?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE);.

Here is what I changed it to.

<?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE ','SSL');..

Comment #2

No you need to change the line that I mentioned..it should be line 24 of create_account_success.php Changing the button will not do anything as you need to change the link to when it sends you back to the default page (the link back to default if the cart is empty is line 24). I just messed with two different snapshots by changing that line, one is dated 07/21/02 and the other 06/05/03 and in both I was able to disable whether or not the redirect went to a SSL page or not by changing that one line. The same can be done in checkout_success.php so when they are done checking out and hit continue they will still be in SSL rather than getting the warning message...

Comment #3

I feel stupid for not reading your previous post correctly. I did make the change you suggested to the create_account_success.php..

It still didnt do the trick..

I posted a screen shot here....

Http://www.joewoodwo....com/Image1.jpg.

Are you positive that is the right file to change? It seems it would have to be in the create_account.php but I'm no genius with this stuff..

Thanks.

Joe..

Comment #4

Just out of curiosity, what is the purpost of allowing people to sign up before putting somethign in the cart?..

Comment #5

Good question..

I guess there are customers who look around the iPage website and decided what they want to buy and put it on a mental list..

Then later (after they get permission from the wife to buy an item) they start with setting up an account before they add stuff to the cart..

The problem only happens if you create an account before you attempt to check out..

I guess I could remedy this by just removing the "would you like to create an account" part from the default page...

Comment #6

That's what I did..

But, if they want to sign up, they can still hit the 'my account' button..

This post has been edited by.

Wizardsandwars.

: 18 February 2004, 23:20..

Comment #7

Actually could you post your create_account.php file as your iPage site is not going to the create_account_success.php file...which would explain why the changes to that file made no difference...

Comment #8

Here ya go....

<?php.

/*.

 $Id: create_account.php,v 1.56 2002/07/21 23:38:57 hpdl Exp $.

 osCommerce, Open Source E-Commerce Solutions.

 http://www.oscommerce.com.

 Copyright (c) 2002 osCommerce.

 Released under the GNU General Public License.

*/.

 require('includes/application_top.php');.

 require(DIR_WS_LANGUAGES$language'/'FILENAME_CREATE_ACCOUNT);.

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'NONSSL'));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

<?php require('includes/form_check.js.php'); ?>.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<! header //>.

<?php require(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>.

<! body //>.

<table border="0" width="100%" cellspacing="3" cellpadding="3">.

 <tr>.

   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

   </table></td>.

<! body_text //>.

   <td width="100%" valign="top"><form name="account_edit" method="post" <?php echo 'action="'tep_href_link(FILENAME_CREATE_ACCOUNT_PROCESS, '', 'SSL')'"'; ?> onSubmit="return check_form();"><input type="hidden" name="action" value="process"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

     <tr>.

       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

         <tr>.

           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>.

           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

         </tr>.

       </table></td>.

     </tr>.

<?php.

 if (sizeof($navigation->snapshot) > 0) {.

?>.

     <tr>.

       <td class="smallText"><br><?php echo sprintf(TEXT_ORIGIN_LOGIN, tep_href_link(FILENAME_LOGIN, tep_get_all_get_params(), 'SSL')); ?></td>.

     </tr>.

<?php.

 }.

?>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

     <tr>.

       <td>.

<?php.

 $email_address = tep_db_prepare_input($HTTP_GET_VARS['email_address']);.

 $account['entry_country_id'] = STORE_COUNTRY;.

 require(DIR_WS_MODULES'account_details.php');.

?>.

       </td>.

     </tr>.

     <tr>.

       <td align="right" class="main"><br><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>.

     </tr>.

   </table></form></td>.

<! body_text_eof //>.

   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php require(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

   </table></td>.

 </tr>.

</table>.

<! body_eof //>.

<! footer //>.

<?php require(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

<br>.

</body>.

</html>.

<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>..

Comment #9

Ew...that is an old one (you still have a create_account_process.php file). Anyway try this:.

In create_account_process.php line 18 should read:.

Tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));.

And around line 215 of the same file you should have:.

<?php echo tep_draw_form('account_edit', tep_href_link(FILENAME_CREATE_ACCOUNT_PROCESS, '', 'SSL').

In login.php around line 51 you should have:.

Tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'SSL'));.

And the same thing again in login.php around line 61:.

Tep_redirect(tep_href_link(FILENAME_DEFAULT,'', 'SSL'));.

Try that and see what you get...it has been awhile since I messed with a version pre-MS1 and have forgotten everything that was changed in the old version I still have..

This post has been edited by.

JB.

: 19 February 2004, 16:38..

Comment #10

Thanks again for the help..

I tried it but with out luck again. Here is my create_account_process.php.

<?php.

/*.

 $Id: create_account_process.php,v 1.82 2002/10/08 10:42:32 project3000 Exp $.

 osCommerce, Open Source E-Commerce Solutions.

 http://www.oscommerce.com.

 Copyright (c) 2002 osCommerce.

 Released under the GNU General Public License.

*/.

 require('includes/application_top.php');.

 require(DIR_WS_LANGUAGES$language'/'FILENAME_CREATE_ACCOUNT_PROCESS);.

 if (!@$HTTP_POST_VARS['action']) {.

   tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));.

 }.

 $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);.

 $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);.

 $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);.

 $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']);.

 $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);.

 $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']);.

 $fax = tep_db_prepare_input($HTTP_POST_VARS['fax']);.

 $newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']);.

 $password = tep_db_prepare_input($HTTP_POST_VARS['password']);.

 $confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);.

 $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']);.

 $company = tep_db_prepare_input($HTTP_POST_VARS['company']);.

 $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);.

 $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']);.

 $city = tep_db_prepare_input($HTTP_POST_VARS['city']);.

 $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']);.

 $state = tep_db_prepare_input($HTTP_POST_VARS['state']);.

 $country = tep_db_prepare_input($HTTP_POST_VARS['country']);.

 $error = false; // reset error flag.

 if (ACCOUNT_GENDER == 'true') {.

   if (($gender == 'm') || ($gender == 'f')) {.

     $entry_gender_error = false;.

   } else {.

     $error = true;.

     $entry_gender_error = true;.

   }.

 }.

 if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {.

   $error = true;.

   $entry_firstname_error = true;.

 } else {.

   $entry_firstname_error = false;.

 }.

 if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {.

   $error = true;.

   $entry_lastname_error = true;.

 } else {.

   $entry_lastname_error = false;.

 }.

 if (ACCOUNT_DOB == 'true') {.

   if (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4))) {.

     $entry_date_of_birth_error = false;.

   } else {.

     $error = true;.

     $entry_date_of_birth_error = true;.

   }.

 }.

 if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) {.

   $error = true;.

   $entry_email_address_error = true;.

 } else {.

   $entry_email_address_error = false;.

 }.

 if (!tep_validate_email($email_address)) {.

   $error = true;.

   $entry_email_address_check_error = true;.

 } else {.

   $entry_email_address_check_error = false;.

 }.

 if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {.

   $error = true;.

   $entry_street_address_error = true;.

 } else {.

   $entry_street_address_error = false;.

 }.

 if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) {.

   $error = true;.

   $entry_post_code_error = true;.

 } else {.

   $entry_post_code_error = false;.

 }.

 if (strlen($city) < ENTRY_CITY_MIN_LENGTH) {.

   $error = true;.

   $entry_city_error = true;.

 } else {.

   $entry_city_error = false;.

 }.

 if (!$country) {.

   $error = true;.

   $entry_country_error = true;.

 } else {.

   $entry_country_error = false;.

 }.

 if (ACCOUNT_STATE == 'true') {.

   if ($entry_country_error) {.

     $entry_state_error = true;.

   } else {.

     $zone_id = 0;.

     $entry_state_error = false;.

     $check_query = tep_db_query("select count(*) as total from "TABLE_ZONES" where zone_country_id = '"tep_db_input($country)"'");.

     $check_value = tep_db_fetch_array($check_query);.

     $entry_state_has_zones = ($check_value['total'] > 0);.

     if ($entry_state_has_zones) {.

       $zone_query = tep_db_query("select zone_id from "TABLE_ZONES" where zone_country_id = '"tep_db_input($country)"' and zone_name = '"tep_db_input($state)"'");.

       if (tep_db_num_rows($zone_query) == 1) {.

         $zone_values = tep_db_fetch_array($zone_query);.

         $zone_id = $zone_values['zone_id'];.

       } else {.

         $zone_query = tep_db_query("select zone_id from "TABLE_ZONES" where zone_country_id = '"tep_db_input($country)"' and zone_code = '"tep_db_input($state)"'");.

         if (tep_db_num_rows($zone_query) == 1) {.

           $zone_values = tep_db_fetch_array($zone_query);.

           $zone_id = $zone_values['zone_id'];.

         } else {.

           $error = true;.

           $entry_state_error = true;.

         }.

       }.

     } else {.

       if (!$state) {.

         $error = true;.

         $entry_state_error = true;.

       }.

     }.

   }.

 }.

 if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {.

   $error = true;.

   $entry_telephone_error = true;.

 } else {.

   $entry_telephone_error = false;.

 }.

 $passlen = strlen($password);.

 if ($passlen < ENTRY_PASSWORD_MIN_LENGTH) {.

   $error = true;.

   $entry_password_error = true;.

 } else {.

   $entry_password_error = false;.

 }.

 if ($password != $confirmation) {.

   $error = true;.

   $entry_password_error = true;.

 }.

 $check_email = tep_db_query("select customers_email_address from "TABLE_CUSTOMERS" where customers_email_address = '"tep_db_input($email_address)"' and customers_id <> '"tep_db_input($customer_id)"'");.

 if (tep_db_num_rows($check_email)) {.

   $error = true;.

   $entry_email_address_exists = true;.

 } else {.

   $entry_email_address_exists = false;.

 }.

 if ($error == true) {.

   $processed = true;.

   $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'NONSSL'));.

   $breadcrumb->add(NAVBAR_TITLE_2);.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

<?php require('includes/form_check.js.php'); ?>.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<! header //>.

<?php require(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>.

<! body //>.

<table border="0" width="100%" cellspacing="3" cellpadding="3">.

 <tr>.

   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

   </table></td>.

<! body_text //>.

   <td width="100%" valign="top"><?php echo tep_draw_form('account_edit', tep_href_link(FILENAME_CREATE_ACCOUNT_PROCESS, '', 'SSL'), 'post', 'onSubmit="return check_form();"')tep_draw_hidden_field('action', 'process'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

     <tr>.

       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

         <tr>.

           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>.

           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

         </tr>.

       </table></td>.

     </tr>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

     <tr>.

       <td><?php include(DIR_WS_MODULES'account_details.php'); ?></td>.

     </tr>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

     <tr>.

       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

         <tr>.

           <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>.

         </tr>.

       </table></td>.

     </tr>.

   </table></form></td>.

<! body_text_eof //>.

   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php include(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

   </table></td>.

 </tr>.

</table>.

<! body_eof //>.

<! footer //>.

<?php include(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

<br>.

</body>.

</html>.

<?php.

 } else {.

   $sql_data_array = array('customers_firstname' => $firstname,.

                           'customers_lastname' => $lastname,.

                           'customers_email_address' => $email_address,.

                           'customers_telephone' => $telephone,.

                           'customers_fax' => $fax,.

                           'customers_newsletter' => $newsletter,.

                           'customers_password' => crypt_password($password),.

                           'customers_default_address_id' => 1);.

   if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender;.

   if (ACCOUNT_DOB == 'true') $sql_data_array['customers_dob'] = tep_date_raw($dob);.

   tep_db_perform(TABLE_CUSTOMERS, $sql_data_array);.

   $customer_id = tep_db_insert_id();.

   $sql_data_array = array('customers_id' => $customer_id,.

                           'address_book_id' => 1,.

                           'entry_firstname' => $firstname,.

                           'entry_lastname' => $lastname,.

                           'entry_street_address' => $street_address,.

                           'entry_postcode' => $postcode,.

                           'entry_city' => $city,.

                           'entry_country_id' => $country);.

   if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;.

   if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company;.

   if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $suburb;.

   if (ACCOUNT_STATE == 'true') {.

     if ($zone_id > 0) {.

       $sql_data_array['entry_zone_id'] = $zone_id;.

       $sql_data_array['entry_state'] = '';.

     } else {.

       $sql_data_array['entry_zone_id'] = '0';.

       $sql_data_array['entry_state'] = $state;.

     }.

   }.

   tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);.

   tep_db_query("insert into "TABLE_CUSTOMERS_INFO" (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('"tep_db_input($customer_id)"', '0', now())");.

   $customer_first_name = $firstname;.

   $customer_default_address_id = 1;.

   $customer_country_id = $country;.

   $customer_zone_id = $zone_id;.

   tep_session_register('customer_id');.

   tep_session_register('customer_first_name');.

   tep_session_register('customer_default_address_id');.

   tep_session_register('customer_country_id');.

   tep_session_register('customer_zone_id');.

// restore cart contents.

   $cart->restore_contents();.

   // build the message content.

   $name = $firstname" "$lastname;.

   if (ACCOUNT_GENDER == 'true') {.

      if ($HTTP_POST_VARS['gender'] == 'm') {.

        $email_text = EMAIL_GREET_MR;.

      } else {.

        $email_text = EMAIL_GREET_MS;.

      }.

   } else {.

     $email_text = EMAIL_GREET_NONE;.

   }.

   $email_text .= EMAIL_WELCOMEEMAIL_TEXTEMAIL_CONTACTEMAIL_WARNING;.

   tep_mail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);.

   tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

 }.

 require(DIR_WS_INCLUDES'application_bottom.php');.

?>..

Comment #11

Thanks to a customer complaint, I just noticed that if you create an account before adding things to the cart, you are redirected to a non-secure page default page when you click "continue" after entering your name, address, etc. Windows pops up a security warning box about this. I think it may have scared off some customers..

I'm using an old 2.2CVS version from 11/28/02.

Any ideas to fix this would be greatly appreciated..

Thanks.

Joe..

Comment #12

In create_account_success.php have you tried changing this:.

   $origin_href = tep_href_link(FILENAME_DEFAULT);.

To this?:.

   $origin_href = tep_href_link(FILENAME_DEFAULT, ' ','SSL');..

Comment #13


This question was taken from a support group/message board and re-posted here so others can learn from it.