Skip Navigation

[Resolved] cred commerce not putting item in cart

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Nigel 4 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#1481583

I have a cred form that links to woocommerce . But when the form is submitted i get the message that the cart is empty.

In my form I have

after visitor submits >> got to cart page
and in the commerce section I have Charge payment checked

I have a products selcted under "always add this product regardless of form inputs

Also checked is Clear the Cart and include only the selected product

Is s there anything obvious I missed?

#1482603

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Steve

I looked at your debug info and I see that you are using older versions of Toolset plugins. I can only investigate the problem if it is happening with the current versions.

Before going any further, could you please update all Toolset plugins and try again, and let me know what happens?

#1483233

Nigel thanks - Sorry I missed that but there were no notifications on the plugin pages that new versions were available. Ive manually updated all the toolset plugins. But now unfortunately another issue has arisen. The last field in the form is an image field and it seems to just freeze when an image is uploaded

[cred_field field='ca-image' force_type='field' post="nepr" class='form-control' output='bootstrap']

#1484917

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Steve

It freezes on the front-end when trying to add an image to the form for submission?

If you've made a big jump in plugin versions I wonder if you are affected by the changes to forms to use the WP Media Uploader on the front end.

Do you have any custom code connected to the form (e.g. custom validation, etc.)?

Does it work if you apply the setting "Use the WordPress Media Library manager for image, video, audio, or file fields"?

I had probably better take a look at your site, if that's okay. If I can't spot any problems, I may take a copy for further testing locally, where I can check this issue and the empty cart problem if it still occurs.

Let me mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

Can you confirm which is the form, and where can I see it on the front-end?

#1484995

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Thanks for that.

I visited the form on the front end and I went to add images to the final field. I added a single image, and there were no problems uploading it (via the WP Media Uploader).

Is there something special I need to do to see the problem?

Can you try clearing your browser cache and a hard reload on that page to see if you still have the problem?

#1485025

Thanks Nigel I rebooted and am using an incognito window - when i upload an image the file name appears in the field, but we are used to then seeing a thumbnail of the image appear and that never happens. In any case when we fill out the form and save it we get an error message that the "image field is required"

Ive tried with a couple of different images . Employees at the museum have tested with similar results

#1486623

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

OK, got it.

If I use the form when logged-in I see one thing, if I use the form as a guest visitor I see something else (what you describe).

When logged-in, the media uploader is now used, and which allows you to drag and drop multiple images at the same time, for example, which is a significantly better user experience.

But it is impossible to use the WP media uploader for guests, and so the image field input has been simplified in that case.

It used to be that images were uploaded via an ajax request before the form itself was submitted, but this was using non-standard methods and it has been removed.

Now, for guest users, the image fields simply get submittted at the same time as the form. There is no thumbnail preview, because the image isn't uploaded (to generate the thumbnail) until after the form is submitted.

Do you have any kind of custom validation on the form (JS or PHP)?

This appears to be a live site so I'm not sure about making test submissions of the form...