Skip Navigation

[Resolved] Recurring payment for classified site

This support ticket is created 6 years, 2 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#955592

Tell us what you are trying to do? I whant to make ads for 1 month with post expired in cred and after that it will autorenew the ad with recurring payment, if the payment not good the post status change to draft, if the payment is complete the post status change to publish for 1 more month.
How can I do that?

BR,
Ronen

#955652

First you'll need to determine how to set up recurring payments. That's not something Toolset is designed to help with directly. WooCommerce Subscriptions is one option. Unfortunately Forms Commerce is not well integrated with this extension - Forms Commerce only supports simple WC Products, not Subscription Products. So you won't be able to use Forms Commerce post status changes based on Order status. This means you'll have to write a significant amount of custom code to handle these changes, and the code will most likely use the WC Subscriptions API: https://docs.woocommerce.com/document/subscriptions/develop/

You'll need to know how to link an Ad ID to a Subscription product, then you can use their API to change the Ad's post status based on the Subscription payment status.

Also, I must warn you that the Classifieds Reference site is not intended to be used as a boilerplate for an actual site. A large portion of the code for the Classifieds site is not written in a way that is easily extended. You will run into many problems if you try to extend this reference site beyond the existing functionality, even if you are an experienced developer. The Classifieds Reference site is available to show you what is possible, not to provide a ready-to-use starting point.

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.