This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Sort the mix and match children alphabetically | |
| * | |
| * @param array $children : an array of $product objects | |
| * @param obj $product : the container product | |
| * @return array | |
| */ | |
| function mnm_order_children_args( $children, $product ){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: WooCommerce Sortable Enhanced Product Search | |
| * Plugin URI: https://gist.github.com/helgatheviking/279ebd34b1e4de7e2380ca3b9936e9c4 | |
| * Description: Sort enhanced product search via drag and drop, ideal for Mix and Match, Bundles, etc | |
| * Version: 1.0.0b | |
| * Author: Kathy Darling | |
| * Author URI: http://kathyisawesome.com/ | |
| * | |
| * Copyright: © 2016 Kathy Darling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Simple User Listing Taxonomy Support | |
| * Plugin URI: https://gist.github.com/helgatheviking/e032c4103b0d6caf997439f1df3bcdbe | |
| * Description: add a taxonomy query to users | |
| * Version: 1.0.0b | |
| * Author: Kathy Darling | |
| * Author URI: http://kathyisawesome.com/ | |
| * | |
| * Copyright: © 2016 Kathy Darling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action( 'woocommerce_mnm_row_item_description', 'mnm_add_short_description', 15 ); | |
| function mnm_add_short_description( $mnm_product ){ | |
| if ( ! $mnm_product->post->post_excerpt ) { | |
| return; | |
| } | |
| ?> | |
| <div itemprop="description"> | |
| <?php echo apply_filters( 'woocommerce_short_description', $mnm_product->post->post_excerpt ) ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: WooCommerce Name Your Price Sold Individually | |
| * Plugin URI: https://gist.github.com/helgatheviking/25e57fe033d719059dcf994ffe33d718 | |
| * Description: Double check enforcement of "Sold Individually" for NYP items | |
| * Version: 1.0.0 | |
| * Author: Kathy Darling | |
| * Author URI: http://kathyisawesome.com/ | |
| * | |
| * Copyright: © 2016 Kathy Darling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: WooCommerce Name Your Price Sold Individually | |
| * Plugin URI: https://gist.github.com/helgatheviking/a8802255167751a5dd746f83cdfc8716 | |
| * Description: Stricter enforcement of "Sold Individually" for NYP items | |
| * Version: 1.2.0 | |
| * WC requires at least: 2.6.3 | |
| * Author: Kathy Darling | |
| * Author URI: http://kathyisawesome.com/ | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @type {Object} JavaScript namespace for our application. | |
| */ | |
| var Custom_Modal = {}; | |
| (function($, Custom_Modal) { | |
| var $ = jQuery; | |
| _.extend( Custom_Modal, { view: {}, controller: {} } ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: WooCommerce Shipping Contact | |
| Plugin URI: https://github.com/helgatheviking/wc-shipping-contact | |
| Description: Add a shipping email field to checkout and notify of new orders | |
| Version: 1.1.0 | |
| Author: Kathy Darling | |
| Author URI: http://kathyisawesome.com | |
| Requires at least: 4.0 | |
| Tested up to: 4.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Add product descriptions after product title | |
| * fair warning: longer descriptions will be very cramped, this is just an example | |
| * @param obj $mnm_product: the mix and matched product | |
| * @param obk $product, the parent/container product | |
| */ | |
| function kia_add_descriptions_to_mnm( $mnm_product, $product ){ | |
| $short_description = $mnm_product->post->post_excerpt; | |
| if ( ! $short_description ) { |