Title: incorrect reference/order number
Last modified: June 24, 2020

---

# incorrect reference/order number

 *  [tgunergun](https://wordpress.org/support/users/tgunergun/)
 * (@tgunergun)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/incorrect-reference-order-number/)
 * Hi there,
 * I realized that the reference numbers for invitations do not match the actual
   order numbers. It’s always plus 1 for some strange reason.
 * Example: If customer order number is 2802, reference number in the trust pilot/
   invitation dashboard shows 2803.
 * I found following code in orders.php ? Is there a reason this is happening?
    
   Thanks T
 *  /**
    * Updating post orders lists after automatic invitation */ private function
   handle_single_response($response, $order) { try { $synced_orders = trustpilot_get_field(
   TRUSTPILOT_PAST_ORDERS_FIELD); $failed_orders = trustpilot_get_field(TRUSTPILOT_FAILED_ORDERS_FIELD);
 *  if ($response[‘code’] == 201) {
    trustpilot_set_field(TRUSTPILOT_PAST_ORDERS_FIELD,**
   $synced_orders + 1)**; if (isset($failed_orders->{$order[‘referenceId’]})) { 
   unset($failed_orders->{$order[‘referenceId’]}); trustpilot_set_field(TRUSTPILOT_FAILED_ORDERS_FIELD,
   $failed_orders); }

Viewing 1 replies (of 1 total)

 *  Plugin Author [Trustpilot](https://wordpress.org/support/users/trustpilotapp/)
 * (@trustpilotapp)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/incorrect-reference-order-number/#post-13093338)
 * Hi [@tgunergun](https://wordpress.org/support/users/tgunergun/)
    Thanks for the
   message. The plugin does not change the order number. Could you please write 
   a message to [apps@trustpilot.com](https://wordpress.org/support/topic/incorrect-reference-order-number/apps@trustpilot.com?output_format=md)
   with your domain and some examples? Thank you.

Viewing 1 replies (of 1 total)

The topic ‘incorrect reference/order number’ is closed to new replies.

 * ![](https://ps.w.org/trustpilot-reviews/assets/icon-256x256.png?rev=2029921)
 * [Trustpilot Reviews](https://wordpress.org/plugins/trustpilot-reviews/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/trustpilot-reviews/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/trustpilot-reviews/)
 * [Active Topics](https://wordpress.org/support/plugin/trustpilot-reviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/trustpilot-reviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/trustpilot-reviews/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Trustpilot](https://wordpress.org/support/users/trustpilotapp/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/incorrect-reference-order-number/#post-13093338)
 * Status: not resolved