Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

woocommerce #55

Open
ghost opened this issue Aug 18, 2017 · 2 comments
Open

woocommerce #55

ghost opened this issue Aug 18, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 18, 2017

How would I use this with woocommerce digital downloads?

@YahnisElsts
Copy link
Owner

I'm not sufficiently familiar with WooCommerce to answer that question.

@mattiasghodsian
Copy link

mattiasghodsian commented Sep 1, 2017

i would recommend you to generate a key and a link for your customers to download the software to the server holding the files when the order is payed and completed.

Send the key and link by email or add it as comment on the order.

function mysite_woocommerce_order_status_completed( $order_id ) {
    // Order complete for order $order_id
   // Get order items and generate something 
}
add_action( 'woocommerce_order_status_completed', 'mysite_woocommerce_order_status_completed', 10, 1 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants