Sending email based on product bought
Hi
I have modified code to send an email specific to the category of the item purchased.
at the moment is have just set up 3 categories and change the code in the UE code from
$EmailRef = "waue_checkout_success_1";
To
if ($CHG_cart->DisplayInfo("category") == 1) {
$EmailRef = "waue_checkout_success_1";
} else
if ($CHG_cart->DisplayInfo("category") == 2) {
$EmailRef = "waue_checkout_success_2";
} else
if ($CHG_cart->DisplayInfo("category") == 3) {
$EmailRef = "waue_checkout_success_3";
} ;
but this is sending 3 email instead of just one based on the category purchased.
Is this possible or am I just running round in circles?
Andy