Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Step-By-Step Manual Order BETA


frankl

Recommended Posts

Hello... I uploaded the new snapshop of the Manualorder (10/14/03)

I had the other version up and running with not too many problems. I installed the new release and now when i go to edit order i get a blank page.

same with Manual oreder>create order> select customer> click confirm and all i get is a blank page...

any help?

thanks all

<span style='font-family:Courier'>If you can't fix it Perl it!!!...</span>

******************************

Link to comment
Share on other sites

  • Replies 98
  • Created
  • Last Reply

Top Posters In This Topic

Hello... I uploaded the new snapshop of the Manualorder (10/14/03)

I had the other version up and running with not too many problems. I installed the new release and now when i go to edit order i get a blank page.

same with Manual oreder>create order> select customer> click confirm and all i get is a blank page...

any help?

thanks all

Same here. It does create a blank order though with the next order #. just with no product. I haven't looked at the code yet but I think it's probably just a wrong re-direct or something.

 

will look into this tomorrow but if anybody else figures this out please post your findings!

Link to comment
Share on other sites

Found it! the contrib package uploaded today is wrong. The edit_orders.php file in the package is a language file and not the "code". just go download the edit_orders contrib to get the code and move the supplied language file to the language directory and it works! well I need to further test but this should take care of the initial problem.

 

hopefully the author is reading and can correct his package.

 

Really like this contrib so far.... good work!

 

B)

Link to comment
Share on other sites

Found it! the contrib package uploaded today is wrong. The edit_orders.php file in the package is a language file and not the "code". just go download the edit_orders contrib to get the code and move the supplied language file to the language directory and it works! well I need to further test but this should take care of the initial problem.

 

hopefully the author is reading and can correct his package.

 

Really like this contrib so far.... good work!

 

B)

Now work! but....

 

When i manual add a new customers and after i try to edit his account appear this messages:

 

mysite/includes/classes/object_info.php on line 17

mysite/main/admin/includes/classes/object_info.php

 

 

somebody can help me?

Link to comment
Share on other sites

First, Here's a big thank you for creating this mod!! It came at the precise time I needed it.

 

Seems to work great but if a product is 49.95 why does it round it off to 50. I appreciate your work on this but I would like it to show the exact price.

 

I ran into this too. Here's how I fixed it:

 

In the create_order_process.php look for:

$temp_amount = number_format($currency, 2, '.', '');

 

Change to this:

$temp_amount = number_format($temp_amount, 2, '.', '');

 

 

Although this has nothing to do with the above, you might also want to change this:

 

$currency = "AUD";

 

To your country, such as: $currency = "USD"; ;)

I just downloaded and installed this mod and am got this error.

 

Looking at my code I already have

 

 

$temp_amount = number_format($temp_amount, 2, '.', '');

 

So that can't be it. I did have AUD instead of USD but you said that wasn't the cause.

 

Good idea for a mod btw.

Link to comment
Share on other sites

Adding customer will work, but when i will change the customer in customers.php an error follows:

 

Warning: reset(): Passed variable is not an array or object in /home/httpd/htdocs/catalog/admin/includes/classes/object_info.php on line 17

 

Warning: Variable passed to each() is not an array or object in /home/httpd/htdocs/catalog/admin/includes/classes/object_info.php on line 18

 

Anybody knows why ?

 

Thanks 4 help.

Link to comment
Share on other sites

Adding customer will work, but when i will change the customer in customers.php an error follows:

 

Warning: reset(): Passed variable is not an array or object in /home/httpd/htdocs/catalog/admin/includes/classes/object_info.php on line 17

 

Warning: Variable passed to each() is not an array or object in /home/httpd/htdocs/catalog/admin/includes/classes/object_info.php on line 18

 

Anybody knows why ?

 

Thanks 4 help.

Meuros

 

I two had that error at one point,, but I was also getting another error in connection withit,, and what I did to fix it might take care of u'r problem as well..

 

I had to remove the email validation b4 i could even create an account without an error,, and the accounts it did create got that error,,

so,, i removed the valadation step,, not sure if u have that problem or not,, if so,, see earlier post or get back to me,, as for the second error,, here is my fix for it

i fixed by going into create_account_process.php (that came with the mod)

and finding the line

'address_book_id' => 1,

and changing it to

'address_book_id' => (int)$default_address_id,

 

this seems to have fixed the error i got after commenting out the validation step

hope that this helps someone else as well

it apears that is a difference in older versions of osc and the new ms2 which i am using,, it did take care of my problem,, and it should take care of u as well.

as for the accounts u have created up to this point,, the only way i could fix them was to go into phpmyadmin and going into the customers table,, browse it,, and delete those entries that I had created with this mod to this point.,,,

after i made the change above,, and created an account,, it worked great,,,

hope this helps

Tom

Link to comment
Share on other sites

  'address_book_id' => 1,

and changing it to

'address_book_id' => (int)$default_address_id,

 

sometimes i am blind at all ...

 

i didn't ad this line

 

'address_book_id' => (int)$default_address_id,

 

to my create_account_process.php

 

Thanks 4 help :-))

 

Now it works :-)))))

Link to comment
Share on other sites

?  'address_book_id' => 1,

and changing it to

'address_book_id' => (int)$default_address_id,

 

sometimes i am blind at all ...

 

i didn't ad this line

 

'address_book_id' => (int)$default_address_id,

 

to my create_account_process.php

 

Thanks 4 help :-))

 

Now it works :-)))))

I have added this code and it still does not work it keeps putting a 1 in the customer table.

 

Can anyone provide me more info.

 

<?php
/*
 $Id: create_account_process.php,v 1 2003/08/24 23:21:38 frankl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License

 Step-By-Step Manual Order Entry Verion 1.0
 Customer Entry through Admin
*/

 require('includes/application_top.php');

 define('EMAIL_PASS_1', 'Your password for this account is ');
 define('EMAIL_PASS_2', ', keep it in a safe place. (Please note: Your password is case sensitive.)');

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

/* function tep_validate_email($email) {
   $valid_address = true;

   $mail_pat = '^(.+)@(.+)$';
   $valid_chars = "[^] \(\)<>@,;:\.\\\"\[]";
   $atom = "$valid_chars+";
   $quoted_user='(\"[^\"]*\")';
   $word = "($atom|$quoted_user)";
   $user_pat = "^$word(\.$word)*$";
   $ip_domain_pat='^\[([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\]$';
   $domain_pat = "^$atom(\.$atom)*$";

   if (eregi($mail_pat, $email, $components)) {

     $user = $components[1];
     $domain = $components[2];

     // validate user
     if (eregi($user_pat, $user)) {
       // validate domain
       if (eregi($ip_domain_pat, $domain, $ip_components)) {
         // this is an IP address
        for ($i=1;$i<=4;$i++) {
          if ($ip_components[$i] > 255) {
            $valid_address = false;
            break;
          }
         }
       }
       else {
         // Domain is symbolic name
         if (eregi($domain_pat, $domain)) {

           // domain name seems valid, but now make sure that it ends in a
           //  three-letter word (like com, net, org, gov, edu, int) or a two-letter word,
           //   representing country (ca, uk, nl), and that there's a hostname preceding
           //   the domain or country.

           $domain_components = explode(".", $domain);

           // Make sure there's a host name preceding the domain.
           if (sizeof($domain_components) < 2)
             $valid_address = false;
           else {
             $top_level_domain = strtolower($domain_components[sizeof($domain_components)-1]);
             if (strlen($top_level_domain) < 2 || strlen($top_level_domain) > 6)
               $valid_address = false;
             elseif (strlen($top_level_domain) <= 6 && strlen($top_level_domain) >= 3) {
               switch ($top_level_domain) {
                 case 'com':
                 case 'net':
                 case 'org':
                 case 'gov':
                 case 'edu':
                 case 'int':
                 case 'biz':
                 case 'mil':
                 case 'info':
                 case 'name':
                 case 'aero':
                 case 'coop':
                 case 'museum':
                   break;
                 default:
                   $valid_address = false;
                   break;
               }
             }
           }
         }
         else {
          $valid_address = false;
        }
    	 }
     }
     else {
       $valid_address = false;
     }
   }
   else
     $valid_address = false;

   if ($valid_address && ENTRY_EMAIL_ADDRESS_CHECK == 'true') {
     if (!checkdnsrr($domain, "MX") && !checkdnsrr($domain, "A")) {
       $valid_address = false;
     }
   }

   return $valid_address;
 }  */

if (!@$HTTP_POST_VARS['action']) {
  tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'NONSSL'));
}

 $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']);


 /////////////////      RAMDOMIZING SCRIPT BY PATRIC VEVERKA       \\\\\\\\\\\\\\\\\\

$t1 = date("mdy");
srand ((float) microtime() * 10000000);
$input = array ("A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z");
$rand_keys = array_rand ($input, 3);
$l1 = $input[$rand_keys[0]];
$r1 = rand(0,9);
$l2 = $input[$rand_keys[1]];
$l3 = $input[$rand_keys[2]];
$r2 = rand(0,9);

$password = $l1.$r1.$l2.$l3.$r2;

/////////////////    End of Randomizing Script   \\\\\\\\\\\\\\\\\\\



 $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;
 }

 $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;

?>
<!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_ADMIN; ?>">
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<?php require('includes/form_check.js.php'); ?>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<?php
 require(DIR_WS_INCLUDES . 'header.php');
?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- 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>
         </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_confirm.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">
   </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_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,
                           //cchange line below to suit your version
    	 //'address_book_id' => 1,  //pre MS2
    	 'address_book_id' => (int)$default_address_id, //for MS2
                           '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');

   // 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_WELCOME . EMAIL_PASS_1 . $password . EMAIL_PASS_2 . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
   tep_mail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

   tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));
 }

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

Link to comment
Share on other sites

} 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_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,

//cchange line below to suit your version

//'address_book_id' => 1, //pre MS2

'address_book_id' => (int)$default_address_id, //for MS2

'entry_firstname' => $firstname,

'entry_lastname' => $lastname,

'entry_street_address' => $street_address,

'entry_postcode' => $postcode,

'entry_city' => $city,

'entry_country_id' => $country);[/b]

 

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

 

 

two times ... ?? maybe there is your failure

Link to comment
Share on other sites

Ok the following is how I fixed this problem I hope it helps

 

 ?} 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_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,
? ? ? ? ? ? ? ? ? ? ? ? ? ?//cchange line below to suit your version
? ? ?	//'address_book_id' => 1, ?//pre MS2
? ? ?	'address_book_id' => (int)$default_address_id, //for MS2
? ? ? ? ? ? ? ? ? ? ? ? ? ?'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);




? $address_chk_id = tep_db_insert_id();




? ?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())");




? tep_db_query("update customers set ?customers_default_address_id = '" . (int)$address_chk_id . "' where customers_id = '" . tep_db_input($customer_id) . "' and customers_default_address_id = 1");





? ?$customer_first_name = $firstname;


$customer_default_address_id = $address_chk_id;


? ?$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');

Edited by GIZMO-XL
Link to comment
Share on other sites

Ive had a bit of a play around with this mod, and im a bit puzzled. everyone was commenting about the pound sign showing instead of the $ sign.

 

I never had this problem.

 

Also it would appear tax is functioning, however shipping doesnt.

 

Im also a bit puzzled by the payment options, it just shows a blank box and says update to Credit Card to show the fields for credit card.

 

Thats fine but what if i use a different payment method how does that then work?

 

I also have other order total modules installed and they just show up blank boxes.. but that would be because these files dont know that i have low order fee, insurance and gift wrap installed.

 

So i guess i can figure out that bit...

Edited by Snowman
Link to comment
Share on other sites

Not sure why people are still posting to this thread? This thread is for the BETA version of the mod, which is now defunct.

 

The current thread for this mod is here.

 

Also don't forget that this is combined with another mod, Edit Orders, whose thread is here.

 

When installing the Step-By-Step mod, make sure you make the simple alterations to the files depending on which version of osC you are running.

 

And don't forget to donate to the core team! (very important) or the mod will stop working in 30 days... ;) :D

 

Cheers

osCommerce user since 2003! :thumbsup:

Link to comment
Share on other sites

  • 4 weeks later...

Hello,

 

You might write into your readme-File that you hardcoded the $currency = "AUD"; in the file create_order_process.php :-).

 

Greetings from Germany,

Thomas

 

PS: I used "step_by_step_orders_v1.1", it seemed to be the latesd Version ?!

Link to comment
Share on other sites

  • 1 month later...

I just installed everything in MS2 but when I click on create order or account from the admin, it takes me to an error screen:

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/designi/public_html/catalog/admin/includes/functions/database.php:13) in /home/designi/public_html/catalog/admin/includes/functions/database.php on line 13

 

Anybody know how to take care of this?

Link to comment
Share on other sites

  • 1 year later...

Hello,

 

I've installed step_by_step_orders_v1.4 from 12 Mar 2005. I have a few problems with this contribution.

 

1. When I go to admin/Create Account, under Addresss I have Suburb listed twice but no City:

 

Add a New Customer

 

Personal Details

 

Gender:    Male    Female  required

First Name:    required

Last Name:    required

E-Mail Address:    required

 

 

Company Details

 

Company Name:   

 

 

Address

 

Street Address:    required

Suburb:   

Post Code:    required

Suburb:    required

State/Province:    required

Country:  Please Select  required

 

 

Contact Information

 

Telephone Number:    required

Fax Number:   

 

 

 

Options

 

Newsletter:  Subscribed 

Notify Customer? : 

2. When I slide my mouse over Confirm button, it says IMAGE_BUTTON_CONFIRM. The same with Back button: IMAGE_BUTTON_CONTINUE.

 

3. When I go to admin/Create Order, I have no dropdown menu to select Payment and Shipping Methods, just a simple field to type a text.

 

4. How a customer can pay for his/her order if there is no option for that (not in e-mail, not in Order Details in My Account)? Is it a possibility to add a "Pay Now" button to email sent to customer, if order to be processed through PayPal?

 

5. Just a wish: how can I add a custom product which is not in my product' list. When click Add Product in Create Order to have a dropdown list of already available products and an additional field in case there is a custom product and it's not in my products' list.

 

Thanks a lot. I'll appreciate your advises. :rolleyes:

Irina.

Link to comment
Share on other sites

  • 3 months later...
  • 8 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...