Questions tagged [woocommerce-subscriptions]

To be used for WooCommerce Subscriptions plugin related questions only

Third party official WooCommerce Subscriptions plugin.

This powerful extension allows you to create and manage products with recurring payments — payments that will give you residual revenue you can track and count on.

WooCommerce Subscriptions allows you to introduce a variety of subscriptions for physical or virtual products and services. Create product of the month clubs, weekly service subscriptions or even yearly software billing packages. Add sign-up fees, offer free trials or set expiration periods.

392 questions
2
votes
1 answer

Temporarily Remove Cancel Button if Subscription Active less than 3 months

I am in need of some help temporarily removing the cancel button in the "My Subscription" page within "My Account". I would like to hide the cancel button until it has been at least 3 months (or 90days) since the user has subscribed. Where after…
cactusboat
  • 778
  • 2
  • 7
  • 15
2
votes
2 answers

How to cancel previous WooCommerce subscription automatically when new subscription is purchased?

I'm building a membership site where users must only have one active subscription at a time. I would like that on a purchase of any new subscription/product all other subscriptions to be cancelled/expired and all associated membership…
2
votes
1 answer

WooCommerce Subscriptions: how to determine the last correctly paid order for a given subscription

Is there any already-programmed method to get the last correctly-paid order for a given subscription? $subscription->get_last_order() will return the last associated order, no matter if that order involved a correct-payment or…
DaveFX
  • 407
  • 1
  • 8
  • 16
2
votes
1 answer

Gateway between Woocommerce Subscriptions and Account Funds plugins

I have purchased 2 plugins (Woocommerce Subscriptions and Account Funds) that state in their relevant docs that they are compatible with each other. I wish to make a Simple Subscription product that adds the product price as account funds for that…
Gracie
  • 896
  • 5
  • 14
  • 34
2
votes
1 answer

WooCommerce Subscriptions get Billing Interval & ID

I am using a stripe "wc_gateway_stripe_process_response" to get payment information. What is needed is what is the payment interval for that product and what the user's subscription id is. This is the code I have to date: function…
Debbie Kurth
  • 403
  • 3
  • 16
2
votes
2 answers

Check if current WordPress user has WooCommerce Subscription using array of product IDs

I found the code to check whether a user has an active subscription using the product ID...

You are a member of the Samurai

...however, I'd like…
bboybeatle
  • 549
  • 1
  • 8
  • 28
2
votes
1 answer

Get Subscription Product author of a Woocommerce subscription

How can I iterate through all current active woo subscriptions and print the user ID of the user who published the product related to each active subscription (PHP)? I think something like this will give just the subscriptions: $args = array(…
xendi
  • 2,332
  • 5
  • 40
  • 64
2
votes
2 answers

Add a user role using WooCommerce order transition status hooks

I need to add a new role to my recently registered user (upon buying any of my four specific subscription products). Until now, every recently registered user (those who buy a subscription product) get a Subscriber role. While I want them to be…
2
votes
1 answer

Get the last subscription renewal order information in Woocommerce 3

We are trying to pass woocommerce subscription renewal data to a loyalty rewards program and are having all kinds of issues and have been unable to get relevant woocommerce subscription information or anything to work. Our full loyalty code for…
2
votes
1 answer

Change WooCommerce Subscription Product Start Date Before Adding to Cart

One of my WooCommerce websites that uses WooCommerce Subscriptions plugin has a problem. The problem is one product is only shipped every 2 weeks on a certain date. The next shipping date is November 9th. I need to figure out how to add this as the…
Jack Robson
  • 2,184
  • 4
  • 27
  • 50
2
votes
0 answers

Woocommerce subscription WC()->cart->add_to_cart monthly is not working

We are selecting the number of products to insert in cart. We are using woocommerce subscription plugin for variation on yearly and monthly basis. if We are selecting 5 products to insert in cart we are using the while loop for getting variation…
Ali
  • 315
  • 1
  • 3
  • 13
2
votes
1 answer

WooCommerce - Different shipping methods for recurring orders

I am developing a site with the following plugins: WooCommerce WooCommerce Subscriptions Pakkelabels.dk for WooCommerce "Pakkelabels.dk" is a packaging label plugin for carriers in Denmark. This plugin is using the standard WooCommerce filters and…
Skovsgaard
  • 339
  • 2
  • 19
2
votes
2 answers

Add or replace a variation fields into a WYSIWYG editor field in Woocommerce

I'm trying to figure out how I can turn a Woocommerce Variation Subscription product text field into a WYSIWYG editor. How it looks now: As you can see I put code into that field to updates its appearance, but that isn't going to work for my client…
2
votes
1 answer

Passing custom data from cart items to Order meta in Woocommerce 3

I have implemented a custom HTML Form and asking for some data which my customers will pass to place order successfully. Without these details my order has no importance. For HTML form, I am referencing some custom PHP script which is below and…
2
votes
0 answers

How to add custom filters for admin woocommerce subscriptions table?

How could I add custom filters for woocommerce subscriptions table in the admin panel? Because when I use this code below, the table returns with all posts add_filter( 'request', 'subs_filter_retry_count', 999 ); function subs_filter_retry_count(…