Skip to content

Instantly share code, notes, and snippets.

View sewmyheadon's full-sized avatar

Eric Amundson sewmyheadon

View GitHub Profile
@sewmyheadon
sewmyheadon / gist:ac1e9f0a34ab2fa8f2624d9a78caf9b2
Created October 27, 2016 15:04 — forked from ChromeOrange/gist:8287925
Delete all tax rates from WooCommerce
/**
* Delete ALL WooCommerce tax rates
*
* Add to your theme functions.php then go to woocommerce -> system status -> tools and there will be a delete all tax rates button http://cld.wthms.co/tXvp
*/
add_filter( 'woocommerce_debug_tools', 'custom_woocommerce_debug_tools' );
function custom_woocommerce_debug_tools( $tools ) {
$tools['woocommerce_delete_tax_rates'] = array(
@sewmyheadon
sewmyheadon / .gitignore
Last active October 18, 2016 21:14 — forked from salcode/.gitignore
.gitignore for WordPress
# -----------------------------------------------------------------
# .gitignore for WordPress ver 20161009
# -----------------------------------------------------------------
#
# This file:
# • is for WordPress sites using the default file/folder structure,
# • specifies which files are tracked/untracked by git.
#
# .gitignore docs:
# https://git-scm.com/docs/gitignore
@sewmyheadon
sewmyheadon / woocommerce-sage-template-part-overrides.md
Last active August 29, 2015 14:25 — forked from drawcard/woocommerce-sage-template-part-overrides.md
Woocommerce - Using template part overrides in Sage

So, you know how to override a template file in Woocommerce using Sage, but you're having trouble changing something within the deeper level of that template file. For example, you want to change the output HTML structure of a given part of the product page loop, or incorporate a Bootstrap class into a button element without using Jquery to inject it. Here's how you can override deeper level parts, the default WC theme elements.

Prerequisites

Now you're familiar with how to do Sage + Woocommerce templates, it's time to make it happen.

The template page override

@sewmyheadon
sewmyheadon / .gitignore
Last active August 29, 2015 14:00 — forked from octocat/.gitignore
Basic .gitignore file
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #