Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

$billto variable being unset or set to ''


tfittsy

Recommended Posts

I'm having trouble with my the $billto global variable. I am able to output the variable just fine on the checkout_payment.php page, but when you submit your payment information it's value is set to nothing or 0.

 

This makes it so the query to get the billing address tries to match an address for the customer id where the address id = 0 so I get a htmspecialchars() error because the string being passed is non-existant.

 

I can get around it by setting a hidden field called billtoid and setting it to $billto and then on the checkout_confirmation page I pull the $HTTP_POST_VAR['billtoid'] if $billto == '', but I'd like to figure out the root cause of this problem. I appreciate any help anyone can offer.

 

Thanks.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...