sbodak/magento2-checkout-custom-form

Custom Fields do not Save for Guest

webusat opened this issue · 3 comments

Hi,

When I checkout as a guest, the data in the fields does not save and I don't see it in the admin. If I use my customer login and login into the site as a customer everything works fine and I see the data in the admin. I have modified the fields by changing the fields, names, etc. Any idea what I might need to look at to get this to work?

Thanks,
Stan

Hi,

I think I have it fixed, it was something I had modified. But when I checkout as guest I get an error "No such entity with cartId=some_number. The transaction works, I just see that error.

Any ideas?
Stan

Update:

I kept testing and all of a sudden it stopped working when checking out as a guest and I noticed I no longer see the error "No such entity with cartId=some_number. I didn't change any code.

Thanks,
Stan

Update 2:

So I had added some code to reset the form fields using jQuery. Because if I don't, the data still comes through if the data isn't filled out because it populates by default. But it seems when "Next" is clicked the fields are reset as the user is directed to the payment page. I need to reset the fields so they are empty. I'll Open a new ticket.