• Hello everyone,

    When ordering by “Cash On Delivery” method, the order status is set to “Completed” right after it is set to the default status “Processing”. I don’t have any plugins that manipulates order statuses so this is a weird behavior for me. When looking at the order notes here is what I see:

    Order status changed from Processing to Completed.
    June 20, 2020 at 10:43 PM Delete note
    
    Payment to be made upon delivery. 
    Order status changed from Pending payment to Processing.

    How can I fix this?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @wazab!

    This is indeed strange as the default status for COD based orders should be processing.

    I don’t have any plugins that manipulates order statuses so this is a weird behavior for me.

    It could still be another plugin, or even your theme.

    With that said, can you please paste your sites’ status report back here so we can take a closer look at what your current setup looks like?

    Cheers!

    Thread Starter wazab

    (@wazab)

    Hi,

    Sure but it there a way to share it privately for security reasons?

    Thanks

    • This reply was modified 5 years, 11 months ago by wazab. Reason: Typo
    Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    You could remove the site address from the System status before pasting it in your reply.

    Thread Starter wazab

    (@wazab)

    Ok, here is the status:

    WooCommerce version: 4.2.0
    WooCommerce REST API package: 1.0.8 /home/customer/www/site.com/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api
    WooCommerce Blocks package: 2.5.16 /home/customer/www/site.com/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/
    Action Scheduler package: 3.1.6 /home/customer/www/site.com/public_html/wp-content/plugins/woocommerce/packages/action-scheduler
    WooCommerce Admin package: 1.2.3 /home/customer/www/site.com/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin
    Log directory writable: /home/customer/www/site.com/public_html/wp-content/uploads/wc-logs/
    WordPress version: 5.4.2
    WordPress multisite: –
    WordPress memory limit: 768 MB
    WordPress debug mode: –
    WordPress cron:
    Language: en_US
    External object cache:
    Server environment
    Server info: Apache
    PHP version: 7.3.18
    PHP post max size: 128 MB
    PHP time limit: 0
    PHP max input vars: 3000
    cURL version: 7.66.0, OpenSSL/1.1.1g-fips
    SUHOSIN installed: –
    MySQL version: 5.7.25-28-log
    Max upload size: 128 MB
    Default timezone is UTC:
    fsockopen/cURL:
    SoapClient:
    DOMDocument:
    GZip:
    Multibyte string:
    Remote post:
    Remote get:

    Database
    WooCommerce database version: 4.2.0
    Database prefix fax_
    Total Database Size 33.36MB
    Database Data Size 23.54MB
    Database Index Size 9.82MB
    fax_woocommerce_sessions Data: 2.02MB + Index: 0.02MB + Engine InnoDB
    fax_woocommerce_api_keys Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_woocommerce_attribute_taxonomies Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_woocommerce_downloadable_product_permissions Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    fax_woocommerce_order_items Data: 0.09MB + Index: 0.05MB + Engine InnoDB
    fax_woocommerce_order_itemmeta Data: 1.52MB + Index: 0.48MB + Engine InnoDB
    fax_woocommerce_tax_rates Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    fax_woocommerce_tax_rate_locations Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_woocommerce_shipping_zones Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fax_woocommerce_shipping_zone_locations Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_woocommerce_shipping_zone_methods Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fax_woocommerce_payment_tokens Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_woocommerce_payment_tokenmeta Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_woocommerce_log Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_accept_cards_token Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_actionscheduler_actions Data: 1.50MB + Index: 1.28MB + Engine InnoDB
    fax_actionscheduler_claims Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_actionscheduler_groups Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_actionscheduler_logs Data: 1.50MB + Index: 0.45MB + Engine InnoDB
    fax_commentmeta Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_comments Data: 0.22MB + Index: 0.13MB + Engine InnoDB
    fax_links Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_mailchimp_carts Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    fax_mailchimp_jobs Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fax_options Data: 4.08MB + Index: 0.20MB + Engine InnoDB
    fax_pmxe_exports Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fax_pmxe_google_cats Data: 0.39MB + Index: 0.00MB + Engine InnoDB
    fax_pmxe_posts Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fax_pmxe_templates Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fax_postmeta Data: 4.34MB + Index: 4.97MB + Engine InnoDB
    fax_posts Data: 6.25MB + Index: 0.56MB + Engine InnoDB
    fax_ppc_exceptions Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    fax_ppc_exception_items Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_ppc_roles Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_ppi_errors Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_ppi_imported Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_ppi_runs Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_pp_groups Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_pp_group_members Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    fax_social_users Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_termmeta Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_terms Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_term_relationships Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    fax_term_taxonomy Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_usermeta Data: 0.13MB + Index: 0.09MB + Engine InnoDB
    fax_users Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    fax_wc_admin_notes Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fax_wc_admin_note_actions Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_wc_category_lookup Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fax_wc_customer_lookup Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_wc_download_log Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_wc_order_coupon_lookup Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_wc_order_product_lookup Data: 0.05MB + Index: 0.06MB + Engine InnoDB
    fax_wc_order_stats Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    fax_wc_order_tax_lookup Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_wc_product_meta_lookup Data: 0.19MB + Index: 0.33MB + Engine InnoDB
    fax_wc_tax_rate_classes Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_wc_webhooks Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_woo_shippment_provider Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fax_woo_wallet_transactions Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fax_woo_wallet_transaction_meta Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fax_wpforms_tasks_meta Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fax_yith_wcwl Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    fax_yith_wcwl_lists Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    Post Type Counts
    attachment 425
    blocks 5
    custom_css 2
    customize_changeset 40
    elementor_library 1
    jp_img_sitemap 1
    jp_sitemap 1
    jp_sitemap_master 1
    mc4wp-form 1
    nav_menu_item 34
    ni-order-status 2
    page 18
    pluginops_forms 1
    post 10
    product 165
    product_variation 1611
    revision 423
    shop_coupon 2
    shop_order 383
    shop_order_refund 4
    wpcf7_contact_form 5
    wpforms 1

    Hi @wazab,

    Thanks for posting the status report! I am not seeing the plugins area though – just the server information. Can you post the plugins section of the status report? It should not reveal too much of the site itself.

    Also, are any of the product virtual? The COD gateway does have a checkbox for accepting virtual products and if the product is virtual then by default WooCommerce would mark it as complete.

    If that is not the case, let us know 🙂

    Thread Starter wazab

    (@wazab)

    Hi Mike,

    Sure, here it is:

    Active plugins (33)
    WP Hide & Security Enhancer by Nsp Code – 1.6
    Admin Menu Editor by Janis Elsts – 1.9.5
    Adminimize by Frank Bültge – 1.11.6
    Aramex Shipping WooCommerce by aramex.com – 1.0.0 – Installed version not tested with active version of WooCommerce 4.2.0
    Change wp-admin login by Nuno Morais Sarmento – 1.0.0
    Contact Form 7 Extension For Mailchimp by Renzo Johnson – 0.5.20
    Contact Form 7 by Takayuki Miyoshi – 5.1.9
    Cowpay – WooCommerce Gateway by Cowpay – 56.0 – Installed version not tested with active version of WooCommerce 4.2.0
    Custom Fonts by Brainstorm Force – 1.2.1
    Hide My WP Ghost Lite by WPPlugins – WordPress Security Plugins – 4.0.03
    If Menu – Visibility control for menu items by Layered – 0.16.1
    Jetpack by WordPress.com by Automattic – 8.6.1
    HubSpot All-In-One Marketing – Forms, Popups, Live Chat by HubSpot – 7.33.3
    Mailchimp for WooCommerce by Mailchimp – 2.4.0 – Installed version not tested with active version of WooCommerce 4.2.0
    MC4WP: Mailchimp for WordPress by ibericode – 4.7.8
    PluginOps Optin Builder by PluginOps – 4.0.6.4
    Ni WooCommerce Custom Order Status by anzia – 1.8.6
    Google Fonts Typography by Fonts Plugin – 2.0.5
    Reveal IDs by Oliver Schlöbe – 1.5.4
    SG Optimizer by SiteGround – 5.5.5
    Shortcode in Menus by Gagan Deep Singh – 3.5
    Simple Page Ordering by Jake Goldman, 10up – 2.3.4
    Use Any Font by Dinesh Karki – 5.11
    WooCommerce Vapulus Gateway by Vapulus – 1.1
    TeraWallet by WCBeginner – 1.3.15 – Installed version not tested with active version of WooCommerce 4.2.0
    White Label CMS by http://www.videousermanuals.com – 2.2
    WooCommerce Accept Payments by Accept – 5.4.4 – Installed version not tested with active version of WooCommerce 4.2.0
    Advanced Order Export For WooCommerce by AlgolPlus – 3.1.4 – Installed version not tested with active version of WooCommerce 4.2.0
    WooCommerce Product SKU Generator by SkyVerge – 2.4.5 – Installed version not tested with active version of WooCommerce 4.2.0
    WooCommerce by Automattic – 4.2.0 (update to version 4.2.2 is available)
    WooSidebars by WooCommerce – 1.4.5
    WP All Export by Soflyy – 1.2.6
    YITH WooCommerce Wishlist by YITH – 3.0.11
    Inactive plugins (24)
    Advanced Shipment Tracking for WooCommerce by zorem – 2.9.9.6 – Installed version not tested with active version of WooCommerce 4.2.0
    CF Page or Post Duplicator by Carlos Fazenda – 1.1
    Checkout Field Editor for WooCommerce by ThemeHigh – 1.4.2 – Installed version not tested with active version of WooCommerce 4.2.0
    Disable Gutenberg by Jeff Starr – 2.1
    Elementor by Elementor.com – 2.9.11
    Essential Addons for Elementor by WPDeveloper – 4.0.3 – Installed version not tested with active version of WooCommerce 4.2.0
    Flexible Checkout Fields by WP Desk – 2.4.11
    GoWP WooCommerce Variations Apply All by GoWP – 1.0.3 – Installed version not tested with active version of WooCommerce 4.2.0
    Hide My WP Lite by wpWave – 1.0.1
    Nextend Social Login by Nextendweb – 3.0.24
    Orbit Fox Companion by Themeisle – 2.9.9
    Page List Widget by nigauri – 1.3.0
    PWA for WP by Magazine3 – 1.7.16
    Regenerate Thumbnails by Alex Mills (Viper007Bond) – 3.1.3
    Super Progressive Web Apps by SuperPWA – 2.1
    TinyMCE Advanced by Andrew Ozz – 5.4.0
    User Role Editor by Vladimir Garagulya – 4.55.1
    Variations Generator & Mass Edit for WooCommerce by Hesco – 2.0.1 – Installed version not tested with active version of WooCommerce 4.2.0
    WooCommerce Blocks by Automattic – 2.7.0
    WooHero by N-Media – 3.1 – Installed version not tested with active version of WooCommerce 4.2.0
    WordPress Importer by wordpressdotorg – 0.7
    WordPress Starter by SiteGround – 1.1.1
    WPForms Lite by WPForms – 1.6.0.2
    YITH WooCommerce Order Tracking by YITH – 1.2.16
    Dropin Plugins (1)
    object-cache.php Memcached
    Must Use Plugins (1)
    wp-hide-loader.php by –
    Settings
    API enabled:
    Force SSL: –
    Currency EGP (EGP)
    Currency position right_space
    Thousand separator ,
    Decimal separator .
    Number of decimals 2
    Taxonomies: Product types external (external), grouped (grouped), simple (simple), variable (variable)
    Taxonomies: Product visibility exclude-from-catalog (exclude-from-catalog), exclude-from-search (exclude-from-search), featured (featured), outofstock (outofstock), rated-1 (rated-1), rated-2 (rated-2), rated-3 (rated-3), rated-4 (rated-4), rated-5 (rated-5)
    Connected to WooCommerce.com: –
    WooCommerce pages
    Shop base: #53 – /shop/
    Cart: #54 – /cart/
    Checkout: #55 – /checkout/
    My account: #56 – /my-account/
    Terms and conditions: #948 – /terms-conditions/
    Theme
    Name:
    Version: (update to version 0 is available)
    Author URL:
    Child theme:
    Parent theme name:
    Parent theme version: – 0 is available
    Parent theme author URL:
    WooCommerce support:

    Thread Starter wazab

    (@wazab)

    Hi,

    Thanks to update the thread with your suggestion.

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    HI @wazab

    If the product is not Virtual and Downloadable, typically issues like this are caused by a theme or plugin conflict.

    As a first step, try switching back to a default theme like Twenty Twenty and disabling all plugins except for WooCommerce to see if this resolves the issue. Here is a link that better outlines that process:

    https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    If this fixes the issue, then re-enable each plugin one at a time, then the theme, until you find the one that’s causing the conflict.

    Thread Starter wazab

    (@wazab)

    Hi again,

    Since this is live e-commerce site, switching themes and disabling plugins is not feasible. I was hoping to find a less disruptive method to identify what is causing this issue.

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

The topic ‘COD Payment sets order status to “completed”’ is closed to new replies.