Hi,
I’m chiming in as I’m experiencing the exact same issue: the ad gets published once the paypal payment goes through, even though moderation is set in the shortcode.
How can we keep the post_status as pending for admin review?
Thanks,
Matt
Hi,
the Ads are automatically published when the payment is marked as completed (as the payment itself is usually enough to be sure that the user is serious about posting the Advert), so the moderate param is actually for the free ads only.
With Bank Transfer, the payment needs to be approved manually but with the PayPal payment, it happens instantly after the payment.
If for some reason you do not want the Ad to be published instantly then you can disable this feature by adding the code below in your theme functions.php file
add_action( "init", function() {
remove_action("adverts_payment_completed", "adext_payment_completed_publish");
}, 1000 );
Greetings. The piece of code works as intended. Now I have to see if the new workflow works for the client.
Thanks.
Greetings, I’m back to this topic since some mechanics changed.
My client wanted to set specific prices for specific tiers, which with help of the Paid addon of Custom fields i managed to do for custom Forms. Then i placed Woocommerce support in order to allow the specific pricing to work. But what happens?
It results that the payment through wocommerce passes andf the ad gets posted but in the backend remains the tag “Pending Payment”. IS there a way to extrapolate that same mechanics or that is Woocommerce Specific?
Thanks in advance
Hi,
in the WooCommerce integration settings (wp-admin / Classifieds / Options / WooCommerce panel) you can select which type of Ad posting you want to moderate.
If you want the paid ads to be moderated just check the checkbox next to them.
Thanks for the tip. Definitively it was the setting.
What i still don’t get used to is for the pending payment status but that is what i need.
I’ll add it to our issue tracker, in one of the next releases it will show either “pending payment” or “pending review” status.