VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Double numbering orders for one order

Double numbering orders for one order 27 Dec 2017 12:05 #1

Hi,

When create new order your plugin crate double order number for same order. Two times meta_key _oton_number_ordernumber
Attachments:

Please Log in or Create an account to join the conversation.

Double numbering orders for one order 31 Dec 2017 15:03 #2

Dear Yumit,
Sorry to hear you are running into this issue. Having duplicate post metas is indeed a bad thing and should never happen. Codewise, we are using WooCommerce's WC_Order::update_meta_data, which should replace an existing post meta. We are not manipulating the database directly, where such duplicates might be expected.
Do you see those duplicate post metas with each order, or just with some orders?
I have tried reproducing this issue here at our local installations, but I couldn't. Here, each order (with the same ordernumber settings as shown in your screenshot) always gets just one post meta with key _oton_number_ordernumber...

Which versions of (a) our plugin, (b) WooCommerce, (c) WordPress and (d) PHP do you use? Do you have any other plugins installed that might internally use sub-orders or the like? It's probably easiest if you can create the WooCommerce system report (in the backend, go to "WooCommerce -> Status", button "Get system report", then "Copy for support" and paste everything into an email to office@open-tools.net
That report contains detailed information about your installation, but should not contain any sensitive information. It might help us figure out what causes those duplicate post metas.

Best regards,
Reinhold

Please Log in or Create an account to join the conversation.

Double numbering orders for one order 01 Jan 2018 18:48 #3

Hi,

Thank you for your reply!

Duplicate post metas with each order.

a: 1.4.3
b: 3.2.6
c: 4.9.1
d: 7.0
No, I have not. But I have tested this plugin just one time but I deleted this plugin.

And I send mail to office@open-tools.net

Thank you !

Please Log in or Create an account to join the conversation.

Double numbering orders for one order 08 Jan 2018 16:17 #4

I have the same problem and also sent you an email

Please Log in or Create an account to join the conversation.

Double numbering orders for one order 09 Jan 2018 13:40 #5

I don't know why it seems solved on topic but I have same problem.

Please Log in or Create an account to join the conversation.

Double numbering orders for one order 19 Jan 2018 11:09 #6

Hi,

I didn't get any response. How is going?

Please Log in or Create an account to join the conversation.

Double numbering orders for one order 23 Feb 2018 14:16 #7

Hi,

I have same issue still more... I do not have time for wait more. Can you help me to day? I need fix this. Double order number first one on admin panel second one send to customer order mail.

Please Log in or Create an account to join the conversation.

Double numbering orders for one order 23 Feb 2018 18:33 #8

They doesn't care about this.
But, I have the solution, give me your email.

Please Log in or Create an account to join the conversation.

Double numbering orders for one order 25 Feb 2018 17:15 #9

yumit.gyuler@gmail.com

Please Log in or Create an account to join the conversation.

Double numbering orders for one order 26 Feb 2018 03:00 #10

Dear Yumit, dear Erick,
Thank you for your help and your system reports. As we could not reproduce the issue locally, it took quite a while to figure out a possible culprit. I think we have identified the possible cause of the issue. Could you please modify one line of the plugin and check whether the following modification fixed the issue:

In the file "wp-content/plugins/woocommerce-advanced-ordernumbers/ordernumbers_woocommerce_basic.php" change line 457 from
$order->save_meta_data();
to
$order->save();

Does this little change fix your issue?

Thank you,
Reinhold

PS: Erick, would you mind sharing your solution with us, too? Thank you very much.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular