Totally Zenned
- Join Date:
- Apr 2011
- Posts:
- 592
- Plugin Contributions:
- 0
ZX Order Review [Support Thread]
balihr:
Sorry for the late reply, I was on vacation.
Guest checkout is excluded from the order review emails because I personally expect NOT to be contacted about anything other than the essential communication when I choose to checkout as guest. I know it's "just" to review the order, but you could create a very long list of "justs" if you wanted to...
Anyway, if you insist on including Guest orders to this list, you can modify your includes/classes/observers/auto.zx_order_review.php and comment lines 21 and 30:
//if(!zen_in_guest_checkout()) {
$orders_id = $p2;
$customers_email = $p1['customers_email_address'];
$token = RandomToken();
$sql = "INSERT INTO " . TABLE_ORDER_REVIEW . " (orders_id, customers_email, token) VALUES (:ordersID, :customersEmail, :token)";
$sql = $db->bindVars($sql, ':ordersID', $orders_id, 'integer');
$sql = $db->bindVars($sql, ':customersEmail', $customers_email, 'string');
$sql = $db->bindVars($sql, ':token', $token, 'string');
$db->Execute($sql);
//}
Thank you balihr,
I commented the line 21 and 30 as shownand run the order_review.php
However, it didn t work. No emails are being sent to the guest checkout to review their order.
How can i make this work? Asking for reviews manually is a pity for guest account for me.
Thank you