It seems that any time I try to insert any token into the field I get the Parse error: syntax error, unexpected '[' error.
Here is what i've been using:

$item->price = $item->price;
if ($item->qty > 5) {
$item->price = [cost] * 1.1;
}

I have tried using several different tokens including [node:cost] and [product:cost] with no luck at all...thanks for any help in advance.

Comments

BravoDesign’s picture

Below $item->price = $item->price try placing $item->cost = $item->cost

$item->price = $item->price;
$item->cost = $item->cost;
if ($item->qty > 5) {
$item->price = (($item->cost) * 1.1);
}