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
3
votes
1 answer

Don't show recurring price for WooCommerce subscriptions worth 0$

I want to modify the subscription string so it only shows the sign-up fee for variations with 0$ recurring fee. I would also like to show that variation price in the archive for that product rather than a price range. I've tried using the…
3
votes
2 answers

Change cart items subscription properties values before checkout

This may be a noob question so apologies in advance. I have variable subscription products whose price varies by subscription length. I also have simple subscriptions that have a subscription_length = 0. When the cart contains both types,…
AV8R
  • 303
  • 2
  • 14
3
votes
1 answer

How to get list of active subscribers in WooCommerce?

I am trying to get a list of all users with active subscriptions, but for the life of me can't seem to get something working. If I look at the users in the dashboard, I see all the active members have a "Abonné" role. So I've set up my shortcode…
JonYork
  • 1,223
  • 8
  • 31
  • 52
3
votes
1 answer

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

I am creating a membership site and totally created static pages for each Membership plans (have only 3 plans). However, I have added products for each plan and when I hit SELECT PLAN button I redirect to some custom form where I ask users range of…
Paresh Thakor
  • 1,795
  • 2
  • 27
  • 47
3
votes
2 answers

Get active subscriptions count for a defined product and user in Woocommerce

I'm able to know whether a user has an active subscription for a given product: $subscribed = WC_Subscriptions_Manager::user_has_subscription($userId, $productId, $status); But I'm not managing to figure out how many subscriptions to this product…
Ariel
  • 119
  • 1
  • 10
3
votes
1 answer

Create an order programmatically in Woocommerce Subscription

I want to create an order (programmatically) of a Subscription Product. I found code from this question: Programmatically creating new order in Woocommerce, which I used to try make it work. I was not able to make it work neither with a "Simple…
3
votes
1 answer

WooCommerce: Get name and variation from a Subscription order

I want to display the name of the subscription product in the overview of my active subscriptions. At the moment, the page shows only the subscription order number with the function $subscription->get_order_number() I printed the array behind…
Cray
  • 5,307
  • 11
  • 70
  • 166
3
votes
1 answer

Change text on order button for WooCommerce subscriptions

The issue described here is exactly what I need to do and the solution works: Woocommerce: Change text on order button [Updated] However, we accept one time "orders" in the form of donations and subscriptions to sponsor a child. If there is a…
3
votes
2 answers

Stop user role changing only when canceling a subscription

I'm using WooCommerce Subscriptions plugin and I would like to stop user role changing only when canceling a subscription. I found a code snippet here: add_filter( 'woocommerce_subscriptions_update_users_role', '__return_false', 100 ); … which…
Aadi
  • 6,959
  • 28
  • 100
  • 145
3
votes
1 answer

WooCommerce - Get active subscriptions in a list between start / end date

I am using WooCommerce subscriptions. How can I get all subscriptions (with start date and end date) in a lists from one specific date to another date? Example 01/09/2016 to 15/09/2016 Thanks
Leon
  • 141
  • 1
  • 3
  • 13
3
votes
3 answers

How do I change the price string in WooCommerce subscriptions

I need a better way to do this. Currently, I have added code directly to the get_price_string function within class-wc-subscriptions-product.php file, so when a free trial is setup I can change the text being added to the price string. This, of…
Chunkford
  • 141
  • 1
  • 3
  • 13
2
votes
1 answer

Change in single product page WooCommerce subscription price string

In WooCommerce, I am using WooCommerce subscriptions plugin, and I'm trying to replace from the subscription price string the text "every 3 days" with "Twice a Week" in single product pages. This is my code attempt: function…
2
votes
1 answer

Display the license related to the subscription in view-subscription page woocommerce

I use woocommerce subscriptions and software license manager master plugin, i want to display the licenses generated by the software license manager master plugin on the view-subscription page, now the licenses created by software license manager…
2
votes
1 answer

WooCommerce Subscriptions: Hide one variation subscription

WooCommerce subscriptions | All Products for WooCommerce Subscriptions Does anyone know if there's a way to disable the subscribe option for a specific product variation? i.e. product with 2x attributes: attr-1, attr-2 All of which can be bought…
2
votes
1 answer

WooCommerce Subscriptions - Automatically complete renewal orders and Subscription status

I am working on a site which uses WooCommerce Subscriptions and WooCommerce Memberships. It sells subscriptions which renew annually. The only payment gateway being used is Cheque (renamed to Pay via Invoice), so all renewals are manual renewals.…
1 2
3
26 27