Skip Navigation

[Cerrado] post status not updated properly when multiple of product in cart.

This support ticket is created hace 4 años, 5 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Luo Yang hace 4 años, 4 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#1679491

I am trying to:
I have a custom post "line-ad" that is sent to woo cart, this works fine, and when I complete multiple times it adds each to the cart correctly, and the woo process seems to complete as expected.

Link to a page where the issue can be seen:

I expected to see:
post status' update when order completes.

Instead, I got:
only one of the posts status is update to "pending review" as set in the post form after order is processed.

#1679923

Hello,

The problem you mentioned above is abnormal, please check these:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, and test again

2) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

3) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL and form URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1685079

Hi, I have been through the debugging that you have mentioned and fixed a couple of code errors but the issue persists with nothing showing in the logs.
Only plugins are Toolset, Woocommerce and stripe for Woocommerce.
I did have a quick look to see if I could find the hook you're using to update post status but it wasn't obvious to me.

It looks like either the hook was designed to old handle one post or something is causing an error (that I cant see) to exit the look.
When an order is completer only one post updates to "Private" and when the order is "Completed" the same field updates to "Pending" and the other still stays as the standard "Published"

Tomorrow I will package up the installation and send you a copy.

#1685891

Please update here when your package file is ready:

you can put the package files in your own google drive disk, share the link only, also point out the problem page URL and form URL

Thanks

El debate ‘[Cerrado] post status not updated properly when multiple of product in cart.’ está cerrado y no admite más respuestas.