Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

$total_weight = $cart->show_weight(); NOT WORKING?


thall89553

Recommended Posts

Posted

I recenlty migrated my site from a windows box to a linux. On my checkout page I had put in a switch statement for shipping based on the value of the variable $total_weight On the new Linux server when someone goes to check out the value for $total_weight is always set to 0 now. Does someone know why this would be the case. In the code there is this line -

 

$total_weight = $cart->show_weight();

 

When I echo $total_weight it always shows 0 regardless of what is in the cart. Thanks.

Archived

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

×
×
  • Create New...