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
0
votes
0 answers

Getting Subscription Products from WooCommerce

I am trying to access my site's Subscription Products via REST API. At wc/v1/subscriptions I can get the active subscriptions, and at wc/v3/products I can get all products except subscriptions. There isn't anything in the WC Subscriptions…
Jonathan Tuzman
  • 11,568
  • 18
  • 69
  • 129
0
votes
1 answer

WooCommerce Subscriptions and Yith My Account Issues

Fatal error: Uncaught Error: Call to a member function get_status() on null I have WooCommerce and WooCommerce Subscriptions installed as well as YITH WooCommerce Customize My Account Page. And when I click on View Subscription, I get an error about…
0
votes
2 answers

How to get api information from WooCommerce software add-on with Python and WC-API

I'm trying to figure out how I can get license keys from WooCommerce Software Addon with the help of Python and the WooCommerce Api.. The endpoints available don't seem to work.. Does anyone here has a clue on how to get things going combining the…
0
votes
0 answers

How can I automatically reactivate a users subscription after 30 days of them putting it on hold?

I have the following code below and I am trying to achieve the following objectives : Change the wording hold to pause (this has been completed from the code below) Once a user logs into their account and puts their subscription 'on-hold'. After 30…
0
votes
1 answer

Change user role depending on purchased products in WooCommerce

In woocommerce I am trying to change the user role depending on customer purchased products. I saw the various code and tried them all without being able to make them work. I have several products to check for different user roles change. This is my…
0
votes
1 answer

Woocommerce subscriptions process renewal using rest API

I'm doing a custom built admin section for wordpress using rest API. I got all options except processing renewal subscriptions using rest API. Is there any possible option to do renewal processing using rest API? I'm referring to this docs:…
0
votes
1 answer

Modify subscription product listing in my-account - WooCommerce

I'm using WooCommerce subscription but i am facing some issue in customization i want add product image and replace subscription id.enter image description here
0
votes
1 answer

Invert displayed signup fee and monthly Fee for Woocommerce Subscriptions

With Woocommerce, I am using Woocommerce subscriptions plugin. On the product page, cart, and checkout it shows the monthly fee and signup fee like this: "$49.00 / month and a $50.00 sign-up fee" How can I rearrange the order so it says: "$50.00…
0
votes
0 answers

Woocommerce Subscriptions and synced force sell doesn't work?

I'm trying to create a situation in which a guarantee (no VAT) is automatically added to the cart when you order a variable subscription product. This should be done only one with the first transaction, not with the next payment in the subscription,…
0
votes
1 answer

Coupon for Subscriptions PHP

I found this snippet that adds a coupon to an order programatically: // Create the coupon global $woocommerce; $coupon = new WC_Coupon($coupon_code); // Get the coupon discount amount (My coupon is a fixed value off) $discount_total =…
Lhen
  • 181
  • 3
  • 15
0
votes
1 answer

Add custom fee to woocommerce subscription recurring total fromcheckout

A custom checkout field which is a select field that is used to add a price to total price in checkout. When using WooCommerce Subscription plugin Recurring Total also appears. So is there any way, i can add custom checkout field price to recurring…
melvin
  • 2,571
  • 1
  • 14
  • 37
0
votes
1 answer

WooCommerce Payment Gateway: Subscription Renewal Date Not Updated

I'm writing a payment gateway that handles WooCommerce subscriptions. Here is the sample code that handles the renewal: public function mcc_subscription_renewal($amount, $order) { $tid = 123; $order->payment_complete(…
Moustafa Elqabbany
  • 1,110
  • 9
  • 10
0
votes
1 answer

Woocommerce Subscriptions update next payment date from functions.php

I would like to change the next payment date of active subscriptions after the Initial (first) Subscription payment is completed after the trial period.
0
votes
1 answer

Get if the current user has an active subscription with trial period

I'm developing a website in WordPress with WooCommerce. I am using Woocommerce Subscription. I have a product with a trial period. Now I want to change the next payment date based on the trial period. How can I get the trial period date and Next…
0
votes
2 answers

Add quantity unit in quantity-input.php for Woocommerce

I have a custom field, 'woocommerce_product_rate' for a woocommerce product intended to be added after the quantity input field, so instead of just displaying, for example, "10", it can display "10 Bananas". I'm trying to retrieve the product ID…
DanL
  • 91
  • 1
  • 9