Jump to content


Corporate Sponsors


Latest News: (loading..)

aksmith

Member Since 18 Jan 2007
Offline Last Active Mar 14 2012, 03:44
-----

Topics I've Started

Getting a bunch of wierd problems

13 March 2012, 23:42

I have some wierd issues with this OSCommerce website - honeycentre dot com

It worked fine until around 6 months ago, then a growing set of problems started occurring......

firstly (I use Paypal) - but around half of sales get left with a status of 'Preparing ....' in admin - but when you check the PayPal account they were completed normally. I have been unable to find any reason why one sale updates the website and another doesn't. I got an OSCommerce developer to have a look at it and he reinstalled everything relevant, but couldn't fix it. Any ideas anyone?

Secondly more and more customers seem to struggle with the website in different ways. The problems could be on their side, but there seem to be too many of them - can't login with same details as before, the forgot password link doesn't work, some get a blank page when they go to the shop etc. Can anyone see anything that is wrong with the shopping cart?

Other odd things like a couple of orders recently went through PayPal OK, emails sent OK - but no order saved in the database. Someone had bought about a year ago, but he wasn't in the database anymore - and we never delete customers or orders......very hard to figure this all out.

Would really appreciate some help here!

Shipping Honey to the EU - import restrictions

02 September 2011, 01:19

Hi - I have a client who sells honey products. Recently changes to EU import regs have meant that a few shipments were rejected by EU customs - and it seems the regs might differ from country to country.

Has anybody experienced this or know of a fix?

Contact Form sends empty email

03 August 2011, 03:52

Hi - I have a standard contact form (http://nzkiwihealth.co.nz/shop/contact_us.php) with a Korean copy.

When anyone fills it in and continues, it sends an empty email - IE an email header down to the subject, then nothing more.

I have looked at the code and can't find the problem - can anyone see what is wrong below? (Thanks)

<?php
/*
$Id: contact_us.php 1739 2007-12-20 00:52:16Z hpdl $

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);
//BOF EXTRA PAGES INFOBOX
$infopageid = 7;
$page_query = tep_db_query("select
p.pages_id,
p.sort_order,
p.status,
s.pages_title,
s.pages_html_text
from
" . TABLE_PAGES . " p LEFT JOIN " .TABLE_PAGES_DESCRIPTION . " s on p.pages_id = s.pages_id
where
p.status = 1
and
s.language_id = '" . (int)$languages_id . "'
and
p.pages_id = $infopageid");


$page_check = tep_db_fetch_array($page_query);

$pagetext=stripslashes($page_check[pages_html_text]);
//EOF EXTRA PAGES INFOBOX


$error = false;
if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
$name = tep_db_prepare_input($HTTP_POST_VARS['name']);
$street = tep_db_prepare_input($HTTP_POST_VARS['street']);
$email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);
$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);

if (tep_validate_email($email_address)) {
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $street, $email_address);

tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
} 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; ?>">
<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">
<script type="text/javascript" src="iepngfix_tilebg.js"></script>
<style type="text/css">
.ie6_png {behavior: url("iepngfix.htc") }
.ie6_png img {behavior: url("iepngfix.htc") }
.ie6_png input {behavior: url("iepngfix.htc") }
</style>
<!--[if IE]>
<script type="text/javascript" src="ie_png.js"></script>
<script type="text/javascript">
ie_png.fix('.png');
</script>
<![endif]-->
</head>

<body>
<!-- header //-->
<?php $tab_sel = 7; ?>
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" class="<?php echo MAIN_TABLE; ?>" cellspacing="0" cellpadding="0">
<tr>
<td class="<?php echo BOX_WIDTH_TD_LEFT; ?>"><table border="0" class="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td class="<?php echo CONTENT_WIDTH_TD; ?>"><?php echo panel_top(); ?><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?>

<?php echo tep_draw_top();?>

<?php echo tep_draw_title_top();?>

<?php echo $page_check[pages_title]; ?>

<?php echo tep_draw_title_bottom();?>

<?php echo tep_draw1_top();?>

<?php
if ($messageStack->size('contact') > 0) {
?>
<table cellpadding="0" cellspacing="0" border="0">
<tr><td><?php echo $messageStack->output('contact'); ?></td></tr>
</table>

<?php echo tep_pixel_trans();?>

<?php
}

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {
?>
<table cellpadding="0" cellspacing="0" border="0">
<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>
</table>

<?php echo tep_pixel_trans();?>

<?php /* echo tep_draw_infoBox2_top(); */?>

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

<?php /* echo tep_draw_infoBox2_bottom(); */?>

<?php
} else {
?>

<?php echo tep_draw_infoBox_top(); ?>

<?php echo stripslashes("$page_check[pages_html_text]"); ?>

<?php echo tep_draw_infoBox_bottom(); ?>

<?php echo tep_pixel_trans();?>

<?php echo tep_draw_infoBox2_top();?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr><td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td></tr>
</table>

<?php echo tep_draw_infoBox2_bottom();?>

<?php
}
?>

<?php echo tep_draw1_bottom();?>

<?php echo tep_draw_bottom();?>

</form></td>
<!-- body_text_eof //-->
<td class="<?php echo BOX_WIDTH_TD_RIGHT; ?>"><table border="0" class="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0">
<!-- 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 //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>