Hi there,
this is not something that should be done in HD Quiz; this should be done on WooCommerce’s side.
The best way would be to create a hidden page with the quiz. Then you can edit the WooCommerce emails to include a link to the quiz.
You might want to also add a WooCommerce hook that fires off once an order has been confirmed. The best hook is probably the woocommerce_payment_complete
hook. It would look something like this:
function webfactoria_payment_complete( $order_id ){
$order = wc_get_order( $order_id );
// check the order to see if the order contains a course
// if the order contains a course, then you can do several things
// including redirecting to the quiz, or sending a custom follup email with a link
}
add_action( 'woocommerce_payment_complete', 'webfactoria_payment_complete' );