You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 );
How would I use this with woocommerce digital downloads?
The text was updated successfully, but these errors were encountered: