ricardpanades

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Only send 10 tickets on the attached PDF #41418
    ricardpanades
    Participant

    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

    in reply to: Only send 10 tickets on the attached PDF #41393
    ricardpanades
    Participant

    Hello 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

    in reply to: Only send 10 tickets on the attached PDF #32061
    ricardpanades
    Participant

    Ok, thanks for all i will stay patient 😉

    in reply to: Automatic Order Processing #32060
    ricardpanades
    Participant

    Hi “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.

Viewing 4 posts - 1 through 4 (of 4 total)