Guest Posted March 25, 2008 Posted March 25, 2008 I am in the process of installing SaleMaker and require some coding assistance. I have uploaded the database, the new files and made the changes to all other files and have uploaded them. The file I am having a problem with is the /catalog/includes/classes/shopping_cart.php After uploading it I am getting the following error: Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /usr/www/virtual/mhacorpd/www.adorablyyoulingerie.com/catalog/includes/classes/shopping_cart.php on line 424 I have since replaced the uploaded file with the back-up so the site is working without a problem and all other files are intact. Here is the body of text in the shopping_cart.php file that I believe pertains to the issue. As hard as I have looked I cannot see anything untoward here based, at least, on my limited knowledge of php coding. I have inserted the line number for this purpose only! } else { switch ($this->content_type) { case 'virtual': $this->content_type = 'mixed'; return $this->content_type; break; default: $this->content_type = 'physical'; break; } } } } else { $this->content_type = 'physical'; } return $this->content_type; } function unserialize($broken) { for(reset($broken);$kv=each($broken);) { $key=$kv['key']; if (gettype($this->$key)!="user function") $this->$key=$kv['value']; } } >>>>>LINE 424 } ?> As an afterthought - is there anything I should be looking for with Salemaker in relation to Paypal_IPN which is currently being used? Thank you for your assistance and guidance. DylanO
Guest Posted March 25, 2008 Posted March 25, 2008 It has to be in the changed code somewhere so I am including the code that was replaced. ============================================================== ============ = FIND =================================================================== ========================================================================== $specials_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . $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']; } ========================================================================== = REPLACE THE ABOVE WITH ================================================= ========================================================================== $special_price = tep_get_products_special_price($prid); if ($special_price) { $products_price = $special_price; } ========================================================================== and this ======================================================================= === = FIND =================================================================== ========================================================================== $specials_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . $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']; } ========================================================================== = REPLACE THE ABOVE WITH ================================================= ========================================================================== $special_price = tep_get_products_special_price($prid); if ($special_price) { $products_price = $special_price; } ========================================================================== Any suggestions would be helpful. When these codes are not replaced, the error does not come up so it has to be here somewhere!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.