Deprecated: Creation of dynamic property Alg_WC_Custom_Order_Numbers::$settings is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/custom-order-numbers-for-woocommerce/class-alg-wc-custom-order-numbers.php on line 108

Deprecated: Creation of dynamic property Alg_WC_Custom_Order_Numbers_Settings_General::$id is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/custom-order-numbers-for-woocommerce/includes/admin/class-alg-wc-custom-order-numbers-settings-general.php on line 29

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the custom-order-numbers-for-woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 6121

Deprecated: Creation of dynamic property Alg_WC_Custom_Order_Numbers_Settings_General::$desc is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/custom-order-numbers-for-woocommerce/includes/admin/class-alg-wc-custom-order-numbers-settings-general.php on line 30

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the download-manager domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 6121

Deprecated: Creation of dynamic property WPDM\WordPressDownloadManager::$package is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/download-manager/download-manager.php on line 188

Deprecated: Creation of dynamic property WPDM\WordPressDownloadManager::$email is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/download-manager/download-manager.php on line 201

Deprecated: Creation of dynamic property float_menu_free\Wow_Plugin_Admin::$plugin is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/float-menu/admin/class-admin.php on line 41

Deprecated: Creation of dynamic property float_menu_free\Wow_Plugin_Admin::$url is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/float-menu/admin/class-admin.php on line 42

Deprecated: Creation of dynamic property float_menu_free\Wow_Plugin_Admin::$rating is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/float-menu/admin/class-admin.php on line 43

Deprecated: Creation of dynamic property float_menu_free\Wow_Plugin::$admin is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/float-menu/float-menu.php on line 88

Deprecated: Creation of dynamic property float_menu_free\Wow_Plugin_Public::$plugin is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/float-menu/public/class-public.php on line 28

Deprecated: Creation of dynamic property float_menu_free\Wow_Plugin_Public::$url is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/float-menu/public/class-public.php on line 29

Deprecated: Creation of dynamic property float_menu_free\Wow_Plugin_Public::$rating is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/float-menu/public/class-public.php on line 30

Deprecated: Creation of dynamic property float_menu_free\Wow_Plugin::$public is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/float-menu/float-menu.php on line 89

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 7360

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 2195

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 7360

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 2195

Deprecated: Creation of dynamic property Factory325_Plugin::$options is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 76

Deprecated: Creation of dynamic property Factory325_Plugin::$mainFile is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 79

Deprecated: Creation of dynamic property Factory325_Plugin::$pluginRoot is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 80

Deprecated: Creation of dynamic property Factory325_Plugin::$pluginSlug is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 81

Deprecated: Creation of dynamic property Factory325_Plugin::$relativePath is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 82

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 7360

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 2195

Deprecated: Creation of dynamic property Factory325_Plugin::$pluginUrl is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 83

Deprecated: Creation of dynamic property Factory325_Plugin::$childPlugins is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 86

Deprecated: Creation of dynamic property Factory325_Plugin::$pluginName is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 89

Deprecated: Creation of dynamic property Factory325_Plugin::$pluginTitle is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 90

Deprecated: Creation of dynamic property Factory325_Plugin::$version is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 91

Deprecated: Creation of dynamic property Factory325_Plugin::$build is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 92

Deprecated: Creation of dynamic property Factory325_Plugin::$tracker is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 93

Deprecated: Creation of dynamic property Factory325_Plugin::$host is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/factory/core/includes/plugin.class.php on line 94

Deprecated: Creation of dynamic property Factory325_Plugin::$api is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/onepress/api/api.php on line 14

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 7360

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 2195

Deprecated: Creation of dynamic property OnpLicensing325_Manager::$default is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/onepress/licensing/licensing.php on line 52

Deprecated: Creation of dynamic property OnpLicensing325_Manager::$type is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/onepress/licensing/licensing.php on line 64

Deprecated: Creation of dynamic property OnpLicensing325_Manager::$build is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/onepress/licensing/licensing.php on line 68

Deprecated: Creation of dynamic property OnpLicensing325_Manager::$key is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/onepress/licensing/licensing.php on line 69

Deprecated: Creation of dynamic property OnpLicensing325_Manager::$word is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/onepress/licensing/licensing.php on line 70

Deprecated: Creation of dynamic property Factory325_Plugin::$license is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/onepress/licensing/licensing.php on line 16

Deprecated: Creation of dynamic property OnpUpdates324_Manager::$word is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/onepress/updates/updates.php on line 48

Deprecated: Creation of dynamic property Factory325_Plugin::$updates is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/image-elevator/libs/onepress/updates/updates.php on line 15

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ninja-tables-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the learndash domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 6121

Deprecated: Creation of dynamic property LearnDash_Theme_Register_Legacy::$theme_base_dir is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/themes/legacy/includes/class-ld-themes-register.php on line 21

Deprecated: Creation of dynamic property LearnDash_Theme_Register_Legacy::$theme_base_url is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/themes/legacy/includes/class-ld-themes-register.php on line 22

Deprecated: Creation of dynamic property LearnDash_Theme_Register_Legacy::$theme_template_dir is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/themes/legacy/includes/class-ld-themes-register.php on line 23

Deprecated: Creation of dynamic property LearnDash_Theme_Register_Legacy::$theme_template_url is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/themes/legacy/includes/class-ld-themes-register.php on line 24

Deprecated: Creation of dynamic property LearnDash_Theme_Register_LD30::$theme_base_dir is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/themes/ld30/includes/class-ld-themes-register.php on line 25

Deprecated: Creation of dynamic property LearnDash_Theme_Register_LD30::$theme_base_url is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/themes/ld30/includes/class-ld-themes-register.php on line 26

Deprecated: Creation of dynamic property LearnDash_Theme_Register_LD30::$theme_template_dir is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/themes/ld30/includes/class-ld-themes-register.php on line 27

Deprecated: Creation of dynamic property LearnDash_Theme_Register_LD30::$theme_template_url is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/themes/ld30/includes/class-ld-themes-register.php on line 28

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-user-avatar domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 6121

Deprecated: Creation of dynamic property WC_Ecpay_Apple_Pay::$ecpay_pay is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/ecpay/includes/class-wc-ecpay-apple-pay.php on line 98

Deprecated: Creation of dynamic property WC_Ecpay_Apple_Pay::$apple_pay_key_path is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/ecpay/includes/class-wc-ecpay-apple-pay.php on line 101

Deprecated: Creation of dynamic property WC_Ecpay_Apple_Pay::$apple_pay_crt_path is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/ecpay/includes/class-wc-ecpay-apple-pay.php on line 102

Deprecated: Creation of dynamic property WC_Ecpay_Apple_Pay::$apple_pay_key_pass is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/ecpay/includes/class-wc-ecpay-apple-pay.php on line 103

Deprecated: Creation of dynamic property WC_Ecpay_Apple_Pay::$apple_display_name is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/ecpay/includes/class-wc-ecpay-apple-pay.php on line 104

Deprecated: Creation of dynamic property WC_Ecpay_Apple_Pay::$MerchantID is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/ecpay/includes/class-wc-ecpay-apple-pay.php on line 106

Deprecated: Creation of dynamic property WC_Ecpay_Apple_Pay::$HashKey is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/ecpay/includes/class-wc-ecpay-apple-pay.php on line 107

Deprecated: Creation of dynamic property WC_Ecpay_Apple_Pay::$HashIV is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/ecpay/includes/class-wc-ecpay-apple-pay.php on line 108

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the health-check domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/functions.php on line 6121

Deprecated: Creation of dynamic property Imagify\Job\MediaOptimization::$query_url is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/imagify/inc/classes/class-imagify-abstract-background-process.php on line 38

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/elementor-pro/modules/loop-builder/module.php on line 204

Deprecated: Automatic conversion of false to array is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/settings/settings-sections/class-ld-settings-section-general-per-page.php on line 48

Deprecated: Automatic conversion of false to array is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/settings/settings-sections/class-ld-settings-section-general-rest-api.php on line 52

Deprecated: Creation of dynamic property LearnDash_Settings_Section_General_REST_API::$setting_option_fields_v1 is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/settings/settings-sections/class-ld-settings-section-general-rest-api.php on line 208

Deprecated: Creation of dynamic property LearnDash_Settings_Section_General_REST_API::$setting_option_fields_v2 is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/settings/settings-sections/class-ld-settings-section-general-rest-api.php on line 276

Deprecated: Automatic conversion of false to array is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/settings/class-ld-settings-sections.php on line 796

Deprecated: Automatic conversion of false to array is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/settings/settings-sections/class-ld-settings-section-groups-management-display.php on line 78

Deprecated: Creation of dynamic property SFWD_CPT_Instance::$template_redirect is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/class-ld-cpt-instance.php on line 50

Deprecated: Creation of dynamic property SFWD_CPT_Instance::$template_redirect is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/class-ld-cpt-instance.php on line 50

Deprecated: Creation of dynamic property SFWD_CPT_Instance::$template_redirect is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/class-ld-cpt-instance.php on line 50

Deprecated: Creation of dynamic property SFWD_CPT_Instance::$template_redirect is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/class-ld-cpt-instance.php on line 50

Deprecated: Creation of dynamic property SFWD_CPT_Instance::$template_redirect is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/class-ld-cpt-instance.php on line 50

Deprecated: Creation of dynamic property SFWD_CPT_Instance::$template_redirect is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/class-ld-cpt-instance.php on line 50

Deprecated: Creation of dynamic property SFWD_CPT_Instance::$template_redirect is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/class-ld-cpt-instance.php on line 50

Deprecated: Creation of dynamic property Advanced_Editor_Tools::$toolbar_classic_block is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/tinymce-advanced/tinymce-advanced.php on line 306

Deprecated: Automatic conversion of false to array is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/settings/settings-sections/class-ld-settings-section-quizzes-management-display.php on line 94

Deprecated: Automatic conversion of false to array is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/settings/settings-sections/class-ld-settings-section-quizzes-email-settings.php on line 97

Deprecated: Automatic conversion of false to array is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/settings/settings-sections/class-ld-settings-section-groups-group-leader-user.php on line 59

Deprecated: Automatic conversion of false to array is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/settings/settings-sections/class-ld-settings-section-groups-membership.php on line 74

Deprecated: Automatic conversion of false to array is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/includes/settings/settings-sections/class-ld-settings-section-courses-themes.php on line 66

Deprecated: Automatic conversion of false to array is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-content/plugins/sfwd-lms/themes/ld30/includes/class-ld-settings-section-theme-ld30.php on line 64
[Woo]金流付款”訂單編號重複”,這個情境在綠界、智付通都會發生! – WordPress網站架設線上課程新手教學 – 小訣學院

[Woo]金流付款"訂單編號重複",這個情境在綠界、智付通都會發生!

當綠界金流、智付通付款時,不管是信用卡、超商、ATM等任何一種方式付款出現如下圖的「訂單編號重複」的錯誤時,發生原因可能有數種,但我的滿特殊的...

以下先以綠界為例...

會發現這樣的原因,有可能付款尚未完成前不慎關閉頁面網路不穩瞬斷(特別是海外買家)等等原因所造成...

不過我個人本次發生「訂單編號重複」的原因,卻不是上面列的這些,我這應也算是罕見的案例,

事情是這樣子的:

我有申請綠界金流是沒錯,而且我有二個WordPress網站,這二個WordPress網站都是使用我申請的同一個綠界金流(同一個商店編號)

問題來了,

雖然是兩個不同的網站,可是正因都是使用Woocommerce購物模組,在使用綠界金流交易時產生兩個網站在訂單編號時都是一樣的編碼規則,

所以假設A網站交易時產生了一筆訂單編號是9598,回傳到綠界會寫入綠界後台的交易記錄中,

慢慢的B網站有朝一日也剛好用到訂單編號恰好也是9598,此時9598也會回傳到綠界,也會寫入綠界後台的交易記錄中,此時就會發生有兩筆一樣的9598,

當9598要被編譯成綠界專用的訂單編號格式時,會被編成一模一樣的,當然B網站就會因發生訂單編號一樣而無法用綠界金流交易成功。

原本B網站我翻遍所有Woocommerce訂單編號都找不到第二筆9598,想說不可能會有一樣的編號才對,一直找不出原因,後來才想到原因應是A網站在久遠前已經先使用過9598並寫入綠界了所造成的。

這種情形的發生邏輯,以後不管是使用綠界、紅陽、智付通等各式金流都有可能會發生,只要你「2個網站以上使用同一家金流帳號」,就有朝一日可能會發生的。

解決方式:

當然不可能要求綠界幫你把那筆早期的9598訂單產生的交易編號刪除,只能在目前的B網站改變訂單編碼的方式,這樣B網站重新再交易時就不會發生訂單編號重複的事了。

我的解決方法,

在B網站安裝一支可以修改woocommerce訂單編號格式的外掛,我的需求很簡單,只要在當前訂單編號的格式前面或後面加上一個字母或數字,這樣就不會發生與A網站訂單編號格式(純四碼)一樣的情形了。

B網站安裝好此外掛後,如下圖,我加了一個「n」,這樣所有訂單編號前面都會有n,這樣就能解決與A網站訂單編號重複的問題了。

B網站加上「n」後就能正常使用綠界金流下單了。

另下圖中的9670,是因當前訂單編號是用到9598,我想從9670開始才加上n,但好像設了這想要起始的編號也沒有真的從9670開始,它一樣是從9599繼續算,不知為何...

改完後自己試著下一筆,發現在綠界中新的訂單編號前面也沒有我加的「n」,但在Woocommerce訂單中是有「n」的,

雖不知為何,但是B網站訂單編號重複的問題卻解決了,沒有再跳重複的錯誤出來了,所以我一時也沒有再去細究為何綠界中新的訂單編號前面沒有n了。

這種原因,我相信綠界被反應訂單重覆時,都會往程式串接沒寫好或編碼規則不夠複雜之類的原因去解釋,但這種「二女共侍一夫」的情形,若沒有長期使用Woocommerce並經營多個網站的人,恐怕一時無法發現。

在〈[Woo]金流付款"訂單編號重複",這個情境在綠界、智付通都會發生!〉中有 1 則留言

  1. woocommerce 訂單編號問題:

    安裝了訂單編號外掛, 問題來了, WP後台顯示的是新編號系統, 但綠界顯示的訂單編號是原本woocommerce內訂的編號系統....意思是WP 和綠界兩邊顯示的號碼不同

    回覆

Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/399491.cloudwaysapps.com/nduuntwyqh/public_html/wp-includes/comment-template.php on line 2687

發表留言