Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP - Parse error: parse error, unexpected T_DOUB


bk_xplorer

Recommended Posts

Posted

Please help, I have just installed tax exempt and organization discounts version-1.3. When I try to go to my store front... books.juillards.com I get the following errors.

 

Parse error: parse error, unexpected T_DOUBLE_ARROW in /home/virtual/site49/fst/var/www/html/books.juillards.com/includes/classes/shopping_cart.php on line 373

 

Warning: Cannot send session cookie - headers already sent by (output started at /home/virtual/site49/fst/var/www/html/books.juillards.com/includes/classes/shopping_cart.php:373) in /home/virtual/site49/fst/var/www/html/books.juillards.com/includes/functions/sessions.php on line 67

 

Warning: Cannot send session cache limiter - headers already sent (output started at /home/virtual/site49/fst/var/www/html/books.juillards.com/includes/classes/shopping_cart.php:373) in /home/virtual/site49/fst/var/www/html/books.juillards.com/includes/functions/sessions.php on line 67

 

Fatal error: Cannot instantiate non-existent class: shoppingcart in /home/virtual/site49/fst/var/www/html/books.juillards.com/includes/application_top.php on line 253

 

Can anyone help me solve this as I am pretty much a newbie to this OSCommerce. The code is here below:

 

$specials_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$prid . "' and status = '1'");

if (tep_db_num_rows($specials_query)) {

$specials = tep_db_fetch_array($specials_query);

$products_price = $specials['specials_new_products_price'];

}

 

$products_array[] = array('id' => $products_id,

'name' => $products['products_name'],

'model' => $products['products_model'],

'image' => $products['products_image'],

'price' => $products_price,

'quantity' => $this->contents[$products_id]['qty'],

'weight' => $products['products_weight'],

'final_price' => ($products_price + $this->attributes_price($products_id)),

'tax_class_id' => $products['products_tax_class_id'],

// BEGIN - Tax Exempt and Organization Discounts

// old 'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));

'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));

(LINE 373) 'eligible_discounts' => $products_eligible_discounts,

'education_discount' => $products_education_discount,

'government_discount' => $products_government_discount,

'gsa_pricing' => $products_gsa_pricing);

// END - Tax Exempt and Organization Discounts

 

Thank you in advance for your help!

 

bk_xplorer

Posted

Try changing

 

'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));

 

to

 

'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''),

 

Tom

Posted

Backup...Backup...Backup

Change:

// BEGIN - Tax Exempt and Organization Discounts
// old 'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));
'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));

To:

// BEGIN - Tax Exempt and Organization Discounts
// old 'attributes' => (isset($this->contents[$products_id]['attributes']) ? //$this->contents[$products_id]['attributes'] : ''));
'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));

Hope this helps!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...