Skip to content

Instantly share code, notes, and snippets.

@ejntaylor
Last active December 26, 2015 18:09
Show Gist options
  • Save ejntaylor/7192674 to your computer and use it in GitHub Desktop.
Save ejntaylor/7192674 to your computer and use it in GitHub Desktop.
WooCommerce Mods in functions.php
/* dynamic pricing - cumulative addition between order and product deals */
add_filter('woocommerce_dynamic_pricing_is_cumulative', 'custom_dynamic_pricing_cumulative', 10, 4);
function custom_dynamic_pricing_cumulative($default, $module_id, $cart_item, $cart_item_key) {
return true;
}
/**
* Changes the number of columns under our main image on single product pages
*
* @since 1.0
* @author WP Theme Tutorial, Curtis McHale
*/
function wptt_six_columns( $number ){
return 6;
} // wptt_four_colums
add_filter( 'woocommerce_product_thumbnails_columns', 'wptt_six_columns');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment