ListMailPRO Email Marketing Software Forums

ListMailPRO Email Marketing Software Forums => Customization, Integration => Topic started by: sanj on September 06, 2007, 06:30:02 am

Title: insertion script
Post 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
Title: insertion script
Post by: DW on September 06, 2007, 09:45:53 pm
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
Title: insertion script
Post by: sanj on September 07, 2007, 05:08:14 am
hi
it's posted in the forum here:
http://listmailpro.com/forum/index.php?topic=1908.0

sanj
Title: insertion script
Post by: DW on September 07, 2007, 05:49:48 am
SanJ,

Did you remember to remove this line?
Code: [Select]
// 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
Code: [Select]
echo "prodid=$prodid<br>";
Regards