Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping address error


pure-dvd.com

Recommended Posts

I have recently gained my site which throws up an error when a customer attempts to order something...anything!

Bearing in mind that I am a relevant virgin to all this, could somebody help me with this?

It's probably very simple (if you know), the error reads (at the top of the screen) The choice for a customer to just select the previously entered shipping address isn't given as an option:

 

Warning: Division by zero in /home/virtual/site162/fst/var/www/html/store/includes/classes/shipping.php on line 61

 

Warning: Division by zero in /home/virtual/site162/fst/var/www/html/store/includes/classes/shipping.php on line 62

The program at this point reads:

 

if (is_array($this->modules)) {

$shipping_quoted = '';

$shipping_num_boxes = 1;

$shipping_weight = $total_weight;

 

if (SHIPPING_BOX_WEIGHT >= $shipping_weight*SHIPPING_BOX_PADDING/100) {

$shipping_weight = $shipping_weight+SHIPPING_BOX_WEIGHT;

} else {

$shipping_weight = $shipping_weight + ($shipping_weight*SHIPPING_BOX_PADDING/100);

}

 

Hope somebody can help, me!? As I said, I am a very new beginner to all of this so have pity!

I'm hoping that this is enough info for the answer to be found!!

Link to comment
Share on other sites

Really appreciated that Tom, I'm pretty new to all this & don't want to appear too thick!!

 

With that problem solved I have now found a new one...........

 

Within the confirmation screen, this error now appears as the billing address?

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/virtual/site162/fst/var/www/html/store/includes/functions/general.php on line 42

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/virtual/site162/fst/var/www/html/store/includes/functions/general.php on line 42

 

The program states:

 

////

// Parse the data used in the html tags to ensure the tags will not break

function tep_parse_input_field_data($data, $parse) {

return strtr(trim($data), $parse);

}

 

function tep_output_string($string, $translate = false, $protected = false) {

if ($protected == true) {

return htmlspecialchars($string);

} else {

if ($translate == false) {

return tep_parse_input_field_data($string, array('"' => '"'));

} else {

return tep_parse_input_field_data($string, $translate);

}

}

}

 

I am about to begin a serious crash course in all this honestly!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...