robweidman, on 10 May 2010, 22:31, said:
Line 30: $products_id = (int) $_GET['pid'];
The result is the empty string. If I can be of further assistance, let me know.
Posted 04 June 2010, 00:36
robweidman, on 10 May 2010, 22:31, said:
Posted 09 January 2011, 03:07
kymation, on 24 April 2010, 02:01, said:
Posted 09 January 2011, 05:01
Edited by NDboots, 09 January 2011, 05:13.
Posted 27 January 2011, 01:20
Posted 13 March 2011, 22:01
case 'process':
if (!tep_session_is_registered ('customer_id') && (!tep_session_is_registered ('shippostcode') || !tep_session_is_registered ('shipcountry') || (!tep_session_is_registered ('shipzone') && SHIP_ESTIMATOR_USE_ZONES == 'true') ) ) {
$error_code = '';
if (!tep_not_null ($_POST['shippostcode']) ) $error_code .= '&error_shippostcode=1';
if (!tep_not_null ($_POST['shipzone']) && SHIP_ESTIMATOR_USE_ZONES == 'true') $error_code .= '&error_shipzone=1';
if (!tep_not_null ($_POST['shipcountry']) ) $error_code .= '&error_shipcountry=1';
tep_redirect (tep_href_link (FILENAME_SHIP_ESTIMATOR, 'action=ship_error' . $error_code, 'NONSSL'));
exit; // Don't do anything else
} //if (!tep_session_is_registered
case 'process':
if (!tep_session_is_registered ('customer_id') && (!tep_session_is_registered ('shippostcode') || !tep_session_is_registered ('shipcountry') || (!tep_session_is_registered ('shipzone') && SHIP_ESTIMATOR_USE_ZONES == 'true') ) ) {
$error_code = '';
if (!tep_not_null ($_POST['shippostcode']) ) $error_code .= '&error_shippostcode=1';
if (!tep_not_null ($_POST['shipzone']) && SHIP_ESTIMATOR_USE_ZONES == 'true') $error_code .= '&error_shipzone=1';
if (!tep_not_null ($_POST['shipcountry']) ) $error_code .= '&error_shipcountry=1';
if ($error_code != '') {
tep_redirect (tep_href_link (FILENAME_SHIP_ESTIMATOR, 'action=ship_error' . $error_code, 'NONSSL'));
exit; // Don't do anything else
}
} //if (!tep_session_is_registered
Posted 14 March 2011, 00:00
if (!tep_session_is_registered ('customer_id') && (!tep_session_is_registered ('shippostcode') || !tep_session_is_registered ('shipcountry') || (!tep_session_is_registered ('shipzone') && SHIP_ESTIMATOR_USE_ZONES == 'true') ) ) {
The real problem is that one of the error conditions is not detected. The Zone needs to be checked for content if it is enabled. Add this line after the above::if (!tep_not_null ($_POST['shipzone']) && SHIP_ESTIMATOR_USE_ZONES == 'true' ) $error_code .= '&error_shipzone=1';That error code then needs to be detected and an error message set in the estimator box. Try this (without your additions) and see if it now works as expected.
Posted 09 January 2012, 16:13
Posted 09 January 2012, 19:48
Posted 17 February 2012, 20:21
<!-- added for pop-up ship estimator //-->
<div class="buttonSet">
<span class="buttonAction"><?php echo '<a href="javascript:estimatorpopupWindow' .tep_draw_button(IMAGE_BUTTON_SHIP_ESTIMATOR, 'triangle-1-e', tep_href_link(FILENAME_SHIP_ESTIMATOR, '', 'SSL')); ?></span>
</div>
<!-- added for pop-up ship estimator end //-->
<!-- added for pop-up ship estimator //-->
<div class="buttonSet">
<span class="buttonAction"><?php echo '<a href="javascript:estimatorpopupWindow' .tep_draw_button(IMAGE_BUTTON_SHIP_ESTIMATOR, 'triangle-1-e', tep_href_link(FILENAME_SHIP_ESTIMATOR, '', 'SSL')); ?></span>
</div>
<!-- added for pop-up ship estimator end //-->
Posted 18 February 2012, 02:06
// MVS Shipping Estimator start
if (SHIP_ESTIMATOR_BUTTON_SHOPPING_CART == 'true') {
echo tep_draw_button (IMAGE_BUTTON_SHIP_ESTIMATOR, 'check', 'javascript:estimatorpopupWindow(\'' . tep_href_link (FILENAME_SHIP_ESTIMATOR, '', 'SSL') . '\')');
}
// MVS Shipping Estimator end
// Insert the javascript for the shipping estimator popup
$head_javascript .= ' <script language="javascript" type="text/javascript">' . "\n";
$head_javascript .= " function estimatorpopupWindow(URL) {window.open(URL,'shippingestimator','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600')}\n";
$head_javascript .= ' </script>' . "\n";
$oscTemplate->addBlock( $head_javascript, 'header_tags' );
Posted 18 February 2012, 17:38
<!-- added for pop-up ship estimator //-->
<SCRIPT LANGUAGE="JavaScript"><!--
function estimatorpopupWindow(URL) {window.open(URL,'shippingestimator','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600')}
//--></script>
<!-- added for pop-up ship estimator end //-->
<!-- added for pop-up ship estimator //-->
<td align="left" class="main">
<?php echo '<a href="javascript:estimatorpopupWindow(\'' . tep_href_link(FILENAME_SHIP_ESTIMATOR, '', 'SSL') . '\')">' . tep_image_button('button_estimate_shipping.gif', IMAGE_BUTTON_SHIP_ESTIMATOR) . '</a>'; ?>
</td>
<!-- added for pop-up ship estimator end //-->
<?php echo tep_draw_button (IMAGE_BUTTON_SHIP_ESTIMATOR, 'check', 'javascript:estimatorpopupWindow(\'' . tep_href_link (FILENAME_SHIP_ESTIMATOR, '', 'SSL') . '\')'); ?>
Posted 18 February 2012, 18:27
Posted 18 February 2012, 18:45
<span class="tdbLink"><a id="tdb6" href="javascript:estimatorpopupWindow('https://pinecreekwood.com/catalog/ship_estimator.php')"><b>Get Shipping Quote</a></span>
Posted 18 February 2012, 18:53
Posted 18 February 2012, 21:41
<!-- close_window //-->
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td>
<p class="smallText" align="center">
<?php echo '<a href="' . tep_href_link (FILENAME_SHIP_ESTIMATOR, 'action=end', 'NONSSL') . '">' . tep_image_button('button_close_window.gif', IMAGE_BUTTON_CLOSE) . '</a>'; ?>
</p>
</td>
</tr>
<!-- close_window_eof //-->
<!-- reset //-->
<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 class="main" width="100%" align="center"><?php echo TEXT_RESET_EXPLAIN; ?> </td>
</tr>
<tr>
<td><?php echo tep_draw_separator ('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main" width="100%" align="center"><?php echo '<a href="' . tep_href_link (FILENAME_SHIP_ESTIMATOR, 'action=reset', 'SSL') . '">' . tep_image_button('button_reset.gif', IMAGE_BUTTON_RESET_FORM) . '</a>'; ?> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<!-- reset_eof //-->
<!-- ship-to_form //-->
<tr>
<td>
<?php echo tep_draw_form ('est_shipping_id', tep_href_link (FILENAME_SHIP_ESTIMATOR, 'action=process', 'SSL'), 'post')// . tep_draw_hidden_field('action', 'process'); ?>
<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 colspan=2 class="main"><b><?php echo TITLE_SHIPPING_ADDRESS; ?></b></td>
</tr>
<tr>
<td class="infoBoxContents"><?php echo ENTRY_POST_CODE; ?></td>
<td class="infoBoxContents"><?php echo tep_draw_input_field ('shippostcode') . ' ' . (tep_not_null(ENTRY_POST_CODE) ? '<span class="inputRequirement">* Required</span>': ''); ?></td>
</tr>
<tr>
<td class="infoBoxContents"><?php echo ENTRY_COUNTRY; ?></td>
<td class="infoBoxContents"><?php echo tep_get_country_list ('shipcountry',DEFAULT_COUNTRY) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">* Required</span>': ''); ?></td>
</tr>
<td class="infoBoxContents"></td>
<td class="infoBoxContents"><?php echo tep_image_submit ('button_process_quote.gif', IMAGE_BUTTON_PROCESS_QUOTE); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td width="10"><?php echo tep_draw_separator ('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></form></td>
</tr>
<!-- ship-to_form_eof //-->
Posted 18 February 2012, 21:56
Posted 18 February 2012, 22:54
Posted 18 February 2012, 23:00
Posted 18 February 2012, 23:35
kymation, on 18 February 2012, 23:00, said:
Posted 18 February 2012, 23:52