I've worked through the changes that were suggested and still don't have this working right. I get a bunch of Undefined index: and Undefined variable: notices and have no idea how to fix them. For example...
Undefined index
Quote:
Notice: Undefined index: use_taxed_price_product in /home/keyston1/public_html.dev/modules/alteredCart_On_Sale/onsale_sessions.php on line 23
Notice: Undefined index: no_globals_w_ind in /home/keyston1/public_html.dev/modules/alteredCart_On_Sale/onsale_sessions.php on line 39
|
Code:
// Load Settings //
x_session_register('onsale_settings');
$GLOBALS['onsale_settings'] = unserialize(func_query_first_cell("SELECT settings FROM xcart_onsale_settings WHERE os_set_id='1'"));
// Taxed Price //
$GLOBALS['onsale_settings']['use_taxed_price'] = $GLOBALS['onsale_settings']['use_taxed_price_product'] == 'Y' ? 'Y' : ''; // LINE 23
$smarty->assign('onsale_settings', $GLOBALS['onsale_settings']);
x_session_register('_message');
x_session_register('added_sales');
x_session_register('onsale_shipping');
x_session_register('cart');
$smarty->assign('onsale_messages', $_message);
// Get the Coupon Code //
$coupon_code = '';
// Array of saletypes with discounts that load on the product/catalog page //
$cp_display = array('5', '10');
if ($GLOBALS['onsale_settings']['no_globals_w_ind'] == 'Y'){ // LINE 39
$ind_pids = onsale_load_ind_productids();
}
example of Undefinded variable
Quote:
Undefined variable: p_query in /home/keyston1/public_html.dev/modules/alteredCart_On_Sale/onsale_functions.php on line 524
|
Code:
$query = "SELECT * FROM $sql_tbl[onsale]
WHERE begin < '".$__time."'
AND end > '".$__time."'
AND status IN ('A', 'S', 'E') $p_query $c_query $ospage_filter // LINE 524
ORDER BY order_to_apply ASC";
$md5 = md5($query);
can someone give me an example of what I should do so I can fix the rest of them? I tried google but they talk way over my head so it's like comparing apples to oranges.
Thanks.