Skip to content

Commit

Permalink
Merge pull request #163 from retainful/master-release-remove-unwanted…
Browse files Browse the repository at this point in the history
…-data

- remove unwanted data
  • Loading branch information
rameshelamathi authored Mar 13, 2024
2 parents 351c616 + 11533df commit 573735e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions src/Api/Imports/Imports.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,13 @@ public function getOrderData($order)
'treat_on_hold_as_complete' => ($consider_on_hold_order_as_ac == 0),
'r_order_id' => $order_id,
'order_number' => $order_id,
'order_date' => $this->formatToIso8601(self::$woocommerce->getOrderDate($order)),
'woo_r_order_number' => self::$woocommerce->getOrderNumber($order),
'plugin_version' => RNOC_VERSION,
'cart_hash' => $cart_hash,
'ip' => $user_ip,
'id' => $cart_token,
'name' => '#' . $cart_token,
'email' => (isset($customer_details['email'])) ? $customer_details['email'] : NULL,
'token' => $cart_token,
'user_id' => NULL,
'currency' => $default_currency_code,
'customer' => $customer_details,
'tax_lines' => $this->getOrderTaxDetails(),
Expand Down Expand Up @@ -244,10 +242,10 @@ public function getOrderData($order)
'recovered_by_retainful' => (bool)self::$woocommerce->getOrderMeta($order, '_rnoc_recovered_by'),
'recovered_cart_token' => self::$woocommerce->getOrderMeta($order, '_rnoc_recovered_cart_token'),
'recovered_at' => (!empty($recovered_at)) ? $this->formatToIso8601($recovered_at) : NULL,
'noc_discount_codes' => array(),
'client_details' => array(
'user_agent' => $user_agent,
'accept_language' => $customer_language,
'client_details' => $this->getClientDetails($order),
'payment_method' => array(
'value' => $order->get_payment_method(),
'name' => $order->get_payment_method_title(),
)
);
return apply_filters('rnoc_import_order_data',$order_data,$order);
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Popup/Popup.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Popup
function getPopupJs()
{
//https://js.retainful.com/woocommerce/v2/popup/beta/poup-widget.beta.js
return apply_filters('rnoc_popup_js','https://js.retainful.com/woocommerce/v2/popup/production/poup-widget.js?t='.time());
return apply_filters('rnoc_popup_js','https://js.retainful.com/woocommerce/v2/popup/production/poup-widget.js');
}

/**
Expand Down

0 comments on commit 573735e

Please sign in to comment.