Anethre fix if you have zero shipping

kensystem's picture
Offline
Joined: 01/20/2010
Juice: 2
Anethre fix if you have zero shipping

I had zero shipping and the XML send to the gateway has 'f' for the shipping value (I know this form the log file) when it should be zero ('f' presuably is first char of "free", and I had a "free" shipping item that triggered this error). Had to modify the line in class.linkpoint_api.php from
$xml .= "" . $pdata["shipping"] . ""

to:
$xml .= "" . ($pdata["shipping"]=='f'?'0':$pdata["shipping"]) . ""

Note this should also work for zencart and oscommerce...

Linkpoint API Payment Module By: Nick (52 replies) Sun, 09/30/2007 - 14:02