[Resolved] Pending review autocomplete post by CRED Commerce
This thread is resolved. Here is a description of the problem and solution.
Problem: I have used CRED Commerce to create a new post set to "Pending Review" status. When the order is complete, the post should change to "Published" status, but this is not happening.
Solution: WooCommerce made a change that introduced a bug in CRED Commerce. The latest versions of CRED Commerce and WooCommerce include the fix for this bug. Please update to the latest versions of CRED Commerce and WooCommerce.
This support ticket is created 7 years, 4 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.
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.
What can I do to post a status change from "pending review" to "complete" after order completion?
I tried to do it in several ways, but my PHP knowledge is too small to be able to do it ...
One of the tests:
Hi, do I understand you correctly?
- You want to change the post status of the post created by CRED
- You want this change to happen when the order is completed
- You want to change the status to 'published'
On screen "cred-settings.jpg" I show my settings.
The problem is that as I already have completed the order, the post created using the CRED form is still "Pending review".
I can not set the "Status of content created or edited by this form:" to "Pubished" because the post then appears before it is paid. So I have to use PHP.
Thank you for explaining the "status" issue in PHP. However, I still do not know how to properly write it. Can you help me?
The problem is that as I already have completed the order, the post created using the CRED form is still "Pending review".
That's strange, the status of the post should update to "Published" based on the settings in your CRED form. If that is not the case, then I would like to help fix this issue. You shouldn't need to use PHP. First, please comment out this action hook so this code isn't running when the order is completed:
- Create a new order with the CRED Commerce form.
- What payment system or gateway are you using?
- How is the order status updated to "complete"?
- Are you using any extra WooCommerce extensions or other plugins to automatically set the order status to "completed" based on some other criteria?
- If you use the "check" or "cash on delivery" payment gateway, then manually complete an order from the WooCommerce Orders screen, does the CRED post's status update correctly?
- Extra WooCommerce extensions I do not use.
- For now, I do not use any payment system. Ultimately it will be a Polish system but I can not install it yet. For now I use "check" or "cash on delivery" payment gateway.
- The automatic completion of the order I have now done with the code (currently commented out):
Indifferent whether my code to complete the order works, whether it is commented and manually approve the order - post added using CRED form still remains "Pending review".
So it is wrong anyway.
Hi, I've been working on this today and I can't understand why it isn't working as expected. I believe there may be a bug, so I'm reaching out to some other team members for assistance. Please stand by and I will update you when I have some more information about the publishing problem.
The permanent fix will be included in the next release of CRED Commerce. Please download the patch file and install it on your server to resolve the issue where post status is not updated appropriately when the order is completed.
I can not do test page (I already wrote about it in xxx).
I changed the file according to the instructions. Unfortunately, no change. Post still remain "Pending Review".
A beta version of CRED Commerce 1.5 is now available for testing in the account downloads area. I do not have a timeline for the full release, but typically it occurs within a week or two following a beta release.
The official release of CRED Commerce is now available for you in the account downloads area. Please install this new version and confirm that post status changes are being triggered correctly when the user completes payment.