vishalb
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] I am looking for pending payment hookThank you !!
wasn’t working earlier but it does now, have a loop that runs multiple times, we’ll check that anyways.Thank you for your response ??
Regards,
VishalForum: Plugins
In reply to: [WooCommerce] I am looking for pending payment hookhey michael,
can you please give an example to how to use this hook with a function :
woocommerce_after_order_object_save
That might help us moreIf i don’t use ‘wc_get_order’ then how can i compare the status.
$order = wc_get_order( $order_id );
if( ‘pending’ === $order->get_status() ) {
// code
}Regards,
VishalForum: Plugins
In reply to: [WooCommerce] I am looking for pending payment hookManually I meant was when I change order status manually from processing to pending that works, when an order is created with pending status firstly, it doesn’t work.
Do you have any solution for it?
Forum: Plugins
In reply to: [WooCommerce] I am looking for pending payment hookhey @madeincosmos @riaanknoetze Please reply, we need a fix for this asap
Forum: Plugins
In reply to: [WooCommerce] I am looking for pending payment hookThis is my hook :
add_action(‘woocommerce_after_order_object_save’, ‘custom_export_pending_order_data’, 10, 1);and this is my function :
function custom_export_pending_order_data( $order_id ) {
$order = wc_get_order( $order_id );if( ‘pending’ === $order->get_status() ) {
$order_ids[0] = $order_id;
$this->ExportOrder->push_to_queue($order_ids);
$this->ExportOrder->save()->dispatch();}
}Am I making any errors? Please reply as soon as possible we need that urgently
Forum: Plugins
In reply to: [WooCommerce] I am looking for pending payment hookWe tried with that hook but it doesn’t work ??
Is this hook supported from 3.0 V
Initially when an order is created it doesn’t seem to work, but when we do manually it does, can you suggest something else
Forum: Plugins
In reply to: [WooCommerce] I am looking for pending payment hookwe have created a plugin usin g Quickbooks api, all other statuses work well, but the pending payment status, doesn’t sync automatically.
We have added a hook on order status change which works well, but initially when an order status is pending, the order doesn’t sync.
Could you please let us know which hook we can use, we need it urgently.
Any help will be appreciated.