Active
Project:
Ubercart Custom Price
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
30 Oct 2012 at 20:00 UTC
Updated:
25 Sep 2013 at 21:32 UTC
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
Comment #1
BravoDesign commentedBelow $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);
}