Send mail to customer – Bug!
-
Hi,
follow problem.
if some customer bought any item in my shop,
the didn’t response some E-Mail about his order!i think some value are wrong in :
“<wordpresspath>\wp-content\plugins\ready-ecommerce\modules\user\mod.php”
Function:public function getCurrentEmail($order = array()) { $user = frame::_()->getModule('user')->getCurrent(); $customerEmail = $user->user_email; if(empty($customerEmail) && empty($order)) $order = frame::_()->getModule('order')->getCurrent(); if(empty($customerEmail) && !empty($order)) { if(!empty($order['shipping_address']) && is_string($order['shipping_address'])) { $order['shipping_address'] = utils::jsonDecode($order['shipping_address']); } if(!empty($order['shipping_address'])) { foreach($order['shipping_address'] as $k => $v) { if(preg_match('/^email/i', $k)) { $customerEmail = $v; break; } } } if(!empty($order['billing_address']) && is_string($order['billing_address'])) { $order['billing_address'] = utils::jsonDecode($order['billing_address']); } if(empty($customerEmail) && !empty($order['billing_address'])) { foreach($order['billing_address'] as $k => $v) { if(preg_match('/^email/i', $k)) { $customerEmail = $v; break; } } } } return $customerEmail; }
i search 2 hours to fix this bug, but i don’t find them!
i hope you can help me! thanks.greetings
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Send mail to customer – Bug!’ is closed to new replies.