Problem with Woocommerce and transaction registration
-
Hi, I’m writing again because I don’t get any replies to my emails.
How can I update woocommerce transactions with WP Fundraising Donation and Crowdfunding Platform plugin, at the moment if person not go back to woocommerce checkout page then transaction in WP Fundraising Donation and Crowdfunding Platform is not recorded, I don’t know how can I refresh them to progress bar and payments showed the correct values.
At the moment I have 544 payments, of which WP Fundraising Donation and Crowdfunding Platform registered only 211 payments. How to update it and make it work properly? When is an update scheduled. Until the bug is updated, do you have a solution that will allow me to update woocommerce donations to WP Fundraising Donation and Crowdfunding Platform, e.g. via the functions.php code?
Let me know because I don’t know whether to run a business on this plugin, what to give up, I’ve been waiting over a month for an answer.
The problem is getting back to the woocommerce order summary page from the payment gateway page, your plugin is not registering the transaction and not passing information to the WP Fundraising Donation and Crowdfunding Platform plugin.
This code is probably responsible for it.
/** * This invokes when clicked on checkout button........... */ add_action( 'woocommerce_checkout_create_order_line_item', 'wfp_checkout_create_order_line_item', 20, 4 ); add_filter( 'woocommerce_data_stores', 'wfp_woocommerce_data_stores' ); add_filter( 'woocommerce_product_get_price', 'wfp_woocommerce_product_get_price', 10, 2 ); add_action( 'woocommerce_thankyou', 'wfp_woo_callback', 10, 1 ); add_filter( 'woocommerce_add_to_cart_redirect', 'redirect_checkout_add_cart' ); /** * After checkout completed page */ function wfp_woo_callback( $order_id ) { $order = new WC_Order( $order_id ); $order_status = $order->get_status(); $donation_ids = array(); foreach ( $order->get_items() as $item ) { if ( $item->meta_exists( Woc_Conf::MK_DONATION ) ) { $item_total = $item->get_total(); $item_id = $item->get_meta( Woc_Conf::MK_DONATION ); $tmp['total'] = $item_total; $tmp['type'] = $item->get_meta( Woc_Conf::MK_TYPE ); $tmp['pledge'] = $item->get_meta( Woc_Conf::MK_PLEDGE_ID ); $tmp['uuid'] = $item->get_meta( '_wfp_pledge_uid' ); $donation_ids[ $item_id ] = $tmp; } }
- The topic ‘Problem with Woocommerce and transaction registration’ is closed to new replies.