Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkbox in checkout_shipping.php?


jonsa79

Recommended Posts

Posted

I'm trying to insert a checkbox option in checkout_shipping.php. Like if it's checked then the answer should be "Yes" in the database and if not checked then it would be "No".

 

Then I would like the customers choice of that checkbox to show up in orders.php.

 

Maybe one of you pro coders out there can help me?

 

Big thanks in advance!

 

/jonsa

 

( I'm sorry that I dubbel posted this question... )

Posted

yea create a new session during checkout and set it according to the value of the checkbox. Then once in the checkout process update the orders sql table with the session's value. Create a new column in the orders sql table for storage. Data type of tinyint (1) should be sufficient.

Archived

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

×
×
  • Create New...