Getting this error when someone gets to the check out page after selecting an item and signing in.
Have had a look at the code in this area of the cart.php my programming skills are starting to get better and from what i can tell there isn't any need for a { anywhere.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SV1; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; InfoPath.2; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; AskTbUT2V5/5.8.0.12304)
Timestamp: Fri, 25 Jun 2010 07:58:48 UTC
Message: Expected '{'
Line: 305
Char: 15
Code: 0
URI:
https://www.#########.com.au/###/cart.php?mode=checkout®istered=&keep_https=yes
Message: Expected '{'
Line: 314
Char: 15
Code: 0
URI:
https://www.##########.com.au/###/cart.php?mode=checkout®istered=&keep_https=yes
// LINES 303 to 330 of cart.php
# Recalculate cart totals after new item added
$products = func_products_in_cart($cart, (!empty($user_account["membershipid"]) ? $user_account["membershipid"] : ""));
$cart = func_array_merge($cart, func_calculate($cart, $products, $login, $current_area, 0));
if ($active_modules["Special_Offers"]) {
include $xcart_dir."/modules/Special_Offers/add_free_products.php";
}
if ($_GET["redirect_to_referer"] === "Y")
func_header_location($HTTP_REFERER . "&redirect_from_cart=Y");
$func_is_cart_empty = func_is_cart_empty($cart);
func_register_ajax_message(
'cartChanged',
array(
'changes' => array(
$result['productindex'] => array(
'productid' => $add_product["productid"],
'quantity' => $result['quantity'],
'changed' => $result['changed']
)
),
'isEmpty' => empty($cart['products']) && empty($cart['giftcerts']),
'status' => $result['status']
)
);