The issue is I keep receiving these errors:
Unknown: Creating default object from empty value in /home/######/public_html/shop/catalog/model/shipping/purolator.php on line 76
They seem to be where I utilize the purolator provided variables.
Code: Select all
//Populate the Billing Account Number
$get_request->BillingAccountNumber = $this->config->get('purolator_billingaccount');
//Populate the Origin Information
$get_request->SenderPostalCode = $this->config->get('purolator_postcode');
//Populate the Desination Information
$get_request->ReceiverAddress->City = $address['city'];;
$get_request->ReceiverAddress->Province = $address['province'];;
$get_request->ReceiverAddress->Country = $address['iso_code_2'];;
$get_request->ReceiverAddress->PostalCode = $address['postcode'];;
//Populate the Package Information
$get_request->PackageType = "CustomerPackaging";
$get_request->ServiceID = "PurolatorExpress";
//Populate the Shipment Weight
$get_request->TotalWeight->Value = $this->cart->getWeight();
$get_request->TotalWeight->WeightUnit = $this->config->get('purolator_weight_class');
//Execute the request and capture the response
$get_response = $client->GetQuickEstimate($get_request);
In turn I am also receiving this error where it mentions the shipping title and total weight of cart. It is in regards to the quote data.
Warning: Invalid argument supplied for foreach() in /home/######/public_html/shop/catalog/view/theme/customcart/template/checkout/shipping.tpl on line 39
Code: Select all
Line 39: <td width="1"><label for="<?php echo $quote['id']; ?>">