Author Topic: insertion script  (Read 4244 times)

sanj

  • Posts: 54
    • View Profile
insertion script
« 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
Magnetic Therapy Natural Pain Relief for Arthritis, Back Pain and More... at http://www.worldofmagnets.co.uk

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
insertion script
« Reply #1 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
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

sanj

  • Posts: 54
    • View Profile
insertion script
« Reply #2 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
Magnetic Therapy Natural Pain Relief for Arthritis, Back Pain and More... at http://www.worldofmagnets.co.uk

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
insertion script
« Reply #3 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
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting