ListMailPRO Email Marketing Software Forums
ListMailPRO Email Marketing Software Forums => Customization, Integration => Topic started by: sanj on September 06, 2007, 06:30:02 am
-
hi dean,
you did a custom script for me a few months ago to add customers to lmp from my shopcart.
I've decided to add customers to different list based on what they purchase.
i've activated
// example to change list based on product
if($prodid=='infpa') $list = '3';
elseif($prodid=='book') $list = '3';
else $list = '4';
which was already in the script, but it's not working.the above products are not being added to list 3 but still being added to list 4 instead.
Please help
regards
sanj
-
SanJ,
I'll need to see more code - specifically, the ListMail URL being opened. Was the script posted to the forum? If it contains sensitive info you can email me at dean@...
Regards
-
hi
it's posted in the forum here:
http://listmailpro.com/forum/index.php?topic=1908.0
sanj
-
SanJ,
Did you remember to remove this line?
// just set list to 4
$list = '4';
If you set the list before that line it will be overwritten by it. :)
Also, are you sure $prodid is being set? Try
echo "prodid=$prodid<br>";
Regards