• Resolved NatESkiN

    (@nateskin)


    Hello!

    I’ve created a Shortcode to use in a contract. The problem is the $order_id variable, since it doesn’t give me the last $order_id.

    I tried to force the variable, so it adds up to one more number.

    I used the function that a user put in the following thread: https://wordpress.org/support/topic/please-suggest-any-function-for-getting-order-id/

    You know what that could be?

    The code is as follows:

        $order_id = esig_woo_logic::get_after_checkout_order_id();
    	
        if ( !$order_id ) {
            $docId = ESIG_SIF::get_instance()->esig_document_id();
            $invitation = WP_E_Sig()->invite->getInviteBy( 'document_id', $docId );
            $order_id = get_esig_order_id( $invitation->document_id, $invitation->invitation_id );
        }
    • This topic was modified 6 years, 3 months ago by NatESkiN.
Viewing 1 replies (of 1 total)
  • Plugin Support haleyrodriguez

    (@haleyrodriguez)

    Hey Nate!

    Thanks for your message and sorry for the delay! 😊

    In order to populate the order id into your document, I would recommend using our Redirect to sign after checkout logic along with our {{order_id}} shortcode.

    If you have any additional questions, please send me an email at curious@approveme.com and I’m happy to chat through it with you. (I looked for your email address, but wasn’t able to locate it.)

    Thanks, Nate! Talk soon!

    😊
    Haley Rodriguez
    Customer Happiness Engineer
    ApproveMe

Viewing 1 replies (of 1 total)

The topic ‘get latest $order_id’ is closed to new replies.