Skip Navigation

[Resolved] Post created by Cred commerce does not publish after order payment validation

This support ticket is created 4 years, 7 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
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: Africa/Casablanca (GMT+01:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Pat 4 years, 7 months ago.

Assisted by: Jamal.

Author
Posts
#1564833

Pat
toolsetwc1.jpg

Hello,

I have a site with Toolset and WC and face an issue :
I'm using a WC Cred inside the product template page to create a specific postype when a product is bought in order to add some specific info.
So, I'm able to order the product and create the postype but the issue is that when the payment is finalized (thanks to Monetico module), then the order is still in process (not completed) and the post is not published (still draft).

Any idea when could cause this issue?
I have added a screenshot of the order

#1565359

Hello and thank you for contacting the Toolset support.

I am not sure to really understand your use case, can you elaborate more and give detailed steps on how you reproduce the issue?

Can you check if you have set the appropriate status for each status of the order, check this section of our article.
https://toolset.com/documentation/user-guides/front-end-forms/using-cred-commerce-to-add-payments-to-forms/#3-1-updating-the-post-status-when-the-payment-status-updates

Is your use case similar to this one?
https://toolset.com/documentation/user-guides/front-end-forms/using-cred-commerce-to-add-payments-to-forms/

In the meantime, it is worth mentioning the CRED Commerce API and another tutorial that may be helpful.
- https://toolset.com/documentation/programmer-reference/cred-commerce-api/
- https://toolset.com/learn/create-membership-site-wordpress-using-toolset-plugins/how-to-use-the-woocommerce-subscriptions-plugin-with-toolset/

#1565785

Pat

Hi Jamal,

Thanks for the info.

After analysis, the issue is not a Cred issue. As mentioned, the WC has not completed the order even if the payment has been accepted and validated !
So, I would say it's normal that the post has not been published.
I think I have understood what was wrong : my products do need logistic but they were not checked as "virtual", so WC was waiting for a last shipment operation before turning the order to "completed"

Sorry to have bothered you with this issue that was not related to Toolset !

Let me know
Regards
Pat