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

Phoca Cart - complex e-commerce extension
Net
Phoca Member
Phoca Member
Posts: 33
Joined: 29 Sep 2022, 00:28

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

Post by Net »

After the user submits an item, from the backend i want to create a product based on this submitted item, however, i am having this error showing up in the backend when i click on Create product button:

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


Image

Is there any solution to this....must be something i am missing to configure :x

Thank you in advance
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

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

Post by Nidzo »

I tried to reproduce error but everything is O.K. With filled delivery date and with blank field.
Do you need that field to be filled by user?
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: 06 Sep 2023, 14:07 I tried to reproduce error but everything is O.K. With filled delivery date and with blank field.
Do you need that field to be filled by user?
Thank you for your response.
I dont even need that field, nor i require it from user :cry:

This is what i have defined in the back end:
title*,unit_amount,catid_multiple,sku,ean,serial_number,description,condition

Can you try with the same fields like i have above? Fill the fields in the front end, submit, then in the back-end create product from it and let me know what happens?

looks like this in the backend:
Image


and front end:
Image
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

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

Post by Nidzo »

Everything is O.K.
Koju verziju Phoca Cart koristiš?
Image
Image
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: 06 Sep 2023, 18:18 Everything is O.K.
Koju verziju Phoca Cart koristiš?
Image
Image
I am using 4.0.8 phoca cart, with latest joomla 4 version


Image

See this video https://transfer.sh/lJMpvh5IQM/phocaCar ... tError.mp4, maybe i am doing it wrong?
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

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

Post by Nidzo »

You are not doing anything wrong. That is process publishing submitted item.

Try to Update Structure of Phoca Cart Database
Image

Try to install latest Beta version just for testing purposes and see what is happening: https://github.com/PhocaCz/PhocaCart/re ... 9Beta3.zip
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: 06 Sep 2023, 20:44 You are not doing anything wrong. That is process publishing submitted item.

Try to Update Structure of Phoca Cart Database
Image

Try to install latest Beta version just for testing purposes and see what is happening: https://github.com/PhocaCz/PhocaCart/re ... 9Beta3.zip
As you suggested, i just made update structure of phoca cart database, but i get the same error.

Just to make sure, as a first step i go to address www....cms/administrator/index.php?option=com_phocacart&view=phocacartsubmititems

Then select submited item, then click on create button, right?

Or ideally, can you completely write down exact steps on how to do this, from the fron end user side, to back end settings and steps to create product from submited item

I am still suspecting i might have done wrong in configuration or in procedure :idea:
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

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

Post by Nidzo »

Same procedure like you did. Check video:
https://imgur.com/dsoo22X
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 »

we still dont know what is going on, why does this delivery_date error comes up...its probably something trivial....hopefully Jan might see this post
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 »

I think i found a solution, i went into phpmyadmin, searched for delivery_date in database, found it in phocacart_products, see screen shoot:

I changed this value from None to NULL
I hope this will not disrupt whole installation

Image

Can you please check this value in your database so we can compare it
Post Reply