Skip to content

Instantly share code, notes, and snippets.

Kathy helgatheviking

Block or report user

Report or block helgatheviking

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
@helgatheviking
helgatheviking / functions.php
Last active Aug 8, 2019 — forked from kloon/functions.php
WooCommerce Dropdown Product Quantity (not compatible with Mix and Match, Product Bundles, etc)
View functions.php
<?php
/**
* Change the quantity input to select.
*
* @param array $args Args for the input.
* @param WC_Product|null $product Product.
* @param boolean $echo Whether to return or echo|string.
*
* @return string
*/
@helgatheviking
helgatheviking / mnm-product-thumbnail.php
Created Jul 9, 2019
Mix and Match Item Thumbnail Template, copy to yourtheme/woocommerce/single-product/mnm/mnm-product-thumbnail.php
View mnm-product-thumbnail.php
<?php
/**
* Mix and Match Item Thumbnail
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/mnm/mnm-product-thumbnail.php.
*
* HOWEVER, on occasion WooCommerce Mix and Match will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
@helgatheviking
helgatheviking / wc-nyp-variable-periods.php
Last active Jul 5, 2019
Name Your Price and Subscriptions improvements
View wc-nyp-variable-periods.php
<?php
/*
* Plugin Name: WooCommerce Name Your Price: Variable Billing Periods Improvement
* Plugin URI: https://gist.github.com/helgatheviking/0efef797f29005202cb8e71ff2ae809c
* Description: Customizations for a Better Donation
* Version: 1.0.0
* Author: Kathy Darling
* Author URI: http://kathyisawesome.com
* Requires at least: 4.9.0
* Tested up to: 4.9.6
@helgatheviking
helgatheviking / wc-fgc-coupon-redemption-shortcode.php
Created May 30, 2019
WooCommerce Coupon Redemption Form Shortcode
View wc-fgc-coupon-redemption-shortcode.php
<?php
/**
* Plugin Name: WC Coupon Redemption Form Shortcode
* Plugin URI: https://kathyisawesome.com/
* Description: Display coupon form with [fgc_form] shortcode
* Version: 1.0.0
* Author: Kathy Darling
* Author URI: https://kathyisawesome.com
*/
@helgatheviking
helgatheviking / wc-variable-nyp-pb-compat.php
Created May 22, 2019
Add support for Variable NYP products to Product Bundles.
View wc-variable-nyp-pb-compat.php
<?php
/*
* Plugin Name: WC Variable NYP + Product Bundles compat
* Plugin URI: https://gist.github.com/helgatheviking/88a967bb0da86b6ff415fce10c8c16ea
* Description: Add support for Variable NYP products to Product Bundles.
* Version: 1.0.0
* Author: Kathy Darling
* Author URI: http://kathyisawesome.com
* Requires at least: 5.0.0
* Tested up to: 5.1.1
@helgatheviking
helgatheviking / percentage-error-strings-for-mnm.php
Created Apr 23, 2019
Percentage error strings for Mix and Match
View percentage-error-strings-for-mnm.php
/**
* Modify the MNM Javascript error strings
*
* @param array
* @return array
*/
function kia_mnm_add_to_cart_params( $args ) {
$args['i18n_percentage_message'] = __( 'Your bag is %s percent full.', 'your-text-domain' );
$args['i18n_percentage_error'] = __( '%v Please continue to 100 percent.', 'your-text-domain' );
@helgatheviking
helgatheviking / wc-nyp-claue-compat.php
Last active Mar 30, 2019
Add support for Claue theme's version of quickview.
View wc-nyp-claue-compat.php
<?php
/**
* Plugin Name: WooCommerce Name Your Price Compatibility for Claue Theme
* Plugin URI: http://www.woocommerce.com/products/name-your-price/
* Description: Add support for Claue theme's version of quickview.
* Version: 1.0.0.beta.1
* Author: Kathy Darling
* Author URI: http://kathyisawesome.com/
*
* Copyright: © 2019 Kathy Darling
@helgatheviking
helgatheviking / charitable-recurring-107-cli-data-generator.php
Last active May 3, 2019
Create dummy data for Charitable Recurring 1.0.7
View charitable-recurring-107-cli-data-generator.php
<?php
/**
* Plugin Name: Charitable - Recurring Donations 1.0.7 CLI Data Generator
* Plugin URI: https://www.wpcharitable.com/extensions/charitable-recurring-donations/
* Description: Create dummy data for Recurring 1.0.7
* Version: 1.0.0.beta.1
* Author: Kathy Darling
* Author URI: https://www.kathyisawesome.com
* Requires at least: 5.0
* Tested up to: 5.1
@helgatheviking
helgatheviking / wc-fgc-sync.php
Created Mar 25, 2019
Sync the quantity of the Free Gift product to the quantity of a required purchased product
View wc-fgc-sync.php
<?php
/**
* Plugin Name: WooCommerce Free Gift Coupons: Sync to Required Products
* Plugin URI: http://www.woocommerce.com/products/free-gift-coupons/
* Description: Sync the quantity of the Free Gift product to the quantity of a required purchased product
* Version: 1.0.0.beta.1
* Author: Kathy Darling
* Author URI: http://kathyisawesome.com
* Requires at least: 4.4
* Tested up to: 5.1.0
@helgatheviking
helgatheviking / charitable-cli-data-generator.php
Last active Mar 21, 2019
Create dummy data for Charitable
View charitable-cli-data-generator.php
<?php
/**
* Plugin Name: Charitable - Donations CLI Data Generator
* Plugin URI: https://www.wpcharitable.com
* Description: Create dummy data
* Version: 1.0.0.beta.1
* Author: Kathy Darling
* Author URI: https://www.kathyisawesome.com
* Requires at least: 5.0
* Tested up to: 5.1
You can’t perform that action at this time.