Thread tagged as: Shop

Different email depending on payment gateway?

I am offering two different payment options in my online shop: manual (bank transfer) and PayPal.

I would like to send two different "order created" emails, depending on the gateway chosen. I can see there is a place to create some new statuses in the admin area, and I can then make up new emails that link to that status, but how/where do these emails get triggered? I can't find any place where this is defined.

Alan Coggins

Alan Coggins 0 points

  • 2 years ago

I may have the answer. I trawled back through past posts in the forum and I found a mention of someone setting the status in the perch_shop_checkout() function using 'status' => 'manual_order' . So it looks like this might be an option.