wp-update-server icon indicating copy to clipboard operation
wp-update-server copied to clipboard

woocommerce

Open ghost opened this issue 8 years ago • 2 comments

How would I use this with woocommerce digital downloads?

ghost avatar Aug 18 '17 00:08 ghost

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

YahnisElsts avatar Aug 19 '17 18:08 YahnisElsts

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 );

mattiasghodsian avatar Sep 01 '17 11:09 mattiasghodsian