Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fancier_Invoice_231_Beta, service_form v1.0, Contact Us Super Enhancement V2.1


Guest

Recommended Posts

Posted

I would like to be able to install the fancier invoice, service form and super contact us add-ins on oscommerce 2.3.3 and have all of them work with the theme switcher add-in

 

Fancier_Invoice_231_Beta,

service_form v1.0,

Contact Us Super Enhancement V2.1,

working with:

theme_switcher_1.4.2_min,

working on:

oscommerce-2.3.3

Posted

Theme Switcher doesn't interfere with any of those.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

Theme Switcher and Fancier Invoice were written for the 2.3 series. The other two were written for 2.2 and will require conversion. Conversion instructions are available here, here, and here.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

I use your Generic Box 2.3.x works great, I use it for my about, support and other linked pages. I was hopping to find Fancier_Invoice_231_Beta,

service_form v1.0, Contact Us Super Enhancement V2.1, plug-ins that where updated to work with oscommece 2.3.3, I'm lauching all of these pages from within your I use your Generic Box 2.3.x. the service form and super contact us add-ins seem to have errors/outdated code on the catalog/service_from.php and the english/service_form.php pages. I would think the service_form add-in would be extremly usfull to a lot of people.

Posted

I've coded a service/repair request form for a client. The files are available here. You'll have to link it from wherever you want. There's no instructions, but it's only two files. Modify it as you want.

 

I've also done an enhanced Contact Us, but the code for that one is a mess. I'd have to do a lot of cleanup before anyone else could use it. It would be easier to modify the 2.2 version you found.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

What would it take to complete all of this?

 

I would like to be able to install the fancier invoice, service form and super contact us add-ins on oscommerce 2.3.3 and have all of them work with the theme switcher add-in

Modular Front Page 2.3.xSupport?

Fancier_Invoice_231_Beta,

service_form v1.0,

Contact Us Super Enhancement V2.1,

working with:

theme_switcher_1.4.2_min,

working on:

oscommerce-2.3.3

 

do you do website work? I would like to have you work on my site if possible? Let me know

 

Thanks,

Craig

Posted

That's not an appropriate question for this forum. Post your requirements on the commercial forum if you want a quote.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

here is the catalog/service_form.php file service_form v1.0: same error with the repairs.php file

 

<?php

/*

$Id: service_form.php v1.0 2007/01/26

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License

*/

require('includes/application_top.php');

// needs to be included earlier to set the success message in the messageStack

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

 

if (tep_session_is_registered('customer_id')) {

$customers_query = tep_db_query("select c.customers_id, c.customers_telephone, c.customers_fax, c.customers_email_address, a.entry_firstname as firstname, a.entry_lastname as lastname, a.entry_company as company, a.entry_street_address as street_address, a.entry_suburb as suburb, a.entry_postcode as postcode, a.entry_city as city, a.entry_state as state, a.entry_zone_id as zone_id, a.entry_country_id as country_id from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " a on c.customers_default_address_id = a.address_book_id where a.customers_id = c.customers_id and c.customers_id = '" . (int)$customer_id . "'");

$service = tep_db_fetch_array($customers_query);

}

$sendmail = false;

$process = false;

if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) {

$process = true;

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

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

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

if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']);

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

if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);

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

if (ACCOUNT_STATE == 'true') {

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

if (isset($HTTP_POST_VARS['zone_id'])) {

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

} else {

$zone_id = false;

}

}

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

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

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

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

$brand = tep_db_prepare_input($HTTP_POST_VARS['brand']);

$type = tep_db_prepare_input($HTTP_POST_VARS['type']);

$imei = tep_db_prepare_input($HTTP_POST_VARS['imei']);

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

$problem = tep_db_prepare_input($HTTP_POST_VARS['problem']);

$error = false;

if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR);

}

if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_LAST_NAME_ERROR);

}

if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR);

} elseif (tep_validate_email($email_address) == false) {

$error = true;

$messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);

}

if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR);

}

if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_POST_CODE_ERROR);

}

if (strlen($city) < ENTRY_CITY_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_CITY_ERROR);

}

if (is_numeric($country) == false) {

$error = true;

$messageStack->add('create_account', ENTRY_COUNTRY_ERROR);

}

if (ACCOUNT_STATE == 'true') {

$zone_id = 0;

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

$check = tep_db_fetch_array($check_query);

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

if ($entry_state_has_zones == true) {

$zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and (zone_name like '" . tep_db_input($state) . "%' or zone_code like '%" . tep_db_input($state) . "%')");

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

$zone = tep_db_fetch_array($zone_query);

$zone_id = $zone['zone_id'];

} else {

$error = true;

$messageStack->add('create_account', ENTRY_STATE_ERROR_SELECT);

}

} else {

if (strlen($state) < ENTRY_STATE_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_STATE_ERROR);

}

}

}

if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);

}

 

// sent email if still no error

if ($error == false) {

$sendmail = true;

// build the email message

$total_name = $firstname . ' ' . $lastname;

$email_text = sprintf(SE_EMAIL_GREET, $total_name);

$email_text .= "\n";

$email_text .= '<b>* ' . CATEGORY_PERSONAL . '</b>' . "\n";

$email_text .= '<b>' . ENTRY_FIRST_NAME . ' </b>' . $firstname . "\n";

$email_text .= '<b>' . ENTRY_LAST_NAME . ' </b>'. $lastname . "\n";

$email_text .= '<b>' . ENTRY_EMAIL_ADDRESS . ' </b>'. $email_address . "\n";

$email_text .= "\n";

if (ACCOUNT_COMPANY == 'true') {

$email_text .= '<b>* ' . CATEGORY_COMPANY . '</b>' . "\n";

$email_text .= '<b>' . ENTRY_COMPANY . ' </b>' . $company . "\n";

$email_text .= "\n";

}

$email_text .= '<b>* ' . CATEGORY_ADDRESS . '</b>' . "\n";

$email_text .= '<b>' . ENTRY_STREET_ADDRESS . ' </b>' . $street_address . "\n";

if (ACCOUNT_SUBURB == 'true') {

$email_text .= '<b>' . ENTRY_SUBURB . ' </b>' . $suburb . "\n";

}

$email_text .= '<b>' . ENTRY_POST_CODE . ' </b>'. $postcode . "\n";

$email_text .= '<b>' . ENTRY_CITY . ' </b>'. $city . "\n";

if (ACCOUNT_STATE == 'true') {

$email_text .= '<b>' . ENTRY_STATE . ' </b>'. $state . "\n";

}

$email_text .= '<b>' . ENTRY_COUNTRY . ' </b>'. tep_get_country_name($country) . "\n";

$email_text .= "\n";

$email_text .= '<b>* ' . CATEGORY_CONTACT . '</b>' . "\n";

$email_text .= '<b>' . ENTRY_TELEPHONE_NUMBER . ' </b>' . $telephone . "\n";

$email_text .= '<b>' . ENTRY_FAX_NUMBER . ' </b>'. $fax . "\n";

$email_text .= "\n";

$email_text .= '<b>* ' . CATEGORY_PRODUCT_INFO . '</b>' . "\n";

$email_text .= '<b>' . ENTRY_BRAND . ' </b>' . $brand . "\n";

$email_text .= '<b>' . ENTRY_TYPE . ' </b>'. $type . "\n";

$email_text .= '<b>' . ENTRY_IMEI . ' </b>'. $imei . "\n";

$email_text .= "\n";

$email_text .= '<b>* ' . CATEGORY_PROBLEM . '</b>' . "\n";

$email_text .= $problem . "\n";

$email_text .= "\n";

$email_text .= '<b>* ' . CATEGORY_DATE . '</b>' . "\n";

$email_text .= strftime(DATE_FORMAT_LONG) . "\n";

$email_text .= "\n";

tep_mail(SE_TO_NAME, SE_TO_EMAIL_ADDRESS, SE_EMAIL_SUBJECT, $email_text, SE_FROM_EMAIL_NAME, $SE_FROM_EMAIL_ADDRESS);

}

}

?>

<?php

if ($sendmail == true){ // show "mail is send succesfully" page

?>

 

<!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 (($request_type == 'SSL') ? 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">

<!-- body //-->

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

<tr>

<!-- body_text //-->

<td width="100%" valign="top"><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"></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

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

</tr>

<?php

if ($messageStack->size('create_account') > 0) {

?>

<tr>

<td><?php echo $messageStack->output('create_account'); ?></td>

</tr>

<tr>

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

</tr>

<?php

}

?>

<tr>

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

<tr>

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

<td class="inputRequirement" align="right"></td>

</tr>

</table></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

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

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

</tr>

<tr>

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

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

</tr>

<tr>

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

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

</tr>

</table></td>

</tr>

</table></td>

</tr>

<?php

if (ACCOUNT_COMPANY == 'true') {

?>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

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

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

</tr>

</table></td>

</tr>

</table></td>

</tr>

<?php

}

?>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

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

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

</tr>

<?php

if (ACCOUNT_SUBURB == 'true') {

?>

<tr>

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

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

</tr>

<?php

}

?>

<tr>

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

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

</tr>

<tr>

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

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

</tr>

<?php

if (ACCOUNT_STATE == 'true') {

?>

<tr>

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

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

</tr>

<?php

}

?>

<tr>

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

<td class="main"><?php echo tep_get_country_name($country); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

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

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

</tr>

<tr>

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

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

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

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

</tr>

</tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

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

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

</tr>

<tr>

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

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

</tr>

<tr>

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

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

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

<td class="main"><?php echo nl2br($problem); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

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

</tr>

<tr>

<td>

<table border="0" width="100%" cellspacing="1" cellpadding="2" height="100" class="infoBox">

<tr class="infoBoxContents">

<td> </td>

</tr>

</table>

</td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

<td class="main"><?php echo strftime(DATE_FORMAT_LONG); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

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

</tr>

</table>

<!-- body_eof //-->

 

<br>

</body>

</html>

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

<?php

} else { // show "fill in information" page

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

?>

<!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 (($request_type == 'SSL') ? 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('create_account', tep_href_link(FILENAME_SERVICE_FORM, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . 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 class="main"><br><?php echo TEXT_EMAIL_CREATE; ?></td>

</tr>

<tr>

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

</tr>

<?php

if ($messageStack->size('create_account') > 0) {

?>

<tr>

<td><?php echo $messageStack->output('create_account'); ?></td>

</tr>

<tr>

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

</tr>

<?php

}

?>

<tr>

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

<tr>

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

<td class="inputRequirement" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

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

<td class="main"><?php echo tep_draw_input_field('firstname', $service['firstname']) . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td>

</tr>

<tr>

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

<td class="main"><?php echo tep_draw_input_field('lastname', $service['lastname']) . ' ' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></td>

</tr>

<tr>

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

<td class="main"><?php echo tep_draw_input_field('email_address', $service['customers_email_address']) . ' ' . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<?php

if (ACCOUNT_COMPANY == 'true') {

?>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

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

<td class="main"><?php echo tep_draw_input_field('company', $service['company']) . ' ' . (tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<?php

}

?>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

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

<td class="main"><?php echo tep_draw_input_field('street_address', $service['street_address']) . ' ' . (tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?></td>

</tr>

<?php

if (ACCOUNT_SUBURB == 'true') {

?>

<tr>

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

<td class="main"><?php echo tep_draw_input_field('suburb', $service['suburb']) . ' ' . (tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?></td>

</tr>

<?php

}

?>

<tr>

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

<td class="main"><?php echo tep_draw_input_field('postcode', $service['postcode']) . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>

</tr>

<tr>

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

<td class="main"><?php echo tep_draw_input_field('city', $service['city']) . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td>

</tr>

<?php

if (ACCOUNT_STATE == 'true') {

?>

<tr>

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

<td class="main">

<?php

if ($process == true) {

if ($entry_state_has_zones == true) {

$zones_array = array();

$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name");

while ($zones_values = tep_db_fetch_array($zones_query)) {

$zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);

}

echo tep_draw_pull_down_menu('state', $zones_array, $service['zone_id']);

} else {

echo tep_draw_input_field('state', $service['state']);

}

} else {

echo tep_draw_input_field('state', $service['state']);

}

if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;

?>

</td>

</tr>

<?php

}

?>

<tr>

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

<td class="main"><?php echo tep_get_country_list('country', $service['country_id']) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

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

<td class="main"><?php echo tep_draw_input_field('telephone', $service['customers_telephone']) . ' ' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td>

</tr>

<tr>

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

<td class="main"><?php echo tep_draw_input_field('fax', $service['customers_fax']

) . ' ' . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

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

<td class="main"><?php echo tep_draw_input_field('brand') . ' ' . (tep_not_null(ENTRY_BRAND_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td>

</tr>

<tr>

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

<td class="main"><?php echo tep_draw_input_field('type') . ' ' . (tep_not_null(ENTRY_TYPE_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?></td>

</tr>

<tr>

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

<td class="main"><?php echo tep_draw_input_field('imei') . ' ' . (tep_not_null(ENTRY_IMEI_TEXT) ? '<span class="inputRequirement">' . ENTRY_IMEY_TEXT . '</span>': ''); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

<td class="main"><?php echo tep_draw_textarea_field('problem', 'soft', 50, 10) . ' ' . (tep_not_null(ENTRY_PROBLEM_TEXT) ? '<span class="inputRequirement">' . ENTRY_PROBLEM_TEXT . '</span>': ''); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

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

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

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

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></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 require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

<?php

}

?>

Posted

catalog/includes/english:

 

<?php

/*

$Id: service_form.php v1.0 2007/01/26

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

Copyright © 2002 osCommerce

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Sevice form');

define('HEADING_TITLE', 'Service Form');

define('TEXT_EMAIL_CREATE', '<b><font color="#FF0000">Please fill in this form completely. <br>By pushing the continue button, this form will be emailed to ' . STORE_NAME . '. After this, the form will be shown in a printer friendly format. Please print this form, sign it and enclose it with your parcel.</font></b>');

define('TEXT_EMAIL_SEND', '<b><font color="#FF0000">This form is emailed with success to ' . STORE_NAME . '.<br>Please print this form, sign it, and enclose it with your parcel.<br>By pushing the continue button, you will return to the shop.</font></b>');

define('SE_EMAIL_GREET', 'Service email from %s,' . "\n");

define('SE_TO_NAME', STORE_NAME);

define('SE_TO_EMAIL_ADDRESS', STORE_OWNER_EMAIL_ADDRESS);

define('SE_EMAIL_SUBJECT', 'Service email via shop');

define('SE_FROM_EMAIL_NAME', STORE_NAME);

define('SE_FROM_EMAIL_ADDRESS', STORE_OWNER_EMAIL_ADDRESS);

define('ENTRY_BRAND', 'Brand');

define('ENTRY_TYPE', 'Type');

define('ENTRY_IMEI', 'Imei');

define('ENTRY_PROBLEM_TEXT', '');

define('ENTRY_BRAND_TEXT', '');

define('ENTRY_TYPE_TEXT', '');

define('ENTRY_IMEI_TEXT', '');

define('ENTRY_SIGN_TEXT', 'With signing this, you agree with our terms.');

define('CATEGORY_PRODUCT_INFO', 'Product Information');

define('CATEGORY_SIGN', 'Autograph');

define('CATEGORY_DATE', 'Date');

define('CATEGORY_PROBLEM', 'Problem Description');?>

Posted

catalog/includes/filenames:

 

define('FILENAME_SERVICEFORM', 'service_form.php');

?>

Posted

/catalog/includes/languages/english.php

------------------------------------

add this code at the bottom, before the line with ?>,

// Service_form.php

define('ENTRY_BRAND', 'Brand');

define('ENTRY_TYPE', 'Type');

define('ENTRY_IMEI', 'Imei');

define('ENTRY_PROBLEM_TEXT', '');

define('ENTRY_BRAND_TEXT', '');

define('ENTRY_TYPE_TEXT', '');

define('ENTRY_IMEI_TEXT', '');

define('ENTRY_SIGN_TEXT', 'With signing this, you agree with our terms.');

define('CATEGORY_PRODUCT_INFO', 'Product Information');

define('CATEGORY_SIGN', 'Autograph');

define('CATEGORY_DATE', 'Date');

define('CATEGORY_PROBLEM', 'Problem Description');

 

add under this line,

define('BOX_INFORMATION_CONTACT', 'Contact Us');

 

the following line,

define('BOX_INFORMATION_SERVICE_FORM', 'Service Form');

Posted

my /catalog/includes/languages/english.php

 

 

I added this:

 

// Service_form.php

define('ENTRY_BRAND', 'Brand');

define('ENTRY_TYPE', 'Type');

define('ENTRY_IMEI', 'Imei');

define('ENTRY_PROBLEM_TEXT', '');

define('ENTRY_BRAND_TEXT', '');

define('ENTRY_TYPE_TEXT', '');

define('ENTRY_IMEI_TEXT', '');

define('ENTRY_SIGN_TEXT', 'With signing this, you agree with our terms.');

define('CATEGORY_PRODUCT_INFO', 'Product Information');

define('CATEGORY_SIGN', 'Autograph');

define('CATEGORY_DATE', 'Date');

define('CATEGORY_PROBLEM', 'Problem Description');

define('BOX_INFORMATION_SERVICE_FORM', 'Service Form');?>

Posted

any advice on how to update this to work with 2.33, I was unable to do so.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...