WooCommerce, Remote Work & Other Fancy Stuff

Just another WordPress site

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

Use Custom SKU field From LightSpeed POS as the WooCommerce SKU

July 11, 2016 by Will 1 Comment

By default, the WooCommerce LightSpeed POS will use the item id from LightSpeed as the product sku on your WooCommerce shop. You may wish to use the custom SKU on LightSpeed instead. The good news is that when a product is imported from LightSpeed to WooCommerce the initial data associated with that product is stored in the product […]

Filed Under: LightSpeed POS, WooCommerce Tagged With: snippet

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

Dynamically Change Order Date on Status Change

June 14, 2016 by Will Leave a Comment

Are old failed payments that are eventually paid for causing havoc with your reporting workflow because they get missed? WooCommerce offers a variety of action hooks on order status changes that can be used to dynamically change the order date. As an example of this, see the code snippet below: Not sure what to do with […]

Filed Under: WooCommerce Tagged With: snippet

Automatically Mark Order as Not Exported on Status Change

June 3, 2016 by Will Leave a Comment

Automatic exports with the Customer/Order CSV Export will not export orders that have previously been marked as exported. This is intentional to prevent duplication of exported orders. However, consider this case: An export was done which includes orders in a failed status. The automatic export configuration is changed to only include orders in a processing status The […]

Filed Under: Order/Customer Export Tagged With: snippet

Japanese State Names in Order/Customer CSV Export

June 1, 2016 by Will Leave a Comment

3 November 2016 Update: As of WooCommerce Customer/Order CSV Export version 4.1, this will no longer be needed as version 4.1 will be using a state name instead of the code for the five countries which use this type of format. Japanese addresses are a bit of a special case – apparently they roll a little bit differently. […]

Filed Under: Order/Customer Export Tagged With: snippet

Move WooCommerce Box Office Form Fields

May 31, 2016 by Will 9 Comments

By Default, WooCommerce Box Office renders the add to cart/buy ticket now button before the form fields. In some cases this may be undesirable. If you would rather render the fields before the button, use the below snippet of code: Not sure what to do with code snippets? See What Do I Do With These […]

Filed Under: Box Office Tagged With: snippet

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

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

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