WooCommerce, Remote Work & Other Fancy Stuff

Just another WordPress site

Hide Shipping Methods – Payment Request

March 29, 2021 by Will Leave a Comment

It’s possible to conditionally remove shipping methods on the checkout page and there are several examples of how this can be done with code. Some of these examples can be seen here: https://docs.woocommerce.com/document/hide-other-shipping-methods-when-free-shipping-is-available/ However, what if we want to hide those shipping methods only if the purchase is done via a WooCommerce Stripe provided payment […]

Filed Under: Stripe, WooCommerce Tagged With: apple-pay, google-pay, payment-request-button, snippet, snippets

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

WooCommerce Bookings Block Number Discount

October 21, 2020 by Will Leave a Comment

If we visit the wayback machine and look at the changelog for WooCommerce Bookings we can see that in November of 2015 a new coupon type was added to discount bookable persons. There is no equivalent coupon to discount by some number of blocks. Fortunately, the WooCommerce Coupon class provides a filter that can be […]

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

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

Table Rate Shipping – Price Based Excluding Tax

November 1, 2018 by Will Leave a Comment

Using a version of Table Rate Shipping equal to or greater than 3.0.11 and now price based shipping is using the tax inclusive price of products to calculate shipping rates? That is expected behavior and was a bug fix from an earlier version. However, in some instances, perhaps you want to calculate the shipping on […]

Filed Under: Table Rate Shipping, WooCommerce Tagged With: snippet, snippets

WooCommerce Stripe – Force 3D Secure

April 25, 2018 by Will 4 Comments

By default, the WooCommerce Stripe Gateway will only redirect to a 3D Secure page if 3D Secure is required on the source credit card. There are some cards, however, which support 3D Secure but do not require 3D Secure, i.e. the 3D Secure is optional. These types of cards, by default, will not redirect to the 3D Secure page. The Stripe […]

Filed Under: WooCommerce Tagged With: snippet, snippets

Search WooCommerce Customers With Numeric Usernames

June 14, 2017 by Will Leave a Comment

WooCommerce versions prior to 3.0 would allow for the search of customers whose usernames were numeric only. That changed in version 3.0 and if the search is numeric, the search will only search by user id. If you have usernames that are numeric, however, you can hook into the AJAX action before WooCommerce does and use […]

Filed Under: WooCommerce Tagged With: snippet, snippets

Retrieve Booking Meta Data

June 1, 2017 by Will 8 Comments

Since the introduction of Bookings version 1.10.0 meta data associated with a booking has been removed from WooCommerce orders. This may add a level of frustration, particularly when using some sort of exporter which would have effortlessly fetched the booking data if that data were part of the order line item data. This is an unfortunate side […]

Filed Under: Bookings, Order/Customer Export, WooCommerce Tagged With: snippet, snippets

Display WooCommerce Photography Products in Shop

April 27, 2017 by Will Leave a Comment

By default, WooCommerce Photography products are not displayed in the WooCommerce shop or any other normal product archives. The idea behind that is that this particular extension is meant for wedding photographers and similar use cases. Suppose, however, that you wish to sell all of your photographs to the public at large. How can this […]

Filed Under: Photography Tagged With: snippet, snippets

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

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