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
1
vote
2 answers

WooCommerce Subscriptions Missing Interval Text

I am testing fees with WooCommerce Subscriptions and have noticed a missing feature that support is unable to help with. When adding a 'recurring fee' to the checkout using their sample code (below), the plugin does not add the subscription interval…
1
vote
2 answers

Remove WooCommerce noindex meta in myaccount page

Here is a solution to remove the meta "noindex" which causes an issue for the myaccount page to be indexed in google, because some people want it to appear for their clients to easy find the login page. The function match the my-account page and…
1
vote
1 answer

WooCommerce Subscriptions Hooks

I am currently customising a WooCommerce My Account, and I have been able to use the various WooCommerce hooks to customise the individual pages. Using visual hook guides/references online I have found the hooks such as,…
Aliqua
  • 723
  • 7
  • 21
1
vote
1 answer

Change sign up fee cart item price for WooCommerce subscription products

In WooCommerce I am changing the price of products in cart using the following hooked function: add_action('woocommerce_before_calculate_totals', 'set_custom_price',1000,1); function set_custom_price($cart_obj) { foreach ($cart_obj->get_cart()…
1
vote
2 answers

WooCommerce Subscriptions: Remove "Browse products" button on my account page

I want to remove the "Browse Products" button on the subscription page of My account area. I found the output in the template file my-subscriptions.php. But there is no filter to remove it without editing the template file. Is there any other way to…
Cray
  • 5,307
  • 11
  • 70
  • 166
1
vote
1 answer

WooCommerce Subscription - possible to detect whether a subscription is deactivated?

I'm using WooCommerce Subscriptions and Automatewoo and I'm trying to pass on all subscriptions details and a few custom ones to a 3rd party API. Is it possible to determine whether or not a subscription was deactivated (and possibly reactivated) by…
Lukerb
  • 77
  • 2
  • 10
1
vote
2 answers

Remove action buttons from WooCommerce Subscriptions dashboard for a specific user role

I'm looking to bring on a virtual assistant to help manage support tickets. This virtual assistant will need to have reading access to limited areas of WooCommerce (Subscriptions). I'm using 'user role editor' to remove all capabilities that are not…
cactusboat
  • 778
  • 2
  • 7
  • 15
1
vote
1 answer

WooCommerce Product to be purchased only once regardless of the quantity and the user

I have a property site, I have rooms as products in WooCommerce. There is an option to rent the room whether for 6 months or 12 months. I did a workaround and for 6 months the product quantity will be 1 and for 12 months the quantity will be 2. E.g…
1
vote
1 answer

WooCommerce Subscriptions 3.0 | Manual run of scheduled Actions not working

I have a WooCommerce webshop with WooCommerce subscriptions and i want to test the renewal process (emails etc) for a recurring payment. Normally i would use the method as described in the following article. This always worked prior to updating…
1
vote
2 answers

How to get quantity of a WooCommerce subscription?

I am currently developing a WordPress project and I am using WooCommerce with WooCommerce Subscriptions plugin to offer subscriptions to my users. I need help on how to get the quantity of a subscription in PHP. I am using this code to get…
1
vote
1 answer

Woocommerce woocommerce_checkout_create_order_line_item doesn't appear to be firing

In my scenario, a subscription order is added to the cart of the current user with additional data used to calculate additional data about the subscription such as the next renewal dates, subscription price, and so on. This is working nicely through…
1
vote
0 answers

Add a description field to custom product attributes in woocomerce variable subscription product

Is their a plugin or code I can add to add a description field to custom product attributes in woocomerce variable subscription product. I understand how to add it to the variation form but can't find anywhere to hook into the admin attributes…
1
vote
0 answers

In woocommerce how do I retrieve all variations like get_available_variations but including invisible

I want to retrieve all variations in a template file including hidden variations, like $product->get_available_variations I have placed the following in my theme function.php to extend the WC_Product_Variable class. But when I call my new function …
1
vote
1 answer

Change order status when switching subscription products

I'm using WooCommerce and Subscriptions. When customers switch the items in its subscription they go through the entire order process again and the order status is set to Processing/Completed. I wanted to change the order status to Switch order. But…
1
vote
2 answers

How to check if a user is in a trial or not in Woocommerce Subscriptions?

How can I do a simple check to return if a user is currently on a trial with WoocCmmerce subscriptions? The product has a trial period of 7-days. We want to display a section on the dashboard if the user is on trial and if they are not, the section…