It may be a problem with the trigger if you have changed the button name.
The code that should build the filter is:
$WADbSearch1->addComparisonFromList("pn","addtocart","AND","=",0);
maybe add:
die("filter: ".$WADbSearch1->whereClause);
after that line and see A if it is called and B what the where clause it thinks it should use is.