Skip to content

Instantly share code, notes, and snippets.

Clifton Griffin clifgriffin

Block or report user

Report or block clifgriffin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
clifgriffin / always-show-cart-on-mobile.css
Created May 26, 2020
Always show cart summary expanded on mobile when on the payment tab with Checkout for WooCommerce
View always-show-cart-on-mobile.css
.cfw-payment-method-active #cfw-cart-summary-content {
display: block !important;
padding-top: 1em; /* make sure the quantity bubbles on cart items don't leave the containers */
.cfw-payment-method-active #cfw-mobile-cart-header {
display: none !important;
clifgriffin / move-complete-order-button-to-sidebar-on-mobile.html
Last active May 26, 2020
Move complete order button to sidebar on desktop and mobile.
View move-complete-order-button-to-sidebar-on-mobile.html
<!-- Paste this into Header Scripts in Settings > CheckoutWC > General > Header Scripts -->
<style type="text/css">
.cfw-bottom-controls .place-order {
display: none;
float: right;
#cfw-cart-summary-content .place-order {
display: none;
clifgriffin / change-order-updates-text.php
Created Mar 5, 2020
Change the order updates text.
View change-order-updates-text.php
// Add to functions.php
// Do NOT include the opening PHP tag (<?php)
add_filter( 'cfw_order_updates_text', function( $text ) {
return 'Your custom order updates message!';
} );
clifgriffin / change-billing-email-validation-trigger.php
Last active Feb 8, 2020
Change validation trigger for billing email field with Checkout for WooCommerce.
View change-billing-email-validation-trigger.php
// Include in your theme's functions.php file or with your favorite snippets plugin
// Do NOT include the opening PHP tag above (<?php)
'woocommerce_checkout_fields', function( $fields ) {
// Change billing email validation trigger to focusout
$fields['billing']['billing_email']['custom_attributes']['data-parsley-trigger'] = 'focusout';
clifgriffin / express-checkout-container.css
Created Feb 4, 2020
Wrap payment request (express checkout) buttons in a container with a label like Shopify does.
View express-checkout-container.css
#cfw-payment-request-buttons {
border: 1px #d9d9d9 solid;
border-radius: 5px;
padding: 10px;
justify-content: center;
margin-bottom: 1em;
margin-top: 1em;
position: relative;
clifgriffin / nextgen-gallery.php
Last active Feb 8, 2020
Fix bug with NextGen Gallery and Checkout for WooCommerce
View nextgen-gallery.php
clifgriffin / change-billing-and-shipping-address-heading.php
Created Jan 11, 2020
Change 'Billing and Shipping address' heading for CheckoutWC
View change-billing-and-shipping-address-heading.php
// Do NOT include the opening php tag.
// Place in your theme's functions.php file
add_filter( 'cfw_billing_shipping_address_heading', function( $heading ) {
return 'Shipping address';
} );
clifgriffin / add-shortcode.php
Created Dec 31, 2019
Add a shortcode to the checkout page.
View add-shortcode.php
// Add to your functions.php file or with your favorite Snippets plugin
// Do NOT include the opening PHP tag above: <?php
add_action( 'cfw_after_cart_summary', function() {
echo do_shortcode( '[your short code]' );
} );
clifgriffin / default-login.php
Created Dec 19, 2019
Use default WooCommerce login with CheckoutWC
View default-login.php
// Do NOT include opening php tag.
// Add to functions.php file or using your favorite snippets plugin
add_filter( 'cfw_suppress_default_login_form', '__return_false' );
clifgriffin / force-different-billing-address.php
Created Nov 26, 2019
For different billing address for CheckoutWC.
View force-different-billing-address.php
// Do NOT include opening PHP tag above
// Add to functions.php
add_filter( 'cfw_force_display_billing_address', '__return_true' );
You can’t perform that action at this time.