Find Jobs
Hire Freelancers

Integrate WooCommerce Subscriptions with Toolset and Cred -- 3

£20-250 GBP

Completed
Posted over 9 years ago

£20-250 GBP

Paid on delivery
I am working on a Wordpress based business directory where businesses pay monthly for their advert. I am using Toolset (Cred), Woocommerce and Woocommerce subscriptions to do this and it almost works but I need help in perfecting it. I use Toolset's Cred plugin to allow users to create their own post which makes them purchase a WooCommerce subscription product (to pay for making their post) - this works fine, but the main problem I have is that I wan’t the users post and child posts (as I have a post relationship setup) to be set as a Draft once a subscription is cancelled. Toolset provided the code below, but “cred_commerce_after_payment_cancelled” looks at the order status rather than the subscription status so I’d like this function to work with the subscription status instead. add_action('cred_commerce_after_payment_cancelled','my_hook',10,1); function my_hook($data) { $my_post = array( 'ID' => $data['extra_data']['cred_pos_id'], 'post_status' => draft ); wp_update_post( $my_post ); } I have been reading here [login to view URL] in the subscription_end_of_prepaid_term section. To make things more complex, once a user cancels their subscription WooCommerce gives them the option to renew it and clicking this sets up a new subscription (with a new order number). I’d like this new subscription to make their previous post (and associated child posts) published again. A user may have multiple businesses/subscriptions, so all of the above should only apply to the posts associated to the cancelled/renewed subscription (e.g. not all of the posts by that user) - I assume the posts ID is saved as when the subscription is taken out. Finally, the WooCommerce subscription module is supposed to alter the users Role to Customer once their subscription is cancelled - but this doesn’t seem to work, I would like this to be fixed too? You can see the sites "Cred" form at [login to view URL]
Project ID: 6703380

About the project

9 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I have read your project details, and I am interested in offering my services. I provide 100% satisfaction guaranteed on all my work. Milestone is required to begin; to be released when the job has been satisfactorily completed. I estimate a 2-3 day turnaround (including weekends) on this project. ftp details to your server will be required. Contact me at your soonest convenience so we may get your solution delivered quickly. Thanks, coderXO
£100 GBP in 2 days
4.9 (670 reviews)
8.1
8.1
9 freelancers are bidding on average £167 GBP for this job
User Avatar
Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks
£201 GBP in 7 days
4.8 (159 reviews)
7.3
7.3
User Avatar
Dear Sir. We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! Looking forward to hear from you soon - GOD Bless You.
£157 GBP in 3 days
4.8 (100 reviews)
6.5
6.5
User Avatar
This is some niffty things you are asking and at the moment I can think of doing this stuff via doing some custom coding and database updating fields. Now I have done subscriptions to be change user role with woocmmerce and payed membership pro but other things are new but do able. I can get into R.N.D mod upon your interest. Do ping me if you want to discuss this further.
£250 GBP in 5 days
5.0 (10 reviews)
4.3
4.3
User Avatar
Hi, I’m professional Frontend & Backend Programmer & designer. I have been working with challenge and hope to improve future plan with good network every client. If any client want to get more faster job services with save time I am ready to work. I can ensure that I’ll complete your each instruction within time frame even more faster. You can contact with me anytime, I am trying to respond as soon as possible, I am available on skype, and email even contact to cell number too. I have experienced to work using below: 1. Advance PHP5 with MVC Pattern 2. Magento 3. Javascript, Jquery, AJAX, 4. Java with MVC pattern 5. MYSQL, SQL, Oracle 11g 6. WordPress with API 7. Zend Framework 8. C# and asp.net
£111 GBP in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
Swadlincote, United Kingdom
4.9
21
Payment method verified
Member since Oct 20, 2007

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.