Jump to content

New field in 'orders' table - how to insert


mlodyno
 Share

Recommended Posts

Hello,

I added new field to mysql orders table - its named "fv" field. I want to add value from a checkbox which is placed in Order-Address-page (checkbox is placed on page where you can specify address to invoice). Unfortunately I can not insert any data to "fv" field in database. I pasted some codes into class Order.php but without positive results.

//new in Order class
public        $fv;
protected    $fieldsValidate = array(........ + 'fv'=> 'isMessage')
$fields['fv'] = pSQL($this->fv);



If I put simply

public $fv=1;

then '1' will be added to database. It seem that variable from Order-Address-page it is not transfer to last 'Confirm Page'.

Please Help me. Where should I put code to add data from 'fv' variable?

Best Regards

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More