Title: Duplicate orders are generated
Last modified: March 7, 2023

---

# Duplicate orders are generated

 *  Resolved [kamran1331](https://wordpress.org/support/users/kamran1331/)
 * (@kamran1331)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/duplicate-orders-are-generated/)
 * This error is generated in connection with several plugins and theme (Woodmart),
   the list of all plugins that must be active to get duplicate orders are these:
   
   ATUM Inventory Management for WooCommerceGermanized for WooCommerceGermanized
   for WooCommerce ProGermanized for WooCommerce: One Stop ShopPayment Plugins for
   Stripe WooCommercevendidero HelperWooCommerceWooCommerce Multilingual & Multi-
   CurrencyWoodmart CoreWPML Multilingual CMSWPML SEOWPML String Translation
 * One of them was for example: WPML, there I opened bug ([https://wpml.org/de/forums/topic/probem-checkout-page/](https://wpml.org/de/forums/topic/probem-checkout-page/)),
   after analysis I was sent to you. WPML tells that something is implemented wrong.
 * **Bug video how to re-produce: **[https://drive.google.com/file/d/1OdocvRhVTYo0RkIDD_bGD5ZjqKK4RDof/view?usp=share_link](https://drive.google.com/file/d/1OdocvRhVTYo0RkIDD_bGD5ZjqKK4RDof/view?usp=share_link)
    -  This topic was modified 3 years, 3 months ago by [kamran1331](https://wordpress.org/support/users/kamran1331/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fduplicate-orders-are-generated%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/duplicate-orders-are-generated/#post-16537358)
 * Hi [@kamran1331](https://wordpress.org/support/users/kamran1331/)
 * Thanks for the video. I can confirm that this behavior is not being caused by
   the Stripe plugin. Per our email conversations, WooCommerce controls the logic
   of when a new order is created. [Here is a thread explaining that](https://wordpress.org/support/topic/double-order-when-country-is-changed/).
 * You most likely have a plugin that’s using the filter `woocommerce_cart_hash`
   to force a new order to be created when the payment method is changed.
 * I am sure if you test another Stripe plugin, using something like IDEAL and SOFORT,
   you will observer the exact same behavior. That’s because this isn’t being caused
   by the Stripe plugin.
 * Kind Regards,
 *  Thread Starter [kamran1331](https://wordpress.org/support/users/kamran1331/)
 * (@kamran1331)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/duplicate-orders-are-generated/#post-16537449)
 * Hello [@mrclayton](https://wordpress.org/support/users/mrclayton/), Unfortunately
   this is not true, this time nothing is changed in shopping cart. No changes are
   made. If I take Stripe plugin from Woocommerce then this error is also gone. 
   Just like when other plugin are disabled. This comes exactly in this constellation
   that I described. It has nothing to do with error I reported before with country
   change unfortunately.
    -  This reply was modified 3 years, 3 months ago by [kamran1331](https://wordpress.org/support/users/kamran1331/).
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/duplicate-orders-are-generated/#post-16537493)
 * > It has nothing to do with error I reported before with country change unfortunately
 * It does though, because that is the exact location within WooCommerce where the
   code determines if a new order should be created or if the order ID saved in 
   the session should be used. All of that functionality is related.
 * The response from WPML doesn’t make sense, at least the English translation of
   it. WPML is stating that the issue is caused by the webhook. Webhooks don’t interact
   with the customer session nor the WooCommerce functionality related to when an
   order is created.
 * > If I take Stripe plugin from Woocommerce then this error is also gone.
 * You have to make sure you’re testing the exact same scenario. You need to test
   two payment methods which trigger a redirect to the hosted payment page. Then
   when cancelled, return you back to the checkout page. Is that how you tested?
 *  Thread Starter [kamran1331](https://wordpress.org/support/users/kamran1331/)
 * (@kamran1331)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/duplicate-orders-are-generated/#post-16537834)
 * Something has changed, you are right after I tested again with Stripe from Woocommerce
   this behavior is very similar. So I will contact Woocommerce then.
 * I am sorry for the wasted time.
 *  Thread Starter [kamran1331](https://wordpress.org/support/users/kamran1331/)
 * (@kamran1331)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/duplicate-orders-are-generated/#post-16551620)
 * This Problem is resolved from WPML:
 * There was a setting problem here, in relation to product file attachments, which
   I have now adjusted under WPML > Settings > Translate custom fields > Show system
   field.
 * The affected fields were:
 * _downloadable_files = copy
   _wp_attached_file = translate
 * You can generally find detailed information about such problems under WooCommerce
   > WooCommerce Multilingual & Multi & Currency > Status.
 * [https://wpml.org/de/forums/topic/doppelte-bestellungen/#post-13225693](https://wpml.org/de/forums/topic/doppelte-bestellungen/#post-13225693)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Duplicate orders are generated’ is closed to new replies.

 * ![](https://ps.w.org/woo-stripe-payment/assets/icon-256x256.png?rev=2611337)
 * [Payment Plugins for Stripe WooCommerce](https://wordpress.org/plugins/woo-stripe-payment/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-stripe-payment/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-stripe-payment/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-stripe-payment/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-stripe-payment/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-stripe-payment/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [kamran1331](https://wordpress.org/support/users/kamran1331/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/duplicate-orders-are-generated/#post-16551620)
 * Status: resolved