@@ -84,7 +84,8 @@ discard block |
||
84 | 84 | $getProductId = $this->postCurl($url, "api_key_secret=$api_key_secret&api_function=search |
85 | 85 | &search_type=product&search_keyword=$product_sku"); |
86 | 86 | $details = json_decode($getProductId); |
87 | - if ($details->api_error_detected == 0 && is_array($details->page_message)) {//This is not true if Product_sku is updated |
|
87 | + if ($details->api_error_detected == 0 && is_array($details->page_message)) { |
|
88 | +//This is not true if Product_sku is updated |
|
88 | 89 | $productId = $details->page_message[0]->product_id; |
89 | 90 | } |
90 | 91 | |
@@ -120,7 +121,8 @@ discard block |
||
120 | 121 | &search_type=client&search_keyword=$email"); |
121 | 122 | |
122 | 123 | $details = json_decode($getUserId); |
123 | - if ($details->api_error_detected == 0 && is_array($details->page_message)) {//This is not true if email is updated |
|
124 | + if ($details->api_error_detected == 0 && is_array($details->page_message)) { |
|
125 | +//This is not true if email is updated |
|
124 | 126 | $userId = $details->page_message[0]->client_id; |
125 | 127 | } |
126 | 128 |