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

Change subscription status to active based on order id WooCommerce

First of all, Thanks to a guys who helped me write a script which changes order status to completed(script below). Unfortunately it doesn't trigger subscription to go active. When I manually change order status in WooCommerce it does. So my idea was…
1
vote
0 answers

Edit Woocommerce Subscription Start Date + Frequency at Checkout

I have a Woocommerce site running Woocommerce Subscriptions plugin. The site only has one simple subscription, limited to one per user. I want to allow the user to set their own start time and subscription frequency, based on selections made in a…
user2115227
  • 147
  • 2
  • 9
  • 24
1
vote
2 answers

WooCommerce subscriptions: Check if product type is a simple subscription

With WooCommerce I am using WooCommerce Subscriptions plugin. I have mainly Variable Subscription products and some few simple Subscription products. I am using woocommerce_dropdown_variation_attribute_options_args filter hook, to update dropdown…
1
vote
1 answer

WooCommerce - Subscriptions Add custom field in Edit Subscription

I am using Wordpress WooCommerce and WooCommerce Subscriptions plugins and it's working as per my expectations. However, I had a requirement to add a custom field in the Edit Subscription page hence I followed the below hook and code to add my new…
1
vote
0 answers

How to properly recalculate totals for existing subscription in custom php function?

I have written the following function in a custom php function that is designed to update a recurring fee amount associated with a woo commerce subscription, where such fee amount is based on a subscription meta field which I have stored the value…
1
vote
1 answer

woocommerce subscription add renewal button on another place

I am using woocommerce subscription plugin, and plugin have renew button on my account -> subscriptions. I want to hook in membership section. Code i find in reference is
1
vote
1 answer

WooCommerce Subscriptions: Is there a hook for a manual payment retry?

I have Woocommerce orders that are pending payment. At the moment when an order hits the automatic retry payment schedule it pulls the payment information from the subscription, which works great as the customer may have corrected their wrong…
Rob
  • 6,304
  • 24
  • 83
  • 189
1
vote
1 answer

Check programmatically if a coupon is valid for a user in WooCommerce

I'm programmatically applying a coupon to a subscription via a custom dashboard form so the user doesn't go through the standard cart to apply it. All it's doing is taking the code they've entered into an input then applying it to the sub. Is there…
Rob
  • 6,304
  • 24
  • 83
  • 189
1
vote
0 answers

Hiding some users and customers to shop managers based on the product they bought

here’s my question. I hope you can help since I am a bit stuck (not beeing good at PHP…). I build a sport school website, allowing customers to purchase memberships. For this I use WooCommerce, Memberships and Subscription. Sports for which classes…
1
vote
1 answer

Woocommerce Subscription API: How to filter by date_modified

In my PHP Symfony app I'm trying to retrieve Woocommerce subscriptions filtered by modified date and there's no documentation available as to how "filter" parameter can be used with the API.…
Teshan N.
  • 2,307
  • 3
  • 30
  • 59
1
vote
1 answer

Add select2 javascript and css in Woocommerce variable subscription

I am trying to add my select2 js library and css in Woocommerce variable subscriptions. Its adding if I do view:source but my select box or dropdown doesnt convert as select2 dropdown .. which is working for other pages with same js and css using…
1
vote
1 answer

Fire function on order creation to remove coupons from parent subscription

I have the following function, I want it fire every time an order for a subscription is created. I then want it to remove the store credit coupons from the parent subscription (as renewal orders will contain the coupon). I'm getting the error: "PHP…
Rob
  • 6,304
  • 24
  • 83
  • 189
1
vote
1 answer

WooCommerce add admin custom field(s) to simple subscriptions

In WooCommerce, I have enabled WooCommerce Subscriptions plugin and it's working fine as per my expectations. However, I have a one custom requirement from client. I want to add custom field(s) while creating a product in Variable Subscriptions and…
1
vote
0 answers

Changing Product/Subscription Attribtue Term slug in WC Subscriptions

I run a webshop offering subscriptions. The subscription product has a 'brush' attribute with different terms, with the following notation: Term name: No. 1 Term slug: no-1 We want to change the internal slug to 'am55' instead of 'no-1'. However,…
1
vote
1 answer

WooCommerce how to get the list of my account items?

I am trying to get all the menu items under the WooCommerce My account but it returns only the default items. This function wc_get_account_menu_items() returns array(6) { ["orders"]=> string(6) "orders" ["downloads"]=> string(9) "downloads"…
user3697484