Skip to content

Instantly share code, notes, and snippets.

Manos Psychogyiopoulos franticpsyx

Block or report user

Report or block franticpsyx

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
@franticpsyx
franticpsyx / wc_pb_dependency_relationship_and.php
Created Dec 20, 2017
Switch on AND dependency relationship in WC Product Dependencies
View wc_pb_dependency_relationship_and.php
add_filter( 'wc_pd_dependency_relationship', 'wc_pb_dependency_relationship_and', 10, 2 );
function wc_pb_dependency_relationship_and( $relationship, $product ) {
$relationship = 'and';
return $relationship;
}
@franticpsyx
franticpsyx / composites_sale_status_tweak.php
Last active Dec 21, 2017
Use this snippet to prevent composites with component discounts from appearing as on-sale.
View composites_sale_status_tweak.php
<?php
/**
* Plugin Name: WooCommerce Composite Products - Sale Status Tweak
* Plugin URI: http://woocommerce.com/products/composite-products/
* Description: Prevents Composite Products with component discounts from appearing as on-sale.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: http://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@franticpsyx
franticpsyx / woocommerce-composites-prevent-subtotals-mods.php
Last active Apr 26, 2018
Prevents Composite Products from modifying the appearance of cart/order item subtotals. Requires v3.7+.
View woocommerce-composites-prevent-subtotals-mods.php
<?php
/**
* Plugin Name: WooCommerce Composite Products - Prevent Cart/Order Item Subtotal Modifications
* Plugin URI: http://woocommerce.com/products/composite-products/
* Description: Prevents Composite Products from modifying the appearance of cart/order item subtotals. Requires v3.7+.
* Version: 1.1
* Author: SomewhereWarm
* Author URI: http://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@franticpsyx
franticpsyx / woocommerce-bundles-prevent-subtotals-mods.php
Last active Jun 26, 2018
Prevents Product Bundles from aggregating item subtotals in cart/order templates.
View woocommerce-bundles-prevent-subtotals-mods.php
<?php
/**
* Plugin Name: WooCommerce Product Bundles - Prevent Subtotals Aggregation
* Plugin URI: http://woocommerce.com/products/product-bundles/
* Description: Prevents Product Bundles from displaying aggregated item subtotals in cart/order templates. Requires v5.5+.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: http://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@franticpsyx
franticpsyx / bundles-stock-cache-debug.php
Last active Mar 25, 2018
Use this plugin to disable the bundled item stock status caching mechanism introduced in Product Bundles v5.0+.
View bundles-stock-cache-debug.php
<?php
/**
* Plugin Name: WooCommerce Product Bundles - Disable Stock Cache
* Plugin URI: http://woocommerce.com/products/product-bundles/
* Description: Use this plugin to disable the bundled item stock status caching mechanism introduced in Product Bundles v5.0+.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: http://somewherewarm.gr/
*
* Requires at least: 4.1
@franticpsyx
franticpsyx / woocommerce-bundles-optional-checkbox-state.php
Last active Apr 10, 2019
Use this plugin to have optional bundled items checked/selected by default.
View woocommerce-bundles-optional-checkbox-state.php
<?php
/**
* Plugin Name: WooCommerce Product Bundles - Optional Items Checked by Default
* Plugin URI: http://woocommerce.com/products/product-bundles/
* Description: Use this plugin to have optional bundled items checked/selected by default.
* Version: 1.1
* Author: SomewhereWarm
* Author URI: http://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@franticpsyx
franticpsyx / woocommerce-composites-autotransition.php
Last active Jul 10, 2017
Use this snippet to automatically move to the next step after making a valid selection.
View woocommerce-composites-autotransition.php
<?php
/**
* Plugin Name: WooCommerce Composite Products - Autotransition
* Plugin URI: http://woocommerce.com/products/composite-products/
* Description: Use this snippet to automatically move to the next step after making a valid selection.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: http://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@franticpsyx
franticpsyx / woocommerce-composite-products-js-api-bootstrapping.js
Last active Feb 1, 2018
Composite Products JS API - Script Bootstrapping
View woocommerce-composite-products-js-api-bootstrapping.js
;( function ( $, window, document, undefined ) {
$( '.composite_data' )
.on( 'wc-composite-initializing', function( event, composite ) {
// Add your code here.
} );
} ) ( jQuery, window, document );
@franticpsyx
franticpsyx / woocommerce-bundles-override-default-quantity.php
Last active Aug 16, 2019
Use this snippet to override the initial quantity value of a bundled item (by default equal to the minimum quantity).
View woocommerce-bundles-override-default-quantity.php
<?php
/**
* Plugin Name: WooCommerce Product Bundles - Default Bundled Item Quantity Override
* Plugin URI: http://woocommerce.com/products/composite-products/
* Description: Use this snippet to override the initial quantity value of a bundled item (by default equal to the minimum quantity).
* Version: 1.0
* Author: SomewhereWarm
* Author URI: http://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@franticpsyx
franticpsyx / woocommerce-composites-custom-price-html.php
Last active Nov 5, 2018
Use this snippet to define your own custom price strings for Composite products, for instance when the "Hide Price" option is checked to reduce server load.
View woocommerce-composites-custom-price-html.php
<?php
/**
* Plugin Name: WooCommerce Composite Products - Custom Composite Price Strings
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to define your own custom price strings for Composite products, for instance when the "Hide Price" option is checked to reduce server load.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: https://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
You can’t perform that action at this time.