Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
How to get the order number after submitting the "buy in 1 click" form

I have a 1-click purchase plugin for wordpress. When a client enters a name and email, an order is created in the admin panel. How to display the order number for client in a modal window after placing an order? I have a code that creates an order. It generates an order number after submitting the form. I don't understand how to catch him.

$order = wc_create_order();

        do_action( 'awooc_after_created_order', $product_id, $order, $address, $product_qty );

        $this->add_order( $order, $product_id, $product_qty, $address );

        $this->change_subject( $contact_form, $order );

        do_action( 'awooc_after_mail_send', $product_id, $order->get_id() );
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!