alphadesigndev
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Display reports based off date_completed, not date_createdAny insights?
Forum: Plugins
In reply to: [Minimum Age for WooCommerce] Change location in checkoutThank you!
Forum: Plugins
In reply to: [WooCommerce] Prevent orders from processing automaticallyWith the original function, the order goes through the following process:
1) Order received – status set to Payment Pending
2) status changes from Payment Pending to Processing (for only a moment)
3) status changes from Processing to On HoldStep 2 is causing confusion with our customers because they receive an email saying their order is ready for pickup before they receive the order received (On Hold) email.
Forum: Plugins
In reply to: [WooCommerce] Prevent orders from processing automaticallyI corrected the slug but the order still goes to Processing before being changed back to On Hold. This creates a problem because the temporary Processing status triggers our order processing email to be sent. This email notifies the customer that their order is ready for pickup when it has only been received. Can we adjust the function I provided previously to prevent this intermediate step?
I was able to prevent this from happening with Cash on Delivery orders using the following function:
// change COD payment method order status from processing to on-hold
add_filter( ‘woocommerce_cod_process_payment_order_status’,’change_cod_payment_order_status’, 10, 2 );
function change_cod_payment_order_status( $order_status, $order ) {
return ‘on-hold’;
}Is it possible to adapt this to my Elavon CC gateway or to have it apply to ALL orders/payment gateways?