Skip to content

Instantly share code, notes, and snippets.

View RemcoHalman's full-sized avatar
👋
Hello there!

Remco Halman RemcoHalman

👋
Hello there!
View GitHub Profile
@RemcoHalman
RemcoHalman / hide-flat-rate.php
Last active February 12, 2022 12:51
Hide flat rate on Woocommerce checkout
<?php
/*
Hides flat rate on checkout page. Tested and working on Woocommerce V6.2.0
Change the the $product_category to be your selected category.
*/
add_filter( 'woocommerce_package_rates', 'conditional_hide_shipping_methods', 100, 2 );
function conditional_hide_shipping_methods( $rates, $package ){
@RemcoHalman
RemcoHalman / .git-commit-template.txt
Last active May 26, 2021 08:36
Commit message template that helps you write great commit messages and enforce it across your team.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
@RemcoHalman
RemcoHalman / titleMixin.md
Created October 10, 2020 10:45
Adding TitleMixin to Vue app (skipping Webpack option)

create a new folder in src named mixins

The titleMixin

Then add titleMixin.js to src/mixins

in titleMixin.js add:

function getTitle (vm) {
 const { title } = vm.$options

Commit Message Format

Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:

<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>