WooCommerce, Remote Work & Other Fancy Stuff

Just another WordPress site

One Coupon Code – Two Discounts

March 23, 2021 by Will Leave a Comment

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 […]

Filed Under: WooCommerce Subscriptions Tagged With: snippet, snippets

Conditionally Allow Customer Registration

November 10, 2020 by Will Leave a Comment

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 […]

Filed Under: WooCommerce, WooCommerce Subscriptions Tagged With: snippet, snippets

Remove Subscriptions Follow-Ups

May 29, 2019 by Will Leave a Comment

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 […]

Filed Under: Follow-Ups, WooCommerce Subscriptions Tagged With: snippet

Subscription Renewal Email to Product Vendors

December 4, 2018 by Will Leave a Comment

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 […]

Filed Under: Product Vendors, WooCommerce Subscriptions Tagged With: snippet, snippets

Bypass Subscriptions’ ‘pending cancellation’ status and move directly to ‘cancelled’

July 6, 2016 by Will 3 Comments

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 […]

Filed Under: WooCommerce Subscriptions Tagged With: snippet

Translate the WooCommerce Subscriptions “Sign Up Now” Button Text

June 15, 2016 by Will Leave a Comment

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:   […]

Filed Under: WooCommerce, WooCommerce Subscriptions Tagged With: snippet

Add Custom Subscription Length

March 25, 2016 by Will Leave a Comment

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: […]

Filed Under: WooCommerce, WooCommerce Subscriptions Tagged With: snippet, snippets

Add WooCommerce billing interval

February 16, 2016 by Will Leave a Comment

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 […]

Filed Under: WooCommerce Subscriptions Tagged With: snippet, snippets

Memberships, Discounts & Subscriptions Sign-up Fee

September 4, 2015 by Will Leave a Comment

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 […]

Filed Under: WooCommerce, WooCommerce Memberships, WooCommerce Subscriptions Tagged With: snippet, snippets

Add JavaScript Confirmation for WooCommerce Subscriptions Cancellation

May 13, 2015 by Will Leave a Comment

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 […]

Filed Under: Template Overrides, WooCommerce, WooCommerce Subscriptions Tagged With: JavaScript, snippets, subscriptions

© 2023 · WooCommerce, Remote Work & Other Fancy Stuff · Epstein didn't kill himself