I am editing one of my shipping modules.
BAsically I am checking to see if someone ordered an item from a category, if they did I need to add $15
I am very close to having it figured out but I have a syntac error I can't figure out.
This code is in my item.php page. When I enter it the shipping page pulls up blank and when I research it this is the error message. I'm not sure what else to put to make it work
here is the error
*************************
[27-Apr-2011 09:41:12] PHP Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/image/public_html/grimmandgorly.com/cart/includes/modules/shipping/item.php on line 131
*****here is the code, line 131 is this one
if ($this->$chk_flowers >0) {'cost' => ('cost' + 15)};
*******************************************
global $cart;
$chk_flowers = $_SESSION['cart']->in_cart_check('master_categories_id','14');
if ($this->$chk_flowers >0) {'cost' => ('cost' + 15)};
thanks
Bookmarks