Error while product creating Field 'delivery_date' doesn't have a default value

Phoca Cart - complex e-commerce extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error while product creating Field 'delivery_date' doesn't have a default value

Post by Jan »

Hi, there could be e.g. some problem with uprade, where the new table column format was not set. I added some if clause there (which can prevent from such problem), try to test it with 4.0.9Beta4:
https://github.com/PhocaCz/PhocaCart/re ... 9Beta4.zip

and let me know.

Jan
If you find Phoca extensions useful, please support the project
Net
Phoca Member
Phoca Member
Posts: 33
Joined: 29 Sep 2022, 00:28

Re: Error while product creating Field 'delivery_date' doesn't have a default value

Post by Net »

Jan wrote: 07 Sep 2023, 23:04 Hi, there could be e.g. some problem with uprade, where the new table column format was not set. I added some if clause there (which can prevent from such problem), try to test it with 4.0.9Beta4:
https://github.com/PhocaCz/PhocaCart/re ... 9Beta4.zip

and let me know.

Jan
regarding upgrade, i never did that, i literaly installed latest joomla 4.3.4 and latest phoca cart 4.0.8, with no other extension in joomla
I will try with beta, but is beta safe to use?
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Error while product creating Field 'delivery_date' doesn't have a default value

Post by christine »

Hi,

Of course it is "safe to use"
Make a backup beforehand. If the error disappears with the beta version, Jan will install it in the next release.
But first you should test it so that Jan knows.

Kind regards
Christine
Net
Phoca Member
Phoca Member
Posts: 33
Joined: 29 Sep 2022, 00:28

Re: Error while product creating Field 'delivery_date' doesn't have a default value

Post by Net »

Jan wrote: 07 Sep 2023, 23:04 Hi, there could be e.g. some problem with uprade, where the new table column format was not set. I added some if clause there (which can prevent from such problem), try to test it with 4.0.9Beta4:
https://github.com/PhocaCz/PhocaCart/re ... 9Beta4.zip

and let me know.

Jan
Hi Jan,

with new beta version, before testing, should i revert old values in database from NULL to None in phpmyadmin?

Thank you Christine, installed latest beta.
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 388
Joined: 07 Nov 2018, 14:55

Re: Error while product creating Field 'delivery_date' doesn't have a default value

Post by Nidzo »

Is the problem still present?
Net
Phoca Member
Phoca Member
Posts: 33
Joined: 29 Sep 2022, 00:28

Re: Error while product creating Field 'delivery_date' doesn't have a default value

Post by Net »

Nidzo wrote: 10 Sep 2023, 20:29 Is the problem still present?
can you take a screenshoot of your values in table phocacart_products for modified and delivery_date rows
because if i change it to NULL it works, but stock doesnt transfer from submitted item to created product, this is now new problem, stock in created product is always 0
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 388
Joined: 07 Nov 2018, 14:55

Re: Error while product creating Field 'delivery_date' doesn't have a default value

Post by Nidzo »

Net wrote: 10 Sep 2023, 23:19
Nidzo wrote: 10 Sep 2023, 20:29 Is the problem still present?
can you take a screenshoot of your values in table phocacart_products for modified and delivery_date rows
because if i change it to NULL it works, but stock doesnt transfer from submitted item to created product, this is now new problem, stock in created product is always 0
Image
Image
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 388
Joined: 07 Nov 2018, 14:55

Re: Error while product creating Field 'delivery_date' doesn't have a default value

Post by Nidzo »

So you can use 0000-00-00 00:00:00 for both
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error while product creating Field 'delivery_date' doesn't have a default value

Post by Jan »

Hi, there is no stock column in submit function.

Jan
If you find Phoca extensions useful, please support the project
Net
Phoca Member
Phoca Member
Posts: 33
Joined: 29 Sep 2022, 00:28

Re: Error while product creating Field 'delivery_date' doesn't have a default value

Post by Net »

Jan wrote: 12 Sep 2023, 00:49 Hi, there is no stock column in submit function.

Jan
Hi,
what is unit_amount ?

It would be very useful if submit function would have stock amount.
Post Reply