|
@@ -118,6 +118,8 @@ if (!class_exists("plug_wookook")) {
|
|
}
|
|
}
|
|
|
|
|
|
$found = false;
|
|
$found = false;
|
|
|
|
+ $theproduct = false;
|
|
|
|
+
|
|
try {
|
|
try {
|
|
$order = json_decode($rr, true);
|
|
$order = json_decode($rr, true);
|
|
if (isset($order['line_items'])) {
|
|
if (isset($order['line_items'])) {
|
|
@@ -167,7 +169,7 @@ if (!class_exists("plug_wookook")) {
|
|
|
|
|
|
$testmode = false;
|
|
$testmode = false;
|
|
|
|
|
|
- if ($found) {
|
|
|
|
|
|
+ if ($found && $theproduct) {
|
|
$resu = array();
|
|
$resu = array();
|
|
$user_email = $order['billing']['email'];
|
|
$user_email = $order['billing']['email'];
|
|
$user_name = $user_email; //sanitize_username("O".$order['id']);
|
|
$user_name = $user_email; //sanitize_username("O".$order['id']);
|