Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Warning


The Criteria

Recommended Posts

Hello all,

 

In the process of making a test purchase, when I clicked the "Buy Now" button, I received the following error:

 

Warning: Division by zero in /data/home/wesell/public_html/catalog/includes/classes/shipping.php on line 75

 

Warning: Division by zero in /data/home/wesell/public_html/catalog/includes/classes/shipping.php on line 76

 

 

here is the code (lines 74-76):

 

if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes

          $shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);

          $shipping_weight = $shipping_weight/$shipping_num_boxes;

 

 

What did I mess up this time? :-"

"And fear the day when ye shall be brought back to Allah. Then every soul shall receive what it earned and none shall be dealt with unjustly" (Qur'an 2:281)

 

Had We revealed this Qur'an upon a mountain, surely you would have seen it humble itself and crumble out of the fear of Allah. Such are the parables We put forward to mankind so that they may reflect" (Qur'an 59:21)

 

"Do they not consider the Qur'an? Had it been from other then Allah surely they would have found much discrepancies within it" (Qur'an 4:82)

 

Link to comment
Share on other sites

Well either the SHIPPING_MAX_WEIGHT is zero or the $shipping_num_boxes = zero.

 

I am guessing your max weight is zero. If you go to your Catalog area to do with shipping then there is a MAX weight that the shop is prepared to ship. maybe you have this 0.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...