Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

checkout_shipping.php error


Guest

Recommended Posts

I am getting a fatal error when checking out. I think I know what the problem is but I don't know how to fix it.

 

It is looking to collect all methods of shipping but it comes up with this error:

 

 

Fatal error: Call to undefined function: quote() in /catalogl/checkout_shipping.php on line 152

 

In checkout_shipping.php here's what I find:

LINE 151 // get all available shipping quotes
LINE 152    $quotes = $shipping_modules->quote();

 

So obviously there's a problem with the final quote(). But I'm note sure where it would be defined.

 

I was having a problem with the free shipping and individual shipping so I commented it out, and since I'm not too familiar with PHP, I'm not sure if this has caused the error. This is the code commented out:

/*
// BOF: WebMakers.com Added: Downloads Controller - Free Shipping
// Reset $shipping if free shipping is on and weight is not 0
if (tep_get_configuration_key_value('MODULE_SHIPPING_FREESHIPPER_STATUS') and $cart->show_weight()!=0) {
 tep_session_unregister('shipping');
}
// EOF: WebMakers.com Added: Downloads Controller - Free Shipping

// BOF: Individual Shipping
if (tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS') and $shiptotal) {
 tep_session_unregister('shipping');
}
// EOF: Individual Shipping
*/

 

I'm not sure if this is related, but I'm also getting an error on the main page with the specials & new products which gives me a fatal error in the "database.php" at LINE 99 which is this:

 

return mysql_fetch_array($db_query, MYSQL_ASSOC);

 

I'm not sure if this makes any sense, but I hope someone can help!

 

Thanks in advance.

Link to comment
Share on other sites

I fixed this issue by commenting out all the references to the individual shipping component.

 

Specifically in:

 

catalog/includes/classes/shipping.php

 

I still have a problem, but it's a little different so I'll start a new topic.

 

Hope that helps others.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...