WooCommerce Subscriptions provides a couple of coupon types that are specific to subscription type products. These are documented here Subscription Coupons – however, it is often desirable to be able to offer a promotional code that would apply a discount to both a sign-up fee and a recurring discount. The use case would be for […]
Conditionally Allow Customer Registration
A recent change in WooCommerce has resulted in some cases where customers may be unable to check out if their cart contains a subscription product. This happens if the “Allow customers to create an account during checkout” option is disabled in combination with WooCommerce Subscriptions requiring an account at checkout. Effectively, customers are locked out […]
Remove Subscriptions Follow-Ups
WooCommerce Follow-Ups allows store owners to send emails after a renewal order goes into a failed status with the idea being that a subscriber would need to resolve whatever is causing the renewal payment to fail. The same WooCommerce extension provides some settings for these emails to remove them (not send) if the order status […]
Subscription Renewal Email to Product Vendors
Using WooCommerce Product Vendors in conjunction with WooCommerce Subscriptions and want to send the vendor an email when a subscription renews? This is requested on the WooCommerce ideas board here but if you would like to implement some code to do this, here is an example of how this could be done using the Subscriptions provided filter named woocommerce_email_recipient_customer_processing_renewal_order […]
Bypass Subscriptions’ ‘pending cancellation’ status and move directly to ‘cancelled’
Update 28 June 2018: The fine folks at Prospress have provided some updated code which works with newer versions of WooCommerce Subscriptions. WooCommerce Subscriptions by default will move a subscription to a ‘pending cancellation’ status when cancelled either by the subscriber or the shop manager. The purpose of this is to provide access to a subscribed product for the remainder […]
Translate the WooCommerce Subscriptions “Sign Up Now” Button Text
Because WooCommerce Subscriptions provides a way to easily customize the “Add to Cart/Sign Up Now” button text via the admin dashboard it is impractical and unfeasible to translate that button text on the front end of your shop. WooCommerce provides a filter named woocommerce_product_add_to_cart_text which can be used to translate this text, however. Below is an example: […]
Add Custom Subscription Length
By default, WooCommerce Subscriptions, provides a large number of subscription durations that should be sufficient for most users. However, some users may wish to provide custom subscription lengths. Fortunately WooCommerce Subscriptions provides a filter called woocommerce_subscription_lengths which can be leveraged to add custom subscription durations. Below is an example of how to implement this filter: […]
Add WooCommerce billing interval
Caution: be careful with this – if the payment gateway you are using does not support the interval that you are adding this may result in undesirable behaviour. If you need to add billing intervals to WooCommerce Subscriptions this can be done using the Subscriptions provided filter named woocommerce_subscription_period_interval_strings – a very basic example below adds “every 8th” to […]
Memberships, Discounts & Subscriptions Sign-up Fee
One of the features of the WooCommerce Memberships extension is the ability to offer purchasing discounts to your customers if they are a member of a qualifying membership plan. Many site owners sell subscription products and in many cases these subscription products are configured with a sign-up fee to cover on-boarding costs for the subscriber. Since […]
Add JavaScript Confirmation for WooCommerce Subscriptions Cancellation
Snippet UPDATED FOR WooCommerce 2.6 By default, WooCommerce Subscriptions allows for users to cancel their subscriptions via their “My Account” page via a “Cancel” button. Currently, there is no confirmation – the workflow goes something like this: press cancel button, subscription is cancelled. For some shop owners this may be undesirable – these shop owners […]