Last active
December 26, 2015 18:09
-
-
Save ejntaylor/7192674 to your computer and use it in GitHub Desktop.
WooCommerce Mods in functions.php
This file contains 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
/* 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