Continuing Calcualtion issue
I couldn't find the original thread for this (I printed it and the header says t=20502) but it had to do with setting the height and width of a shipping box based on Quantity.
the code (copied from the ProResCart_PHP.php file on line 12 is:
$itmObj->boxheight = abs($itmObj->Quantity==1)?[ItemHeight]=8:[ItemHeight]=14;//i
the formula I entered in the eCart Calculations is:
abs([Quantity]==1)?[ItemHeight]=8:[ItemHeight]=14
Yet every time I try to open any of my pages in a browser I get this error:
Parse error: syntax error, unexpected '[' in /Applications/MAMP/htdocs/ProRes-from-scratch/WA_eCart/ProResCart_PHP.php on line 12
What's going on?