Skip to content

Instantly share code, notes, and snippets.

@manospsyx
manospsyx / woocommerce-composites-discount-over-regular-prices.php
Last active February 29, 2020 20:53
Use this snippet to allow component-level discounts over regular prices.
<?php
/**
* Plugin Name: WooCommerce Composite Products - Discounts over Regular Prices
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to allow component-level discounts over regular prices.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: https://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@manospsyx
manospsyx / wc-bundles-hide-bundled-item-prices-ppp.php
Last active February 19, 2024 20:26
Use this snippet to hide bundled item prices.
<?php
/**
* Plugin Name: WooCommerce Product Bundles - Hide Bundled Item Prices
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to hide bundled item prices in all templates.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: https://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@manospsyx
manospsyx / woocommerce-composites-hide-cart-order-components.php
Last active November 22, 2021 04:45
Use this snippet to hide Components in the cart, checkout, order and e-mail templates
<?php
/**
* Plugin Name: WooCommerce Composite Products - Hide Components in all Templates
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to hide Components in the cart, checkout, order and e-mail templates.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: https://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@manospsyx
manospsyx / woocommerce-composites-force-seq-comp-progress.php
Last active February 29, 2020 20:42
Use this snippet to enforce a sequential configuration of Components when using the Componentized layout.
<?php
/**
* Plugin Name: WooCommerce Composite Products - Sequential Componentized Configuration
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to enforce a sequential configuration of Components when using the Componentized layout.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: https://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@manospsyx
manospsyx / woocommerce-composites-append-component-options.php
Last active February 29, 2020 20:42
Use this snippet to display a “Load More” button for appending additional component options, instead of using pagination.
<?php
/**
* Plugin Name: WooCommerce Composite Products - Append Component Options
* Plugin URI: https://www.woothemes.com/products/composite-products/
* Description: Use this snippet to display a “Load More” button for appending additional component options, instead of using pagination.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: https://www.somewherewarm.net/
* Developer: Manos Psychogyiopoulos
*
@manospsyx
manospsyx / woocommerce-composites-hide-incompatible-component-options.php
Last active February 29, 2020 20:41
Use this snippet to have incompatible selections completely hidden, instead of greyed-out, when using Scenarios.
<?php
/**
* Plugin Name: WooCommerce Composite Products - Hide Component Options Disabled by Scenarios
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to have incompatible selections completely hidden, instead of greyed-out, when using Scenarios.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: https://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@manospsyx
manospsyx / woocommerce-bundles-variable-container-weight.php
Last active February 29, 2020 20:41
Use this snippet to have the weight of bundled products added to the container weight when the Non-Bundled Shipping option is unchecked.
<?php
/**
* Plugin Name: WooCommerce Product Bundles - Variable Container Weight
* Plugin URI: https://woocommerce.com/products/product-bundles/
* Description: Use this snippet to have the weight of bundled products added to the container weight when the Shipped Individually item option is unchecked.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: https://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@manospsyx
manospsyx / woocommerce-composites-sort-by-menu-order.php
Last active February 29, 2020 20:40
Use this snippet to make the "default" Component Options sorting option operate based on "menu_order".
<?php
/**
* Plugin Name: WooCommerce Composite Products - Sort Component Options by Menu Order
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to make the "default" Component Options sorting option operate based on "menu_order".
* Version: 1.0
* Author: SomewhereWarm
* Author URI: https://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@manospsyx
manospsyx / woocommerce-composites-sort-by-title.php
Last active February 29, 2020 20:40
Use this snippet to make the "default" Component Options sorting option operate based on "title".
<?php
/**
* Plugin Name: WooCommerce Composite Products - Sort Component Options by Product Title
* Plugin URI: https://woocommerce.com/products/composite-products/
* Description: Use this snippet to make the "default" Component Options sorting option operate based on "title".
* Version: 1.0
* Author: SomewhereWarm
* Author URI: https://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@manospsyx
manospsyx / woocommerce-bundles-remove-optional-suffix.php
Last active February 29, 2020 20:39
Use this snippet to remove the "- optional" suffix displayed next to the title of optional bundled items.
<?php
/**
* Plugin Name: WooCommerce Product Bundles - Remove Optional Suffix
* Plugin URI: https://woocommerce.com/products/product-bundles/
* Description: Use this snippet to remove the "- optional" suffix displayed next to the title of optional bundled items.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: https://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*