Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
frankl

[Contribution] Step-By-Step Manual Order

Recommended Posts

Guest

When you edit an order and the customer logsin to their store to read it there are extraneous "U" right after the state like Arkansas, U after the "Delivery" and "Billing" address and also the "payment" text is cut off if you have added additional text to the checkout_payment.php page.

 

How would I fix these problems?

 

Thank you!

Share this post


Link to post
Share on other sites
When you edit an order and the customer logsin to their store to read it there are extraneous "U" right after the state like Arkansas, U after the "Delivery" and "Billing" address and also the "payment" text is cut off if you have added additional text to the checkout_payment.php page.

Hmmm... i just noticed it too.

 

The state or country (in my case) is cut off and replaced by a 'U'


Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
How would I fix these problems?

do you have country state selector installed?

Edited by chooch

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
Guest

I found that in the old ms2 download on line 453 in catalog/includes/functions/general.php you have this:

$country = tep_output_string_protected($address['country']);

 

In the latest ms2 download you have this:

$country = tep_output_string_protected($address['country']['title']);

 

When I removed "title" and put that line of code back to the original ms2 download the problem disappears and the United States is spelled completely out on the account_history_info.php page only.

 

I'm not sure this is the best way to fix this but will put in a bug report.

Edited by modom

Share this post


Link to post
Share on other sites

That one line has caused much grief to many people on the Update 060817 thread.

 

I am sticking to the original line until/inless an alternative can be found... I don't see what is so important about adding it anyway?


Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
Guest

I have a shop with this contribution installed but not sure what exact version it is,

 

It all seems to work fine, but i would love for it to enter the individual shipping price (I have the Shipping Per Product contrib installed) automatically into the shipping cost field (And also sum up the shipping costs for each item as and when i add them)

 

the code is a tad too complex for my measly php skills, here is the relevant snippet (I think) from my edit_orders.php file

 

	$TotalsArray = array();
for ($i=0; $i<sizeof($order->totals); $i++) {
	$TotalsArray[] = array("Name" => $order->totals[$i]['title'], "Price" => number_format($order->totals[$i]['value'], 2, '.', ''), "Class" => $order->totals[$i]['class'], "TotalID" => $order->totals[$i]['orders_total_id']);
	$TotalsArray[] = array("Name" => "		  ", "Price" => "", "Class" => "ot_custom", "TotalID" => "0");
}

array_pop($TotalsArray);
foreach($TotalsArray as $TotalIndex => $TotalDetails)
{
	$TotalStyle = "smallText";
	if($TotalDetails["Class"] == "ot_total")
	{
		echo '	<tr>' . "\n" .
			   '		<td align="right" class="' . $TotalStyle . '"><b>' . $TotalDetails["Name"] . ' </b></td>' .
			   '		<td align="right" class="' . $TotalStyle . '"><b>' . $currencies->format($TotalDetails["Price"]) . '</b>' . 
						"<input name='update_totals[$TotalIndex][title]' type='hidden' value='" . trim($TotalDetails["Name"]) . "' size='" . strlen($TotalDetails["Name"]) . "' >" . 
						"<input name='update_totals[$TotalIndex][value]' type='hidden' value='" . $TotalDetails["Price"] . "' size='6' >" . 
						"<input name='update_totals[$TotalIndex][class]' type='hidden' value='" . $TotalDetails["Class"] . "'>\n" . 
						"<input type='hidden' name='update_totals[$TotalIndex][total_id]' value='" . $TotalDetails["TotalID"] . "'>" . '</b></td>' . 
			   '		<td align="right" class="' . $TotalStyle . '"><b>' . tep_draw_separator('pixel_trans.gif', '1', '17') . '</b>' . 
			   '	</tr>' . "\n";
	}
	elseif($TotalDetails["Class"] == "ot_subtotal") 
	{
		echo '	<tr>' . "\n" .
			   '		<td align="right" class="' . $TotalStyle . '"><b>' . $TotalDetails["Name"] . '</b></td>' . //THIS IS THE SUB TOTAL DISPLAY LINE
			   '		<td align="right" class="' . $TotalStyle . '"><b>' . $currencies->format($TotalDetails["Price"]) . '</b>' . 
						"<input name='update_totals[$TotalIndex][title]' type='hidden' value='" . trim($TotalDetails["Name"]) . "' size='" . strlen($TotalDetails["Name"]) . "' >" . 
						"<input name='update_totals[$TotalIndex][value]' type='hidden' value='" . $TotalDetails["Price"] . "' size='6' >" . 
						"<input name='update_totals[$TotalIndex][class]' type='hidden' value='" . $TotalDetails["Class"] . "'>\n" . 
						"<input type='hidden' name='update_totals[$TotalIndex][total_id]' value='" . $TotalDetails["TotalID"] . "'>" . '</b></td>' . 
			   '		<td align="right" class="' . $TotalStyle . '"><b>' . tep_draw_separator('pixel_trans.gif', '1', '17') . '</b>' . 
			   '	</tr>' . "\n";
	}
	elseif($TotalDetails["Class"] == "ot_tax")
	{
		echo '	<tr>' . "\n" .
			   '		<td align="right" class="' . $TotalStyle . '"><b>' . trim($TotalDetails["Name"]) . "</b><input name='update_totals[$TotalIndex][title]' type='hidden' size='" . $max_length . "' value='" . trim($TotalDetails["Name"]) . "'>" . '</td>' . "\n" .
			   '		<td align="right" class="' . $TotalStyle . '"><b>' . $currencies->format($TotalDetails["Price"]) . '</b>' . 
						"<input name='update_totals[$TotalIndex][value]' type='hidden' value='" . $TotalDetails["Price"] . "' size='6' >" . 
						"<input name='update_totals[$TotalIndex][class]' type='hidden' value='" . $TotalDetails["Class"] . "'>\n" . 
						"<input type='hidden' name='update_totals[$TotalIndex][total_id]' value='" . $TotalDetails["TotalID"] . "'>" . '</b></td>' . 
			   '		<td align="right" class="' . $TotalStyle . '"><b>' . tep_draw_separator('pixel_trans.gif', '1', '17') . '</b>' . 
			   '	</tr>' . "\n";
	}
	else
	{
		echo '	<tr>' . "\n" .
			   '		<td align="right" class="' . $TotalStyle . '">' . "Discount/P&P etc ? <input name='update_totals[$TotalIndex][title]' size='" . $max_length . "' value='" . trim($TotalDetails["Name"]) . "'>" . '</td>' . "\n" .
			   '		<td align="right" class="' . $TotalStyle . '">' . "Amount ? <input name='update_totals[$TotalIndex][value]' size='6' value='" . $TotalDetails["Price"] . "'>" . 
						"<input type='hidden' name='update_totals[$TotalIndex][class]' value='" . $TotalDetails["Class"] . "'>" . 
						"<input type='hidden' name='update_totals[$TotalIndex][total_id]' value='" . $TotalDetails["TotalID"] . "'>" . 
			   '		<td align="right" class="' . $TotalStyle . '"><b>' . tep_draw_separator('pixel_trans.gif', '1', '17') . '</b>' . 
				 '   </td>' . "\n" .
			   '	</tr>' . "\n";
	}
}
?>

 

Also for some reason i get 3 fields each for discount and shipping, see screenshot, should i only have one ?

 

manual_order_screenshot.jpg

Share this post


Link to post
Share on other sites

that's because somewhere in your edit orders file that code is entered so many times for no logical reason because the step by step manual order entry has it's own discount and tax fields... your best bet is to use just one newly created 'discount/p+p' field and display it as a 'shipping costs field' and then use that field to add your shipping prices which you'll have to enter manually because of your shipping price contribution.


Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
Just installed this contrib and it appears to be working pretty good but I have noticed a few problems (none of them too serious) that need addressed.

 

1) The customer gets two emails titled "Your order has been updated" I've only updated the order once, so why would 2 emails get sent? Each email has a status of Processing. The order was only updated to this status once, as is clearly indicated on the create order page, so it's not a case of accidentally hitting the button twice. I even tested it more than once to make sure I wasn't crazy. I'm sure our customers don't want their inboxes filling up with repetitive emails, so if anyone has any ideas, let me know.

 

2) The box for payment method isn't a dropdown. It's free-form text. There is code in the contrib to create the orders_pay_methods table, as well as to populate it with a few values. I did create the table and I did add the values. (Yes, I confirmed this by going back to mySQLadmin and checking the table.) I was assuming this field would be a dropdown and it would use those values. Am I mistaken or is there a problem?

 

3) There is no shipping method selection. I was under the assumption that, because I added the orders_ship_methods table (and values), I would be presented with the option of actually using it. (I know. Silly me...)

 

4) The 'Add a product to this Order' button is a dead link. Just shows up as a white box with the red x in it. This is purely cosmetic and not really a big deal but since I was mentioning problems, I figured I'd throw it out there.

 

I apologize if any of these issues have been brought up and solved already. I went through about 10 pages of this post (including all the more recent ones) and didn't see anything.

 

Anyone?


Add-Ons personally installed:

Step by Step Manual Order -- Request Reviews -- Reviews in Product Listing -- Reviews in Product Display -- Review Approval System -- Leverage Browser Cache --
Header Tag Controller -- Multilayer SEO Pop Out Menu -- Follow Us Box -- View All Products -- USPS Shipping Labels -- UPS Shipping Labels -- Monthly Sales/Tax Report --
htacess Optimisation -- Remove Unused Images -- Master Password -- Admin Change Customer Password -- Database Backup Manager -- Zero Stock Report --
Searchbox Search In Descriptions -- Easy Populate 2.76i -- Barcode Rendering -- Admin Sort By Model -- Products Purchased Report

Add-Ons personally developed:

Search for email address, etc in Orders -- Discontinue Product

Add-Ons installed by others:

View Counter -- Site Monitor -- Image Thumbnailer -- Database Optimizer -- Recaptcha -- Discount Coupons -- Add More Fields

Share this post


Link to post
Share on other sites

I did a quick search and added some quick links to FedEx US & Canadian address checker as well as FedEx, UPS, and USPS Rates & Transit Time Online Calculations. Very simple to integrate into admin/edit_orders.php or admin/create_account.php, just links to the related pages, nothing smart. If anybody is interested, I can share my modifications.

 

Regards.

Edited by Irin

Share this post


Link to post
Share on other sites
Guest

I have found a conflict with another contrib i have installed :(

 

I have Actual Attribute Price contrib installed which allows the attribute price prefix to not only be '+' or '-' but also to be null i.e. ''

if the prefix is null then the attribute options_value_price field is used as the fixed price instead of adding or subtracting the attribute options_value_price from the total price.

 

The problem occurs in Step by Step manual order as this prefix is hard coded in edit_orders.php i.e.

 

price_prefix = '+';";

 

i have adapted this to actually pull the prefix from the database like this

 

list($price_prefix) = tep_db_query("SELECT price_prefix FROM " . TABLE_PRODUCTS_ATTRIBUTES . " WHERE products_attributes_id = " . $option_value_id . "");

 

and then replaced the line above to set price_prefix to be as follows:-

 

price_prefix = '" . $price_prefix . "';";

 

this works fine i.e. it pulls the prefix and writes it to the orders table as you add products, now i need to change the rest of the edit_orders.php file to use this prefix value and the rules as follows to calculate the total and sub total prices

 

If prefix ='+' then add attribute options_values_price to item price

If prefix ='-' then deduct attribute options_values_price from item price

If prefix ='' then item price = attribute options_values_price

 

this is where i have come unstuck as my php isnt up to it, i can see the areas that need to be modified i.e. within this snippet here:-

 

			  $order->products[$index]['attributes'][$subindex] = array('option' => $attributes['products_options'],
																'value' => $attributes['products_options_values'],
																'prefix' => $attributes['price_prefix'],
																'price' => $attributes['options_values_price'],
																'orders_products_attributes_id' => $attributes['orders_products_attributes_id']);

 

but not sure how to go about it, any help out there ?

Share this post


Link to post
Share on other sites
but not sure how to go about it, any help out there ?

Unfortunately it seems there isn't much input in the thread for this particular contribution, maybe that's why the progress is stifled.


Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
Unfortunately it seems there isn't much input in the thread for this particular contribution, maybe that's why the progress is stifled.

I'm using edit_order.php from "Order Editor" contribution. Works fine for me and is much more advanced than the original file provided with this contribution. That contribution is updated very often and has a very informative support thread. So, I just combined them today to suit my needs.

 

Regards.

Share this post


Link to post
Share on other sites
I'm using edit_order.php from "Order Editor" contribution. Works fine for me and is much more advanced than the original file provided with this contribution. That contribution is updated very often and has a very informative support thread. So, I just combined them today to suit my needs.

 

Regards.

hmmm, nice one - thanks i'll do that too :D


Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
Guest
I'm using edit_order.php from "Order Editor" contribution

Does it work without any modification needed ?

Edited by fuzioneer

Share this post


Link to post
Share on other sites
Does it work without any modification needed ?

no, it does need modifying otherwise the page doesn't open


Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
no, it does need modifying otherwise the page doesn't open

yes, it does require modifications to work properly. Just follow the installation instructions in the package and make sure you don't miss anything.

It's much more advanced and has a lot of functions to use, such as, payment method dropdown menu coupled with CSS to hide/display credit card info fields, on-the-fly calculations of subtotal, tax totals, and final total, AJAX Add Products, DHTML tooltips, and much more. Just search for the Order Editor in the contribution area and do a comparison between your edit_orders.php and the one in the contribution. You'll see that the version of edit_orders.php used by Order Editor is much more advanced and improved. I use it for a long time already. Works great for me.

Share this post


Link to post
Share on other sites

Do you, guys, have a problem with password.value null or not an object in create_account.php? I'm getting an IE error when I manually create account. The message says:

Line: 28

Char: 3

Error: 'document.account_edit.password.value' is null or not an object

Code: 0

URL: https://shop.com/admin/create_account_process.php

Line 28 is var password = document.account_edit.password.value; from the admin/includes/form_check.js.php.

 

I don't know how to solve it. Any ideas?

 

Thanks in advance.

Share this post


Link to post
Share on other sites
I'm getting an IE error when I manually create account.

No, I am not getting that error nor have I ever heard of it particular one. Did you manually edit the formcheck file?


Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
No, I am not getting that error nor have I ever heard of it particular one. Did you manually edit the formcheck file?

No, I didn't modify the formcheck file. I even compared mine with the one provided by the contribution, they're identical. However, I did modify create_account_process.php by adding email validation functions which aren't supposed to interfere with random password creation. And, I also have function tep_encrypt_password in /admin/includes/functions/general.php commented out, otherwise, I'm getting an error message something about the function not being defined. Although, the system does create a random password which is sent by email and I don't have any problems logging in to my account later. It's only that annoying IE error, and I can't understand why is it appearing. Everything seems to be correct. Do you also have that block of CATEGORY_PASSWORD code in modules/account_details.php commented out?

Share this post


Link to post
Share on other sites
Do you also have that block of CATEGORY_PASSWORD code in modules/account_details.php commented out?

I have checked my file and can't see that commented out.

 

What is exactly on line 28 of your file 'create_account'?

 

Line: 28

Char: 3

Error: 'document.account_edit.password.value' is null or not an object

Code: 0

Edited by chooch

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
I have checked my file and can't see that commented out.

 

What is exactly on line 28 of your file 'create_account'?

 

Line: 28

Char: 3

Error: 'document.account_edit.password.value' is null or not an object

Code: 0

Do you mean that you have Password area visible when you create account? Here is that block of code that's commented out in my modules/account_details.php. Note /* and */

<?php/*

<?php

if (!$is_read_only) {

?>

<tr>

<td class="formAreaTitle"><br><?php echo CATEGORY_PASSWORD; ?></td>

</tr>

<tr>

<td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">

<tr>

<td class="main"><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main"> <?php echo ENTRY_PASSWORD; ?></td>

<td class="main"> 

<?php

if ($error) {

if ($entry_password_error) {

echo tep_draw_password_field('password') . ' ' . ENTRY_PASSWORD_ERROR;

} else {

echo PASSWORD_HIDDEN . tep_draw_hidden_field('password') . tep_draw_hidden_field('confirmation');

}

} else {

echo tep_draw_password_field('password') . ' ' . ENTRY_PASSWORD_TEXT;

}

?></td>

</tr>

<?php

if ( (!$error) || ($entry_password_error) ) {

?>

<tr>

<td class="main"> <?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>

<td class="main"> 

<?php

echo tep_draw_password_field('confirmation') . ' ' . ENTRY_PASSWORD_CONFIRMATION_TEXT;

?></td>

</tr>

<?php

}

?>

</table></td>

</tr>

</table></td>

</tr>

*/ ?>

 

<?php

// }

?>

</table>

If I'll view create_account file source, Line 28 is var password = document.account_edit.password.value;

Here is the source of my entire create_account.php:

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

<html dir="ltr" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>mysite</title>

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

 

<script language="javascript"><!--

 

var submitted = false;

 

function check_form() {

var error = 0;

var error_message = "Errors have occured during the process of your form!\nPlease make the following corrections:\n\n";

 

if(submitted){

alert( "JS_ERROR_SUBMITTED");

return false;

}

 

var first_name = document.account_edit.firstname.value;

var last_name = document.account_edit.lastname.value;

var email_address = document.account_edit.email_address.value;

var street_address = document.account_edit.street_address.value;

var postcode = document.account_edit.postcode.value;

var city = document.account_edit.city.value;

var telephone = document.account_edit.telephone.value;

var password = document.account_edit.password.value;

var confirmation = document.account_edit.confirmation.value;

 

if (document.account_edit.elements['gender'].type != "hidden") {

if (document.account_edit.gender[0].checked || document.account_edit.gender[1].checked) {

} else {

error_message = error_message + "* The 'Gender' value must be chosen.\n";

error = 1;

}

}

 

if (document.account_edit.elements['firstname'].type != "hidden") {

if (first_name == '' || first_name.length < 2) {

error_message = error_message + "* The 'First Name' entry must have at least 2 characters.\n";

error = 1;

}

}

 

if (document.account_edit.elements['lastname'].type != "hidden") {

if (last_name == '' || last_name.length < 2) {

error_message = error_message + "* The 'Last Name' entry must have at least 2 characters.\n";

error = 1;

}

}

 

if (document.account_edit.elements['email_address'].type != "hidden") {

if (email_address == '' || email_address.length < 6) {

error_message = error_message + "* The 'E-Mail Address' entry must have at least 6 characters.\n";

error = 1;

}

}

 

if (document.account_edit.elements['street_address'].type != "hidden") {

if (street_address == '' || street_address.length < 5) {

error_message = error_message + "* The 'Street Address' entry must have at least 5 characters.\n";

error = 1;

}

}

 

if (document.account_edit.elements['postcode'].type != "hidden") {

if (postcode == '' || postcode.length < 4) {

error_message = error_message + "* The 'Post Code' entry must have at least 4 characters.\n";

error = 1;

}

}

 

if (document.account_edit.elements['city'].type != "hidden") {

if (city == '' || city.length < 3) {

error_message = error_message + "* The 'City' entry must have at least 3 characters.\n";

error = 1;

}

}

 

if (document.account_edit.elements['state'].type != "hidden") {

if (document.account_edit.state.value == '' || document.account_edit.state.value.length < 3 ) {

error_message = error_message + "* The 'State' entry must be selected.\n";

error = 1;

}

}

 

if (document.account_edit.elements['country'].type != "hidden") {

if (document.account_edit.country.value == 0) {

error_message = error_message + "* The 'Country' entry must be selected.\n";

error = 1;

}

}

 

if (document.account_edit.elements['telephone'].type != "hidden") {

if (telephone == '' || telephone.length < 10) {

error_message = error_message + "* The 'Telephone Number' entry must have at least 10 characters.\n";

error = 1;

}

}

 

if (document.account_edit.elements['password'].type != "hidden") {

if ((password != confirmation) || (password == '' || password.length < 5)) {

error_message = error_message + "* The 'Password' and 'Confirmation' entries must match and have at least 5 characters.\n";

error = 1;

}

}

 

if (error == 1) {

alert(error_message);

return false;

} else {

submitted = true;

return true;

}

}

//--></script></head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

<!-- header //-->

.......................

<!-- header_eof //-->

 

<!-- body //-->

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

<tr>

<td width="125" valign="top"><table border="0" width="125" cellspacing="1" cellpadding="1" class="columnLeft">

<!-- left_navigation //-->

........................

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><form name="account_edit" method="post" action="https://mysite.com/admin/create_account_process.php" 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">Add a New Customer</td>

</tr>

</table></td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>

</tr>

<tr>

<td>

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

<tr>

<td class="formAreaTitle">Personal Details</td>

</tr>

<tr>

<td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">

<tr>

<td class="main"><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main"> Gender:</td>

<td class="main"> 

<input type="radio" name="gender" value="m">  Male  <input type="radio" name="gender" value="f">  Female  <small><font color="#AABBDD">required</font></small></td>

</tr>

<tr>

<td class="main"> First Name:</td>

<td class="main"> 

<input type="text" name="firstname">  <small><font color="#AABBDD">required</font></small></td>

</tr>

<tr>

<td class="main"> Last Name:</td>

<td class="main"> 

<input type="text" name="lastname">  <small><font color="#AABBDD">required</font></small></td>

</tr>

<tr>

<td class="main"> E-Mail Address:</td>

<td class="main"> 

<input type="text" name="email_address">  <small><font color="#AABBDD">required</font></small></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

 

<tr>

<td class="formAreaTitle"><br>Company Details</td>

</tr>

<tr>

<td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">

<tr>

<td class="main"><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main"> Company Name:</td>

<td class="main"> 

<input type="text" name="company"> </td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td class="formAreaTitle"><br>Address</td>

</tr>

<tr>

<td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">

<tr>

<td class="main"><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main"> Street Address:</td>

<td class="main"> 

<input type="text" name="street_address">  <small><font color="#AABBDD">required</font></small></td>

</tr>

<tr>

<td class="main"> Suburb:</td>

<td class="main"> 

<input type="text" name="suburb"> </td>

</tr>

<tr>

<td class="main"> Zip/Postal Code:</td>

<td class="main"> 

<input type="text" name="postcode">  <small><font color="#AABBDD">required</font></small></td>

</tr>

<tr>

<td class="main"> City:</td>

<td class="main"> 

<input type="text" name="city">  <small><font color="#AABBDD">required</font></small></td>

</tr>

<tr>

<td class="main"> State/Province:</td>

<td class="main"> 

<input type="text" name="state" value="Texas">  <small><font color="#AABBDD">required</font></small></td>

</tr>

<tr>

<td class="main"> Country:</td>

<td class="main"> 

<select name="country"><option value="">Please Select</option><option value="1">.......</option></select>  <small><font color="#AABBDD">required</font></small></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">

<tr>

<td class="main"><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main">FedEx® Address Checker (US address)  |  FedEx® Address Checker (Canadian address)</td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td class="formAreaTitle"><br>Contact Information</td>

</tr>

<tr>

<td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">

<tr>

<td class="main"><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main"> Telephone Number:</td>

<td class="main"> 

<input type="text" name="telephone">  <small><font color="#AABBDD">required</font></small></td>

</tr>

<tr>

<td class="main"> Fax Number:</td>

<td class="main"> 

<input type="text" name="fax"> </td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td class="formAreaTitle"><br>Options</td>

</tr>

<tr>

<td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">

<tr>

<td class="main"><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main"> Newsletter:</td>

<td class="main"> 

<select name="newsletter"><option value="1">Subscribed</option><option value="0">Unsubscribed</option></select>  <tr>

<td class="main"> Notify Customer? : <input type="checkbox" name="notify" CHECKED></td>

</tr></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

 

</table>

</td>

</tr>

<tr>

<td align="right" class="main"><br><input type="image" src="includes/languages/english/images/buttons/button_confirm.gif" border="0" alt="IMAGE_BUTTON_CONTINUE" title=" IMAGE_BUTTON_CONTINUE "></td>

</tr>

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

<!-- body_text_eof //-->

<td width="125" valign="top"><table border="0" width="125" cellspacing="0" cellpadding="2">

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

............................

<!-- footer_eof //-->

<br>

</body>

</html>

Does your file look similar?

Share this post


Link to post
Share on other sites
Does your file look similar?

Nothing like it, are you sure that's the right file?


Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
Nothing like it, are you sure that's the right file?

This is html source of the file. If you point your browser to http://www.yourwebsite.com/admin/create_account.php and then go to View -> Source you'll get something similar. What exactly is different in your file vs. mine? I'm using original version of files with some little modifications.

Share this post


Link to post
Share on other sites
This is html source of the file. If you point your browser to http://www.yourwebsite.com/admin/create_account.php and then go to View -> Source you'll get something similar. What exactly is different in your file vs. mine? I'm using original version of files with some little modifications.

what happens if you comment out lines 31-37 in your file? does the error go away then? it should do.


Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
what happens if you comment out lines 31-37 in your file? does the error go away then? it should do.

what is exactly in those lines you're referring to? Is it the lines below? It's not exactly lines 31-37 but it would probably make sense to comment them out. The question is if it's going to interfere in any ways with random password creation.

if (document.account_edit.elements['password'].type != "hidden") {

if ((password != confirmation) || (password == '' || password.length < 5)) {

error_message = error_message + "* The 'Password' and 'Confirmation' entries must match and have at least 5 characters.\n";

error = 1;

}

}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×