Jump to content

[SOLVED] 2 new checkboxes


Gold1s

Recommended Posts

I think you forgot to define the public variables:

In Customer.php, around line 99 you see this:

    /** @var integer Password */
    public $passwd;
 

Which defines the public variable $passwd

 

Below this, add something like:

    /** @var boolean zgoda  */
    public $zgoda;

 

    /** @var boolean zgoda2 */
    public $zgoda2;

 

 

Hope this helps,

pascal

  • Like 1
Link to comment
Share on other sites

Did you alter your database table (i.e. added the fields zgoda and zgoda2 to the database table ps_customer itself) already?

 

It seems you try to add a value to the fields, but these new ones aren't defined yet.

 

So you have to adjust your database table first (Be very careful with this! Make backups!! and be careful when you are upgrading in the future, as the update procedure may overwrite your changes!! Always backup the table (and the whole database :-)   )  before upgrading)

 

You probably have to run some SQL statement in your phpMyAdmin (or whatever database manager program you use).

(for more info on how to do this:  http://www.siteground.com/tutorials/phpmyadmin/phpmyadmin_mysql_query.htm)

 

I think Something like this:

 

ALTER TABLE ps_customer ADD zgoda tinyint(1) unsigned NOT NULL AFTER passwd;

 

and

 

ALTER TABLE ps_customer ADD zgoda2 tinyint(1) unsigned NOT NULL AFTER passwd2;

 

 

(Didn't try it out myself, but give it a try, (AFTER MAKING BACKUP OF YOUR DATABASE!!))

 

For more detailed info on the ALTER TABLE command, with more options if needed:

      http://dev.mysql.com/doc/refman/5.1/en/alter-table.html

 

 

 

Hope this helps,

pascal.

  • Like 1
Link to comment
Share on other sites

Good to hear.

 

I'll mark the topic as solved.

 

N.B. Please don't remove the original question, as other users may have a similar problem (looking at the topic header) and can read if the question is the same and thus if the answers apply may to them.

 

Happy selling,

pascal.

Link to comment
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
×
×
  • Create New...