Skip to content

Instantly share code, notes, and snippets.

View zigojacko's full-sized avatar

Geoff Jackson zigojacko

View GitHub Profile
@zigojacko
zigojacko / magento2-commands-cheatsheet.md
Last active December 16, 2022 14:38
Magento 2 CLI Commands / Cheatsheet

Magento 2 CLI Commands / Cheatsheet

Lists available Magento 2 CLI commands

  • bin/magento

Cache

Check the status of cache types

bin/magento cache:status

Output:

@zigojacko
zigojacko / gist:4833f6017721e0f4fc1b840c7f92b420
Created June 4, 2020 15:11
Add custom checkbox to WooCommerce checkout
//Source: https://stackoverflow.com/a/45911284/898933
// Add custom checkout field: woocommerce_review_order_before_submit
add_action( 'woocommerce_review_order_before_submit', 'my_custom_checkout_field' );
function my_custom_checkout_field() {
echo '<div id="my_custom_checkout_field">';
woocommerce_form_field( 'my_field_name', array(
'type' => 'checkbox',
'class' => array('input-checkbox'),
@zigojacko
zigojacko / grav-cheatsheet.md
Last active February 5, 2021 15:26
Grav Cheatsheet

Grav Cheatsheet (useful commands)

site object

To get the title of your site: {{ site.title }}

Navigation Menu

Don't show page in navigation menu: