Parse error - unexpected '['
After setting up my product page, I get the following error message:
Parse error: syntax error, unexpected '[' in /home/sites/************.co.uk/public_html/WA_eCart/eCartblush_PHP.php on line 10
I've looked at it over & over again, but I can't see where the problem lies. The product has 3 optional extras which will incur additional charges & as far as I can tell from the guides, the calculation is right. But I'm probably missing something very obvious!
Here is my code:
//start node
function ResetCalculations($itmObj) {
$itmObj->TotalWeight = $itmObj->Weight * $itmObj->Quantity;//w
$itmObj->TotalPrice = ($itmObj->Price + [sizePriceInc] + [AddonPriceInc] + [delPriceInc]) * $itmObj->Quantity;//c
$itmObj->FullDetails = $itmObj->Quantity . ' ' . $itmObj->Name . ' (' . $itmObj->ID . ')';//t
$itmObj->truePrice = $itmObj->Price + [sizePriceInc] + $itmObj->AddonPriceInc + [delPriceInc];//c
return $itmObj;
}
//end node
Can someone shed some light on this error?
Thanks