glyndower Posted March 3, 2003 Share Posted March 3, 2003 Fatal error: Call to undefined function: get_content_type() in /catalog/includes/classes/order.php on line 136 When I try to checkout I get the above error message. Any ideas? Link to comment Share on other sites More sharing options...
Ajeh Posted March 4, 2003 Share Posted March 4, 2003 get_content_type is a relatively new function in the /includes/classes/shopping_cart.php You might check the date that this was added and all the files effected by it. Link to comment Share on other sites More sharing options...
Jaguar Posted March 7, 2003 Share Posted March 7, 2003 This is a function that is located in the following area :!: catalog/includes/classes/shopping_cart.php :!: If for some reason you dont' have it--> function get_content_type() { $this->content_type = false; if ( (DOWNLOAD_ENABLED == 'true') && ($this->count_contents() > 0) ) { reset($this->contents); while (list($products_id, ) = each($this->contents)) { if (isset($this->contents[$products_id]['attributes'])) { reset($this->contents[$products_id]['attributes']); while (list(, $value) = each($this->contents[$products_id]['attributes'])) { $virtual_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " pad where pa.products_id = '" . $products_id . "' and pa.options_values_id = '" . $value . "' and pa.products_attributes_id = pad.products_attributes_id"); $virtual_check = tep_db_fetch_array($virtual_check_query); if ($virtual_check['total'] > 0) { switch ($this->content_type) { case 'physical': $this->content_type = 'mixed'; return $this->content_type; break; default: $this->content_type = 'virtual'; break; } } else { switch ($this->content_type) { case 'virtual': $this->content_type = 'mixed'; return $this->content_type; break; default: $this->content_type = 'physical'; break; } } } } 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; } :!: If you are using Ms1 with Quantity Controller 5.1 you WILL need to load this function as Quantity controller 5.1 predates this function that was newly added. :!: Loren The great thing about beating your head against the wall is that it feels SO GOOD when you stop! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.