• Resolved ellenic

    (@ellenic)


    Hi everyone, I apologize for the bad English.
    I am supposed to create a downloadable product which is really a ticket.
    So I was thinking of setting up, on the product page, a .php file as a file that generates an image of the ticket containing the buyer’s information.
    To do this I would need that upon clicking the download button some parameter (such as the order number) would also be passed to the file in order to proceed with the generation of the ticket.
    How could I do this?
    Thanks to all.

Viewing 1 replies (of 1 total)
  • Saif

    (@babylon1999)

    Hello @ellenic,

    To do this I would need that upon clicking the download button some parameter (such as the order number) would also be passed to the file in order to proceed with the generation of the ticket.

    You can check one of these hooks to be triggered when the button is clicked.

    I think it would be easier to create a custom button on the thank-you page that redirects users to a custom WordPress page and pass the order key in the URL.

    Then, on the custom WordPress page, you can create a shortcode and use $_GET[] retrieve order key values from the URL and then, pass its value to the shortcode to display the ticket.

    I should note the above is just a suggestion which may or not work in your case, also customizations in general are not within our scope of support so it would be better if you consult with a WooExpert.

    Furthermore, instead of reinventing the wheel, how about you check the Tickets for WooCommerce extension? :?)

    All extensions sold on WooCommerce.com have a 30-day refund policy. If the product doesn’t work the way you need it or you think another product would work better, we are more than happy to provide a full refund.

    Let us know if you have any other questions.

Viewing 1 replies (of 1 total)
  • The topic ‘Product file different or with parameters for different user’ is closed to new replies.