Also occurs for /includes/modules/shipping_estimator.php:
Code:
[25-Nov-2012 16:22:21 Europe/Berlin] PHP Warning: Creating default object from empty value in C:\xampp\htdocs\mystore\includes\modules\shipping_estimator.php on line 107
Code:
[27-Nov-2012 17:29:35 Europe/Berlin] PHP Warning: Creating default object from empty value in C:\xampp\htdocs\mystore\includes\modules\shipping_estimator.php on line 117
It looks like the solution for this one might be (starting at line 63 of the v1.5.1 module):
Code:
//if($cart->get_content_type() !== 'virtual') {
require(DIR_WS_CLASSES . 'order.php');
$order = new order;
if ($_SESSION['customer_id']) {
// user is logged in
if (isset($_POST['address_id'])){
// user changed address
$sendto = $_POST['address_id'];
}elseif ($_SESSION['cart_address_id']){
// user once changed address
$sendto = $_SESSION['cart_address_id'];
// $sendto = $_SESSION['customer_default_address_id'];
}else{
// first timer
$sendto = $_SESSION['customer_default_address_id'];
}
$_SESSION['sendto'] = $sendto;
// set session now
$_SESSION['cart_address_id'] = $sendto;
// set shipping to null ! multipickjup changes address to store address...
$shipping='';
// include the order class (uses the sendto !)
// require(DIR_WS_CLASSES . 'order.php');
// $order = new order;
}else{
// user not logged in !
Bookmarks