Chaney Posted August 31, 2011 Share Posted August 31, 2011 (edited) Using version 1.4.1 and have not been able to configure confirmation emails sent to customers who place orders? I see that this topic has been here - but cannot find the solutions? Please help as my store is on line. I'm not that great with php but would greatly appreciate some assistance. Thank you! Deborah I upgraded to this configuration: Prestashop Version: 1.4.4.1 Server information: Linux #5 SMP Wed Jun 8 01:26:17 CDT 2011 i686 Server software Version: Apache mod_fcgid/2.3.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP Version: 5.2.17 MySQL Version: 5.1.56 Still cannot generate an order confirmation email - test emails are sent, but none to the customers. PLEASE HELP! Edited August 31, 2011 by Chaney (see edit history) Link to comment Share on other sites More sharing options...
Chaney Posted September 4, 2011 Author Share Posted September 4, 2011 Hi everybody, I have created a report to send to our development team, and they will be looking into this for you. I will let you all know as soon as I hear back from them. -Mike Here is the php error my hosting support found when we tried an order: The following error message was found in modules/paypal: [03-Sep-2011 16:44:35] PHP Fatal error: Cannot use object of type Product as array in /home/chaney92/public_html/Store/modules/mailalerts/mailalerts.php on line 219 Here is the function, with marked line, where that error is occuring: public function hookUpdateQuantity($params) { global $cookie; $qty = intval($params['product']['quantity_attribute'] ? $params['product']['quantity_attribute'] : $params['product']['stock_quantity']); // This line is 219. if ($qty <= intval(Configuration::get('mA_last_qties')) AND !(!$this->_merchant_oos OR empty($this->_merchant_mails)) AND Configuration::get('PS_STOCK_MANAGEMENT')) { $templateVars = array( '{qty}' => $qty - $params['product']['cart_quantity'], '{last_qty}' => intval(Configuration::get('mA_last_qties')), '{product}' => strval($params['product']['name'])); $iso = Language::getIsoById(intval($cookie->id_lang)); if (file_exists(dirname(__FILE__).'/mails/'.$iso.'/productoutofstock.txt') AND file_exists(dirname(__FILE__).'/mails/'.$iso.'/productoutofstock.html')) Mail::Send(intval(Configuration::get('PS_LANG_DEFAULT')), 'productoutofstock', $this->l('Product out of stock'), $templateVars, explode(self::__MA_MAIL_DELIMITOR__, $this->_merchant_mails), NULL, strval(Configuration::get('PS_SHOP_EMAIL')), strval(Configuration::get('PS_SHOP_NAME')), NULL, NULL, dirname(__FILE__).'/mails/'); } if ($this->_customer_qty AND $params['product']->quantity > 0) $this->sendCustomerAlert(intval($params['product']->id), 0); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now