Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Manual checkout to send-out Purchase Email › Reply To: Manual checkout to send-out Purchase Email
It’s better to use the forum for any Tips and Tricks HQ premium products (I get too many comments from all posts of my blog and it can easily get lost).
I understand your requirement and yes it can be done. I am going to give you some guidelines here on how you can do it.
In the “eStore_process_payment_data.php” file look at the “submit_to_manual” function and there is a loop that loops through the items and puts the item details to a string so it can be added to the body of the email later.
in side this loop you can add the following bit of code to generate the download link:
$id=$item;
$product_name = $item;
global $wpdb;
$products_table_name = $wpdb->prefix . “wp_eStore_tbl”;
$retrieved_product = $wpdb->get_row(“SELECT * FROM $products_table_name WHERE id = ‘$id'”, OBJECT);
$download_link = generate_download_link($retrieved_product,$product_name);
The variable “$download_link” will have the encrypted link which you can add to the email body so the customer gets it in the email.