WooCommerce, Remote Work & Other Fancy Stuff

Just another WordPress site

WooCommerce Memberships – Hide Product

October 12, 2016 by Will Leave a Comment

WooCommerce and many of its extensions are highly customizable. WooCommerce Memberships is certainly included in the list of highly customizable extensions. As an example – suppose a merchant is selling products that grant access to a memberships plan and once a purchase of one of those products has been made, the merchant doesn’t want to show that product […]

Filed Under: WooCommerce Memberships Tagged With: snippet, snippets

Conditionally Hide Gravity Form

October 7, 2016 by Will Leave a Comment

Suppose you’re using WooCommerce Gravity Forms Product Add-ons on a variable product but your Gravity Form is really only applicable to one of your variations. How can you conditionally display the form for only the applicable variation? A tiny bit of inspecting the product page and a code snippet can do the trick. The code snippet that […]

Filed Under: Gravity Forms Product Add-ons, WooCommerce Tagged With: snippet, snippets

Add Northern Ireland to WooCommerce Shipping Zones

October 4, 2016 by Will Leave a Comment

WooCommerce, by default, only recognizes countries/regions which are listed in the ISO 3166 standard. The body who determines valid countries is a trusted and reliable source and it has been the stance of the development team to use this list as the “source of truth”. This does tend to cause problems for example, if a […]

Filed Under: WooCommerce Tagged With: snippet, snippets

Complex Pricing in WooCommerce Bookings

May 21, 2016 by Will 12 Comments

WooCommerce Bookings provides a way for people to sell time based products and it can be made to work with a wide variety of use-cases. Unfortunately, in order to be able to work with this wide range of use-cases the configuration can be quite challenging and the interface can get difficult to use to set up […]

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

Hide WooCommerce sub menus from Shop Managers

March 25, 2016 by Will Leave a Comment

You may wish to hide certain sub menu items from your Shop Managers, WooCommerce Settings, Add-ons and the System Status report for example. The snippet below will do exactly that, but you can adjust as necessay by adding or removing submenu slugs from the `$remove` array. Add this snippet to your theme’s functions.php file or […]

Filed Under: WooCommerce Tagged With: snippet, snippets

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

Get Full Country Name in CSV Export

March 25, 2016 by Will Leave a Comment

The Order/Customer CSV Export extension is often used for forwarding orders to fulfillment services or for generating mailing labels for shipping products. If your shop is based in the U.S. and you are shipping products to overseas locations, the U.S. postal service requires the country name to be fully spelled out, but by default, the […]

Filed Under: WooCommerce Tagged With: snippet, snippets

Filter Sensei Content Drip Start Time

February 25, 2016 by Will Leave a Comment

If you are using the Sensei Content Drip extension, the drip emails get scheduled for whatever time of day you happen to activate the extension. If you would like to assert some control over what time of day the emails get sent, you can use the WordPress provided filter named schedule_event to alter the timestamp that is […]

Filed Under: Sensei 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

How to Replace Sensei Course Archive Label Text

February 12, 2016 by Will Leave a Comment

The default label text for Sensei course archives can be changed by implementing the sensei_archive_course_filter_by_options filter. Below is an example of how you might change the ‘All’ and ‘Featured’ labels:   Not sure what to do with code snippets? See What Do I Do With These Code Snippets?

Filed Under: Sensei Tagged With: snippet, snippets

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • Next Page »

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

We use cookies to ensure that we give you the best experience on our website. Continued use of this site is interpreted as your acceptance of our cookie policy.OkSee Our Cookie Policy