3.4.3 kills woocommerce stripe gateway

Theme and Plugin Support

3.4.3 kills woocommerce stripe gateway Resolved

Viewing 31 reply threads
  • Author
    Posts
    • #76151
      eastanglian
      Participant

      I’m currently running Marketplace version 3.4.2 and all is fine. When I click on the update from wordpress plugins page and update to version 3.4.3 it kills the site. You can add products ok into the cart and goto the checkout without any issues. You can then enter all your details and then card details (via Woocommerce Stripe Gateway) in the Stripe box and click purchase. The page scrolls to the top of the screen with a red “!” in a circle like something is wrong but doesn’t say what. If I check the wordpress admin, the order has gone through and the customer has been charged…. but as far as the customer can see they are still on the checkout page with the “!” mark saying something is wrong. They try again and it charges their card again and places a second order.. but still keeps them at the checkout screen. If I rollback the Marketplace to version 3.4.2 it works fine, so it has to do with the update somewhere.

    • #76168

      @eastanglian, after hearing from you, we did a test keeping updated WC Marketplace, WooCommerce, and WooCommerce Stripe.

      As you can see here, we didn’t face any issue: https://www.loom.com/share/6d5470d11ef1488eb8cf2e291e393a9b

      So, it seems like some other plugin might be causing a conflict issue. Just to be sure, disable all the plugin except WooCommerce and WC Marketplace for testing purposes and check again. If the issue still exists, please switch to some default theme like Twenty Sixteen and check again.

    • #76171
      eastanglian
      Participant

      I can reproduce every time I update it.. Is their anyway to turn on full logging for wordpress? That way I can see what the “!” mark is at the top of the checkout. Thanks.

    • #76200

      @eastanglian, please check the console of the browser and see if there is any error?

      Alternatively, share a temporary admin and ftp access, so we can check.

    • #76241
      eastanglian
      Participant
      This reply has been marked as private.
    • #76301
      This reply has been marked as private.
    • #76303
      eastanglian
      Participant
      This reply has been marked as private.
    • #76313
      This reply has been marked as private.
    • #76314
      eastanglian
      Participant
      This reply has been marked as private.
    • #76315
      eastanglian
      Participant
      This reply has been marked as private.
    • #76316
      This reply has been marked as private.
    • #76380
      eastanglian
      Participant
      This reply has been marked as private.
    • #76381
      eastanglian
      Participant
      This reply has been marked as private.
    • #76588
      This reply has been marked as private.
    • #77417
      eastanglian
      Participant

      It seems the Woocommerce Auto Complete plugin breaks when upgrading to your new update… Not sure how to find out as it only stops working when WCMP is updated. I will try and find another plugin that does that auto completes orders otherwise I cannot update your plugin.

    • #77431
      eastanglian
      Participant

      I have purchased the official Woocommerce Order Status Control plugin. It too crashes when updating your plugin, the woocommerce plugin is their plugin and fully tested, something with your update breaks wordpress. I can provide the woocommerce plugin if you need for testing to find the bug.

      Dean.

    • #77432
      eastanglian
      Participant

      There was some code that I could use in the functions.php file to update the orders to completed once payment was received, the code is below. The code below also breaks when using the updated WCMP plugin.

      add_action( ‘woocommerce_payment_complete_order_status’, ‘wc_auto_complete_paid_order’, 10, 3 );
      function wc_auto_complete_paid_order( $status, $order_id, $order ) {
      return ‘completed’;
      }

    • #77438

      @eastanglian, I am using this code, which will mark the order complete, when the order status processing :

      add_action('woocommerce_order_status_changed', 'auto_complete_by_payment_method');
      
      function auto_complete_by_payment_method($order_id)
      {
      if ( ! $order_id ) {
      return;
      }
      global $product;
      $order = wc_get_order( $order_id );
      if ($order->data['status'] == 'processing') {
      $order->update_status( 'completed' );
      }
      }
      Copy

      p.s. this code will not work for bank transfer / cod

      As you can see, we didn’t face any such issue: https://www.loom.com/share/3f84d516f163497da735f5b0e4299e29

    • #77456
      eastanglian
      Participant

      When I add that to my functions.php file it does not work. Would you be able to have a look at it? I use your autocomplete sub orders fine and other bits. I will post a copy of the file below.

      Thanks,
      Dean.

    • #77457
      eastanglian
      Participant
      This reply has been marked as private.
    • #77458
      eastanglian
      Participant
      This reply has been marked as private.
    • #77459
      eastanglian
      Participant
      This reply has been marked as private.
    • #77466
      This reply has been marked as private.
    • #77467
      eastanglian
      Participant
      This reply has been marked as private.
    • #77514
      This reply has been marked as private.
    • #77523
      eastanglian
      Participant
      This reply has been marked as private.
    • #77531
      This reply has been marked as private.
    • #77830

      @eastanglian, we have added the fix in your site. Please check and confirm.

    • #77897
      eastanglian
      Participant

      Hi,
      Yes thanks that it now working.. Can you confirm the only change is to your sub-order code. I can then change on the live site and update the plugin.

      $suborder_details = $WCMp->order->get_suborders($order_id);
      is changed to:
      $suborder_details = get_wcmp_suborders($order_id);

    • #77899

      yes @eastanglian, the only modification we have done for this sub-order code.

    • #95088
      sreya
      Moderator

      I presume this issue has been resolved, so I am closing this thread.

      If you need any further help, please do open another thread.

    • #95091
      sreya
      Moderator

      I presume this issue has been resolved, so I am closing this thread.

      If you need any further help, please do open another thread.

Viewing 31 reply threads

The topic ‘3.4.3 kills woocommerce stripe gateway’ is closed to new replies.

COVID-19 Outbreak: WCMp team is supporting business affected by coronavirus

Read the Message Buy at Slashed Price