Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

jmianez

Archived
  • Posts

    11
  • Joined

  • Last visited

Profile Information

  • Real Name
    Jose M. I??ez

jmianez's Achievements

  1. Migrating an OSC Store, I get a problem with a shipping custom module (lenoir.php). The old-store is working OK - w/o problems from few years ago: MySQL 4.1.12-standard and PHP 4.3.3. New server: MySQL 5.0.32-Debian and PHP/5.2.0-8+etch13 In Admin > Modules > Shipping, I get the error as below: Fatal error: Cannot access empty property in /var/www/vhosts/domain.com/httpdocs/includes/modules/shipping/lenoir.php on line 34 The page http://domain.com/admin/modules.php?select...mp;set=shipping is not displayed properly. The same message error is displayed when a customer tries to close the purchase. I'm revised the code once, twice, ... but error persist. <?php /* $Id: table.php,v 1.27 2003/02/05 22:41:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ class lenoir { var $code, $title, $description, $icon, $enabled, $selected_zone; // class constructor function lenoir() { global $order; $this->code = 'lenoir'; $this->title = MODULE_SHIPPING_LENOIR_TABLE_TEXT_TITLE; $this->description = MODULE_SHIPPING_LENOIR_TABLE_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_LENOIR_TABLE_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_LENOIR_TABLE_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_LENOIR_TABLE_STATUS == 'True') ? true : false); if ($this->enabled){ for ($i=1; $i<5; $i+=1) { $check_flag = $this->module_enabled($i); if ($check_flag == True) { $this->$selected_zone = $i; break; } } if ($check_flag == false) { $this->$selected_zone = 4; //$this->enabled = false; } } } // class methods // verifica si se aplica la forma de envio function module_enabled($dest_zone){ global $order; //echo "MODULE_SHIPPING_LENOIR_TABLE_ZONE_".$dest_zone; $zone = constant("MODULE_SHIPPING_LENOIR_TABLE_ZONE_".$dest_zone); //echo "select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . $zone . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id" . "<br>"; if ( ($this->enabled == true) && ((int)$zone > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . $zone . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id"); while ($check = tep_db_fetch_array($check_query)) { if ($check['zone_id'] < 1) { $check_flag = true; break; } elseif ($check['zone_id'] == $order->delivery['zone_id']) { $check_flag = true; break; } } return($check_flag); } } function quote($method = '') { global $order, $cart, $shipping_weight, $shipping_num_boxes; global $contrareembolso_enabled, $tarjeta_enabled, $dias_entrega; if ($this->enabled) { $aux = constant('MODULE_SHIPPING_LENOIR_TABLE_COST_COURIER_' . $this->$selected_zone); $zones_courier = split("[:,]" , $aux); $dias_courier = constant('MODULE_SHIPPING_LENOIR_TABLE_DIAS_COURIER_' . $this->$selected_zone); $aux = constant('MODULE_SHIPPING_LENOIR_TABLE_COST_CERTIFICADO_' . $this->$selected_zone); $zones_certificado = split("[:,]" , $aux); $dias_certificado = constant('MODULE_SHIPPING_LENOIR_TABLE_DIAS_CERTIFICADO_' . $this->$selected_zone); $order_total = $cart->show_total(); //print_r($zones_courier); //print_r($dias_courier); // vemos el importe de courier $size = sizeof($zones_courier); for ($i=0; $i<$size; $i+=2) { if ($order_total <= $zones_courier[$i]) { $shipping = $zones_courier[$i+1]; $shipping_method = 'Enviar A' . ' ' . $dest_country . ' : ' . $shipping_weight . ' kg(s)'; break; } } if ($shipping == -1) { $shipping_cost = 0; $shipping_method = 'No se han podido calcular los gastos de envio para courier'; } else { $shipping_cost = ($shipping * $shipping_num_boxes);// + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone); } // ahora vemos el importe de certificado $size = sizeof($zones_certificado); for ($i=0; $i<$size; $i+=2) { if ($order_total <= $zones_certificado[$i]) { $shipping_cert = $zones_certificado[$i+1]; $shipping_method_cert = 'Enviar A' . ' ' . $dest_country . ' : ' . $shipping_weight . ' kg(s)'; break; } } if ($shipping_cert == -1) { $shipping_cost_cert = 0; $shipping_method_cert = 'No se han podido calcular los gastos de envio para certificado'; } else { $shipping_cost_cert = ($shipping * $shipping_num_boxes);// + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone); } if (strlen($method) == 0){ $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_LENOIR_TABLE_TEXT_TITLE, 'methods' => array(array('id' => "1", 'title' => 'Urgente / Prioritario ('.$dias_courier.' días aprox.)', 'cost' => $shipping), // + MODULE_SHIPPING_LENOIR_TABLE_HANDLING), array('id' => "2", 'title' => 'Normal / Econ&mico ('.$dias_certificado.' días aprox.)', 'cost' => $shipping_cert), //+ MODULE_SHIPPING_LENOIR_TABLE_HANDLING), ) ); } // de if isset($method) else{ // por aqui pasa una vez que se ha seleccionado la forma de pago if (!tep_session_is_registered('contrareembolso_enabled'))tep_session_register('contrareembolso_enabled'); if (!tep_session_is_registered('tarjeta_enabled')) tep_session_register('tarjeta_enabled'); if (!tep_session_is_registered('dias_entrega')) tep_session_register('dias_entrega'); if ($method == '1'){ //courier // courier & contrareembolso -> solo en zonas 1 y 2 $contrareembolso_enabled = (($this->$selected_zone == 1) || ($this->$selected_zone == 2)); // courier & tarjeta -> en todas las zonas $tarjeta_enabled = true; $dias_entrega = $dias_courier; $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_LENOIR_TABLE_TEXT_TITLE, 'methods' => array(array('id' => "1", 'title' => 'Urgente / Prioritario '.$dias_courier.' días aprox.', 'cost' => $shipping))); } elseif ($method == '2'){ //certificado // certificado & contrareembolso -> solo en zonas 1 y 2 $contrareembolso_enabled = (($this->$selected_zone == 1) || ($this->$selected_zone == 2)); // certificado & tarjeta -> solo en zonas 3 y 4 $tarjeta_enabled = (($this->$selected_zone == 3) || ($this->$selected_zone == 4)); $dias_entrega = $dias_certificado; $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_LENOIR_TABLE_TEXT_TITLE, 'methods' => array(array('id' => "2", 'title' => 'Normal / Económico '.$dias_certificado.' días aprox.', 'cost' => $shipping_cert))); } } } if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); if ($this->tax_class > 0) { $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } return $this->quotes; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_LENOIR_TABLE_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable Table Method', 'MODULE_SHIPPING_LENOIR_TABLE_STATUS', 'True', 'Do you want to offer table rate shipping?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); // zona 1 tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('--------- Zona 1 ---------', 'MODULE_SHIPPING_LENOIR_TABLE_ZONE_1', '0', 'Seleccione zona 1', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tarifa Courier zona 1', 'MODULE_SHIPPING_LENOIR_TABLE_COST_COURIER_1', '25:8.50,50:5.50,10000:0.00', 'Ejemplo: 25:8.50,50:5.50,etc.. Más de 25 8.50, desde 25 a 50 5.50 de cargo, etc', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tiempo envio Courier zona 1', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_COURIER_1', '2', '', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tarifa Certificado zona 1', 'MODULE_SHIPPING_LENOIR_TABLE_COST_CERTIFICADO_1', '25:3.50,50:1.50,10000:0.00', '', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tiempo envio Certificado zona 1', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_CERTIFICADO_1', '7', '', '6', '0', now())"); // zona 2 tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('--------- Zona 2 ---------', 'MODULE_SHIPPING_LENOIR_TABLE_ZONE_2', '0', 'Seleccione zona 2', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tarifa Courier zona 2', 'MODULE_SHIPPING_LENOIR_TABLE_COST_COURIER_2', '25:8.50,50:5.50,10000:0.00', 'Ejemplo: 25:8.50,50:5.50,etc.. Más de 25 8.50, desde 25 a 50 5.50 de cargo, etc', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tiempo envio Courier zona 2', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_COURIER_2', '', '', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tarifa Certificado zona 2', 'MODULE_SHIPPING_LENOIR_TABLE_COST_CERTIFICADO_2', '25:8.50,50:5.50,10000:0.00', '', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tiempo envio Certificado zona 2', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_CERTIFICADO_2', '', '', '6', '0', now())"); // zona 3 tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('--------- Zona 3 ---------', 'MODULE_SHIPPING_LENOIR_TABLE_ZONE_3', '0', 'Seleccione zona 3', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tarifa Courier zona 3', 'MODULE_SHIPPING_LENOIR_TABLE_COST_COURIER_3', '25:8.50,50:5.50,10000:0.00', 'Ejemplo: 25:8.50,50:5.50,etc.. Más de 25 8.50, desde 25 a 50 5.50 de cargo, etc', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tiempo envio Courier zona 3', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_COURIER_3', '', '', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tarifa Certificado zona 3', 'MODULE_SHIPPING_LENOIR_TABLE_COST_CERTIFICADO_3', '25:8.50,50:5.50,10000:0.00', '', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tiempo envio Certificado zona 3', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_CERTIFICADO_3', '', '', '6', '0', now())"); // zona 4 tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('--------- Zona 4 ---------', 'MODULE_SHIPPING_LENOIR_TABLE_ZONE_4', '0', 'Seleccione zona 4', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tarifa Courier zona 4', 'MODULE_SHIPPING_LENOIR_TABLE_COST_COURIER_4', '25:8.50,50:5.50,10000:0.00', 'Ejemplo: 25:8.50,50:5.50,etc.. Más de 25 8.50, desde 25 a 50 5.50 de cargo, etc', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tiempo envio Courier zona 4', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_COURIER_4', '', '', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tarifa Certificado zona 4', 'MODULE_SHIPPING_LENOIR_TABLE_COST_CERTIFICADO_4', '25:8.50,50:5.50,10000:0.00', '', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Tiempo envio Certificado zona 4', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_CERTIFICADO_4', '', '', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_LENOIR_TABLE_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_SHIPPING_LENOIR_TABLE_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_SHIPPING_LENOIR_TABLE_STATUS', 'MODULE_SHIPPING_LENOIR_TABLE_ZONE_1', 'MODULE_SHIPPING_LENOIR_TABLE_COST_COURIER_1', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_COURIER_1', 'MODULE_SHIPPING_LENOIR_TABLE_COST_CERTIFICADO_1', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_CERTIFICADO_1', 'MODULE_SHIPPING_LENOIR_TABLE_ZONE_2', 'MODULE_SHIPPING_LENOIR_TABLE_COST_COURIER_2', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_COURIER_2', 'MODULE_SHIPPING_LENOIR_TABLE_COST_CERTIFICADO_2', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_CERTIFICADO_2', 'MODULE_SHIPPING_LENOIR_TABLE_ZONE_3', 'MODULE_SHIPPING_LENOIR_TABLE_COST_COURIER_3', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_COURIER_3', 'MODULE_SHIPPING_LENOIR_TABLE_COST_CERTIFICADO_3', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_CERTIFICADO_3', 'MODULE_SHIPPING_LENOIR_TABLE_ZONE_4', 'MODULE_SHIPPING_LENOIR_TABLE_COST_COURIER_4', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_COURIER_4', 'MODULE_SHIPPING_LENOIR_TABLE_COST_CERTIFICADO_4', 'MODULE_SHIPPING_LENOIR_TABLE_DIAS_CERTIFICADO_4', 'MODULE_SHIPPING_LENOIR_TABLE_TAX_CLASS', 'MODULE_SHIPPING_LENOIR_TABLE_SORT_ORDER'); } } ?> Thanks for your help. Jose Manuel - jmanuel [at] lenoir.es
  2. Hi, I've just installed "Contact Us Super Enhancement V1.42". It seem nice, and the success page is show after submit the form - but no email message is received at none of the configured accounts. I've read all messages of this thread and tried some of the solutions here mentioned, but problem persist. My server: FreeBSD 4.8-RELEASE, Apache/1.3.28 (Unix), PHP/4.3.3, MySQL 4.1.12-standard; PHP is not limited to send messages My code ****************** <?php /* $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $ 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'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); // BOF Super Contact us enhancement 1.41 $order_id = tep_db_prepare_input($HTTP_POST_VARS['order_id']); if ($order_id <> NULL){ $enquiry = 'Order ID: ' . $order_id . "\n\n" . tep_db_prepare_input($HTTP_POST_VARS['enquiry']); }else{ $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); } $emailsubject = tep_db_prepare_input($HTTP_POST_VARS['reason']) . ' ' . EMAIL_SUBJECT; if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $emailsubject, $enquiry, $name, $email_address); if (CONTACT_US_LIST !=''){ $send_to_array=explode("," ,CONTACT_US_LIST); preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array); $send_to_email= eregi_replace (">", "", $send_email_array[0]); $send_to_email= eregi_replace ("<", "", $send_to_email); tep_mail(preg_replace('/\<[^*]*/', '', $send_to_array[$send_to]), $send_to_email, $emailsubject, $enquiry, $name, $email_address); }else{ // tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=send')); } // EOF Super Contact us enhancement 1.41 } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); ?> <!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; ?>"><?php include_once "metas.inc.php"; ?> <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"> <!-- Google Analytics Inicio --> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-203069-1"; urchinTracker(); </script> <!-- Fin Google Analytics --> </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('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <!-- <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr height="38"> <td width="10"><IMG SRC="images/breadizq.gif"></td> <td class="main" background="images/breadcen.gif">Estás en <a href="/index.php">Inicio</a> » <?php echo $breadcrumb->trail(' » '); ?></td> <td width="10"><IMG SRC="images/breadder.gif"></td> </tr> </table> </td> </tr> --> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('contact') > 0) { ?> <tr> <td><?php echo $messageStack->output('contact'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { ?> <tr> <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></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="main"> <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> <!-- BOF Super Contact us enhancement 1.41 //--> <?php } else { if (tep_session_is_registered('customer_id')) { $account_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); $account = tep_db_fetch_array($account_query); $name = $account['customers_firstname'] . ' ' . $account['customers_lastname']; $email = $account['customers_email_address']; } ?> <tr><td> <table border="0" width="100%" cellspacing="0" cellpadding="0" class="main"> <tr class="infoBoxContents"><td><table border="0" width="100%" cellspacing="1" cellpadding="2"><tr> <td class="main" valign="top" width=40%> <?php echo nl2br(STORE_NAME_ADDRESS); ?><br><br> <?php echo (OPENING_HOURS); ?><br><br></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" valign="top" width="60%"> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="main"> <tr><td><?php echo ENTRY_NAME; ?></td></tr> <tr><td><?php echo tep_draw_input_field('name'); ?></td><tr> <tr><td><?php echo ENTRY_EMAIL; ?></td></tr> <tr><td><?php echo tep_draw_input_field('email'); ?></td></tr> <tr><td><?php echo ENTRY_ORDER_ID; ?></td></tr> <tr><td><?php echo tep_draw_input_field('order_id'); ?></td></tr> <tr><td><?php if (CONTACT_US_LIST !=''){ echo SEND_TO_TEXT . '</td></tr><tr><td>'; if(SEND_TO_TYPE=='radio'){ foreach(explode("," ,CONTACT_US_LIST) as $k => $v) { if($k==0){ $checked=true; }else{ $checked=false; } echo tep_draw_radio_field('send_to', "$k", $checked). " " .preg_replace('/\<[^*]*/', '', $v); } }else{ foreach(explode("," ,CONTACT_US_LIST) as $k => $v) { $send_to_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v)); } echo tep_draw_pull_down_menu('send_to', $send_to_array); } echo('</td></tr>'); } ?> <tr><td><?php echo ENTRY_REASON; ?></td></tr> <tr><td><select name="reason"> <?php echo '<option value="' . REASONS1 . '">' . REASONS1 . '</option>'; ?> <?php echo '<option value="' . REASONS2 . '">' . REASONS2 . '</option>'; ?> <?php echo '<option value="' . REASONS3 . '">' . REASONS3 . '</option>'; ?> <?php echo '<option value="' . REASONS4 . '">' . REASONS4 . '</option>'; ?> <?php echo '<option value="' . REASONS5 . '">' . REASONS5 . '</option>'; ?> <?php echo '<option value="' . REASONS6 . '">' . REASONS6 . '</option>'; ?> </select></td></tr> <tr><td><?php echo ENTRY_ENQUIRY; ?></td></tr> <tr><td><?php echo tep_draw_textarea_field('enquiry', 'soft', 15, 10, tep_sanitize_string($_POST['enquiry']), '', false); ?></td></tr> </table> </td></tr></table></td> </tr> </table> <br /> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="main"> <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 tep_image_submit('button_send.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> <?php } ?> <!-- EOF Super Contact us enhancement 1.41 //--> </table></form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> ************* Can anybody help me?
  3. I've installed Google Analytics with ecommerce (http://www.oscommerce.com/community/contributions,3756) in my OSC site (http://www.lenoir.es). The Ecommerce script seems to work fine but I've a problem :'( with the general script. The general script (for tracking) is on footer.php file (like contrib indicates). But analyzing the Apache log file, results are VERY different then analyzing with Analytics: Visitors increasing x 3 and pages x 6 aprox in log file. Any help would be great...
  4. Just to verify: May be a language problem? Is the language file properly installed? Regards Jose Manuel
  5. Hi, I'm installing OSC Affiliate; my local PC installation (WXP) is working fine <_< but my production environement has some problems - text area appear blank when an affiliate is trying to obtain the code for a banner or text link :( . Same problem appear with affiliate-created links. Some banner has been created from Affiliate Admin and exist. To see the problem running, please visit: http://www.lenoir.es/affiliate_affiliate.php Login: [email protected] Password: infolenoir Sorry, website just in spanish - some few translations of the left menu may be suitables: A la Home - General Banner A Categorias - Categories Banner A Productos - Products Banner Enlaces de texto - Text Link Crea tu propio link - Affiliate Created links and Banners Many thanks for your help. Jose Manuel
  6. YES!!!! Your solution has been really usefull. Thanks a lot. Jose Manuel
×
×
  • Create New...