Jump to content

Product available on a future date tweak


djpaul

Recommended Posts

Hello,

I found this tweak on this link but i think it's made for an older version of prestashop.

Now i'm dealing with 1.4.7 and it works almost.

Only thing is when i want to add a new product, it gives an error, namely: An error occurred while creating object. product

 

So i think there has been some changes in the product class that gives me this error.

Does anybody kows where this is coming from or how to fix this?

 

Thanks!

Paul

Link to comment
Share on other sites

Well, found the solution.

I made 1 mistake, the database field was a varchar(45) instead of date.

After that it still won't work so i changed:

$fields['date_available'] = pSQL($this->date_available);

To:

$fields['date_available'] = $this->date_available;

 

And then... it works!

Greetz!

Paul

Link to comment
Share on other sites

  • 4 months later...

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...