Snarg Posted December 12, 2013 Posted December 12, 2013 Sorry I keep posting errors, but I am doing my best to create a shop as error free as possible. I have a fresh install of 2.3.3.4. I have installed KissER Error Handling & Debugging (adapted for 2.3.3.4), WA State Destination-based Sales Tax v2.2f and Modular Checkout Success. While running through a test purchase, KissER reports this error: E_NOTICE Error Count: 1 Error: Trying to get property of non-object File: includes/functions/wa_taxes.php Line: 23 Line 23 of wa_taxes.php is as follows" if (($customer_id == 0) || ($order->customer['is_dummy_account'])) { Just above this line, at line 19, the variables $customer_id and $order are declared. Just above line 23, at line 22, the variables are filled from a DB query (sorry in advance for a long line of code): $tax_address_query = tep_db_query("select ab.entry_street_address, ab.entry_city, ab.entry_postcode from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) where ab.customers_id = '" . (int)$customer_id . "' and ab.address_book_id = '" . (int)(($cart->content_type == 'virtual' ) ? $billto : $sendto) . "'"); I don't know what a properly formatted tep_db_query is supposed to look like. Is that line, line 22, the culprit? Thank you in advance for any help you may give. It may not look like it, but I really am trying to fix these on my own. It is not until I face first into a brick wall that I come here. :) I realize that the Washington taxes contrib is very old and developed for 2.2 however, it is vital to my shop and I am doing my best to make it work.
De Dokta Posted December 13, 2013 Posted December 13, 2013 Hi, it looks as if there is a snippet from another contribution in your code: ($order->customer['is_dummy_account']) belongs to the Purchase without account (PWA)-contrib.... Greetz J.J.
Snarg Posted December 13, 2013 Author Posted December 13, 2013 @@De Dokta I changed line 23 to this: if ($customer_id == 0) { There is no more error, so perhaps it is working correctly now. Thank you for your assistance.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.