This support ticket is created vor 3 Jahre, 7 Monate. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to: Add an item to the cart from page.
Link to a page where the issue can be seen: hidden link
I expected to see: Item added to the cart
Instead, I got: 404
When Toolset Types is enabled I get a 404 on the car page, only on post. (Refresh then loads the page).
When Toolset Types is disabled the cart-add works.
It won't be possible to upload it to our website, but you can use a sharing service such as DropBox or GDrive and share the download link in your next reply, which will be private.
I worked on a copy of your website and I was not able to find out the cause of this issue. It only happens to event tickets. It does not happen with simple products. I suspect, an issue on how the event tickets are built.
I am escalating this to our 2nd tier, and we may need to try in a clean install. In that case, I'll need your help to:
- Upload the events tickets into our test site.
- Configure the event tickets plugin and share the procedure with us.
- Create a product and reproduce the issue.
I'll let you know as soon as I get a reply from the 2nd Tier.
Our 2nd Tier has tried to reproduce the issue on a clean install to check if it is not a general compatibility bug, but the issue was not reproduced. It only happens on your website, so, we're still investigating why.
We'll get back to you as soon as we find something.
Hello and our apologies for the late reply. We finally find out the origin of this issue.
The site has defined a custom post type with slug "provider", and the plugin for events ticket management is adding a "provider" input to the form which is submitted when adding one ticket to the cart. As a result, submitting that form POSTs to the cart page but with a "provider" query argument, which then forces a WordPress query looking for a "provider" which does not exist, hence resulting in a 404 error.
We would suggest two possible solutions:
- Either rename your custom post type to something else than "provider".
- Or contact the plugin authors over https://wordpress.org/support/plugin/event-tickets/ and ask them to prefix that field to avoid clashes with custom post types named as "provider" (I would also request the same for attendee as this other key is also POSTed by the form).
There is nothing for us to do here as we can not guess what parameters will be POSTed by third party plugins and we will not forbid using random words as post type slugs.
I hope this helps. Let us know if you have any questions.