• Resolved rt32kd

    (@rt32kd)


    When a customer purchases a product and receives the order confirmation e-mail, I want the email to contain a button which passes the order number i.e.

    [Order #1925] (November 24, 2021)

    in a URL parameter. The idea is that this is passed to a form. Does anyone know how this can be achieved? Or is there another mechanism that I am missing?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Stef

    (@serafinnyc)

    You would need to edit the Processing Order form

    Add it to your child theme and edit it there or look online for a hook to add your child theme’s functions.php file.

    If overriding the customer-processing-order.php email template take that from WooCommerce folder and create a folder inside your child theme called “woocommerce”

    Then inside that folder create another one called “emails” and add that default file in there and edit as you need.

    Thread Starter rt32kd

    (@rt32kd)

    Thanks Stef. The question was more about how I extract the order ID from the email and send it along on a button click. Is it a case of adding some JavaScript to the email to extract the Order Id from the page and send it in URL params? Or does Woocommerce provide another way?

    Stef

    (@serafinnyc)

    So a button that brings them somewhere? The customer? WooCommerce doesn’t provide anything like this out of the box.

    Do you have an example perhaps of what you’re wanting?

    Hi @rt32kd

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add button in purchase confirmation e-mail to send ‘order id’ as URL parameter’ is closed to new replies.