wordpress - How Can I Trigger An Email Notification To Purchaser in WP-Ecommerce Using WP-Ecommerce-Shopstyling When An Order Is Submitted? -
i'm trying trigger 2 emails during check out process of wp-ecommerce , have them styled using awesome plugin.
- order submitted - not sending buyer @ moment
- accepted payment - working , styled using "wp-ecommerce-shopstyling"
can me out this? love able have email sent buyer when submit order.
my client takes offline credit card payments, buyer know order sent (and waiting processing), , order paid , being created - shop flower shop.
currently 'accepted payment' step works. submitted step, isn't sending anything. awesome.
cheers, fiona
the email trigger part of wp e-commerce core functionality. shop-styling plugin adds nice formatting existing mail. customers receive email when submit order , change payment status "payment accepted". intended behavior.
you can use hook in themes function.php:
add_action('wpsc_update_purchase_log_status', 'triggerstatuschangemail', 9, 4 ); function triggerstatuschange($id, $status, $old_status, $purchase_log ) { // wpsc_purchase_log::incomplete_sale //= 1; // const order_received = 2; // const accepted_payment = 3; // const job_dispatched = 4; // const closed_order = 5; // const payment_declined = 6; // const refunded = 7; // const refund_pending = 8; if ($status==2){ wp_mail(...); } }
you can use html code in mail content , mail-template applied custom email automatically, cannot use placeholders. if want add customer or order details in mail have query information database.
Comments
Post a Comment