Changeset 2792273
- Timestamp:
- 09/30/2022 06:58:54 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sprint/trunk/includes/Api/Callback/ERP_SPRINT_Order_Api.php
r2684153 r2792273 39 39 $save_data["errors"] = $errors; 40 40 } 41 42 $ json_data = wp_remote_post($save_data);41 42 $wp_data_post = wp_json_encode($save_data); 43 43 //----------- 44 44 wp_remote_post( 45 45 $url, 46 46 array( 47 'body' => $ json_data,47 'body' => $wp_data_post, 48 48 'timeout' => 500000, 49 49 'headers' => array( … … 62 62 $product = wc_get_product($item->get_product_id()); 63 63 $description.= 'Product SKU: ' . $product->get_sku().', '; 64 $description.= 'P productroduct name: ' . $item->get_name().', ';64 $description.= 'Product name: ' . $item->get_name().', '; 65 65 $description.= 'Product quantity: ' . $item->get_quantity().' | '; 66 66 } … … 172 172 $save_data["errors"] = $errors; 173 173 } 174 $json_data = wp_remote_post($save_data); 175 //----------- 174 //----------- 176 175 wp_remote_post( 177 176 $url, 178 177 array( 179 'body' => $json_data,178 'body' => wp_json_encode($save_data), 180 179 'timeout' => 500000, 181 180 'headers' => array(
Note: See TracChangeset
for help on using the changeset viewer.