Forum Replies Created
-
AuthorPosts
-
ricardpanadesParticipant
Hello,
I found it for myself 😀
But now i was trying display the event name on the woocommerce “order complete” email. Please i need the code it as soon as posible.Thanks
ricardpanadesParticipantHello Barry,
I was customizing the woocommerce bill and i want don’t send any ticket attached.
Can i disable the ticket’s attachment?
I can edit the code 😉Thanks
ricardpanadesParticipantOk, thanks for all i will stay patient 😉
ricardpanadesParticipantHi “Stranger” XD
Here is the solution that i found after a little hours for me and it will work for you now 😀 :
// ——— Autocomplete ——–
function mysite_hold($order_id) {
$order = new WC_Order( $order_id );
$order->update_status( ‘completed’ );
}
function mystie_processing($order_id) {
$order = new WC_Order( $order_id );
$order->update_status( ‘completed’ );
}
add_action( ‘woocommerce_order_status_on-hold’, ‘mysite_hold’);
add_action( ‘woocommerce_order_status_processing’, ‘mysite_processing’);Only copy and paste this code on you functions.php and all the orders will autocomplete and send the tickets.
I do it with my current project (hhtp://ilcircoitaliano.com) and works very well.
-
AuthorPosts