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

How to apply a coupon to an existing woocommerce subscription

I'm looking for a way to apply coupons to existing woocommerce subscriptions. I create coupons and then under usage restrictions I set the allowed emails to the be the email of a certain user/subscriber. I would like these coupons to be…
GW123
  • 23
  • 5
1
vote
1 answer

display Woocommerce subscription actions to any of custom page or dashboard

I am using WooCommerce subscriptions and am trying to create a custom flow in the dhasboard for the user. Currently user logs in > dashboard shows, I have custom code to show if subscription status is "active" or "on-hold". If it is on hold, the…
Kiki
  • 317
  • 1
  • 4
  • 18
1
vote
1 answer

WooCommerce Subscriptions Emails: What are the correct 'woocommerce_email_order_details' hook function arguments (to modify "renewal" emails)?

I'm having trouble tracking down the correct hook function arguments to modify/add email content for the (WooCommerce Subscriptions-specific) 'customer_renewal_invoice' and 'processing_renewal_order' email IDs within the…
1
vote
1 answer

Hide Woocommerce variable subscription product price range

I would like to hide the Subscription product variation details "From: $38.50 / month for 12 months and a $50.00 sign up fee" I need a code to disable. I've tried other snippets which hide the word "from" or changed the verbiage of "sign up fee".…
1
vote
1 answer

Save custom metadata from subscription product variation to order

I need to be able to add admin data to subscription product variations (Woo Subscriptions extension) in order to pass this data on to fulfilment centres when an order is placed. The issue I have is getting these values out from the product and…
1
vote
0 answers

Add customer as recipient to woocommerce subscriptions cancelled subscription email (notification)

By default woocommerce subscriptions send the email notification that a subscription has been cancelled only to the admin of the store, NOT to the customer. This is not user friendly. I am trying to add the customer as a recipient to this specific…
1
vote
1 answer

Echo Function being Stripped in WooCommerce Notifications

I am using a number of related WooCommerce plugins including WooCommerce Subscriptions and Events Tickets. The Events Tickets plugin has an add on plugin that adds event and attendee information to the WooCommerce order pages, including emails. On…
Evakos
  • 152
  • 2
  • 11
1
vote
0 answers

$order->get_checkout_payment_url() different behavior for product and subscription

I'm trying to create subscription order by code. I'm using the latest version of Woocommerce and Woocommerce Subscription plugins. It's working fine, but I got different order-pay page when the order contains subscription product. When the order…
1
vote
1 answer

Edit HTML of woocommerce_cart_totals_after_order_total

I was going through my cart.php template converting the table to div's. Now my cart looks like this with various words not wrapped in any tags - which makes it impossible to style.
1
vote
1 answer

How to remove get_subscription_totals_template function from the hook woocommerce_subscription_totals_table

I want to replace the Subscription Totals given by the WooCommerce Subscriptions with my plugins version of Subscription Totals table. In the WooCommerce Subsciptions plugin's class-wcs-template-loader.php there is a line that loads the subscription…
Abhishek
  • 153
  • 1
  • 3
  • 15
1
vote
2 answers

Creating a WooCommerce Order programmatically for a subscription product

With woocommerce I am using WooCommerce Subscriptions plugin. I have created a function that can create an order based on the product SKU using wc_get_product_id_by_sku() function, from a Subscription product. This is my function at the…
1
vote
0 answers

I made a multi step slide to buy a product (now I want to link it with woocommerce)

I made a multi step slide. In this multi-step slide you can select what you would like to have in your subscription package. If you have checked everything you can enter your details. This is now made with elementor but I would like to add a…
1
vote
0 answers

Get subscription ID from Woocommerce order

I have added some fields during checkout process and I need to store it in my DB and connect them to the order. Right now my code works but it add the data to the subscription, not the connected order. This is my code: foreach($this->fields as…
Christian Giupponi
  • 7,408
  • 11
  • 68
  • 113
1
vote
0 answers

How can I copy the customer on WooCommerce Subscription notification emails?

With WooCommerce Subscriptions, the email notifications confirming a subscription's suspension, expiration, or cancellation are sent only to store admin. I would like to cc: the customer on these notifications. I believe I've found the right hooks,…
1
vote
0 answers

How to add an existing coupon to a Woocommerce Subscription?

My users can request a discount (or cancel their subscription) on their renewal order through a form. Using the form submission hook I created a function that if the action is === "cancel" it cancels the subscription, but if the action is ===…