• Resolved Ebbets

    (@ebbets)


    I am looking for an answer as to what product to use.

    We are selling a physical product through POD (Printful), and we want to add a “Free download” with every purchase however the purchaser would have the option of what download they would get.

    The downloads would also be available to purchase independently.

    I was wondering if each purchase could generate a unique key or coupon code that allows them a one-time purchase of a download.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @ebbets! How are you?

    If I understood you correctly, you’re trying to bundle some products (physical and virtual goods), or assembly them together, isn’t it?

    If so, you can check the extension below that comes in handy when working with products:

    https://woocommerce.com/products/product-bundles/

    I was wondering if each purchase could generate a unique key or coupon code that allows them a one-time purchase of a download.

    Programatically, WooCommerce generates a unique order ID, you may need to check its status and then apply your code to it!
    You can also use the woocommerce_thankyou hook or, which I recommend, the woocommerce_payment_complete hook!

    For unique coupons, I found the article below that may help you creating it:

    https://www.tychesoftwares.com/how-to-create-unique-coupon-codes-in-woocommerce-programmatically/

    There are also a few plugins that, automatically, create unique coupons! Try searching for “unique coupons” on the WordPress repo!

    Let us know how it goes or if you have questions! All the best!

    Hi @ebbets

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Grouped Products’ is closed to new replies.