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
//Add directly to the product page | |
//Header Scripts | |
<script> | |
jQuery(function() { | |
jQuery('a.skip').css("display","none"); | |
jQuery('.summary form').submit(function(e){ | |
var ck_box = jQuery('input[type="checkbox"]:checked').length; |
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
/////////////////////////////////////////////////////////////////////////////////////////////////// | |
//CUSTOM CODE | |
////////////////////////////////////////////////////////////////////////////////////////////////// | |
//Hide Add to Cart notice to all | |
//add_filter( 'wc_add_to_cart_message_html', '__return_null' ); | |
//Change free to $0 in product Page | |
add_filter('woocommerce_free_price_html', 'changeFreePriceNotice', 10, 2); | |
function changeFreePriceNotice($price, $product) { | |
return '<span class="amount">$0</span>'; |
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
/* | |
CSS for Package | |
*/ | |
.woocommerce div.product div.summary .price, button.single_add_to_cart_button.button.alt { | |
float: left !important; | |
} | |
.product_cat-package .gform_wrapper .gform_previous_button { | |
float: right !important; | |
bottom: -165px; | |
right: 150px; |
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
<script type="text/javascript"> | |
function gform_format_option_label( fullLabel, fieldLabel, priceLabel, selectedPrice, price, formId, fieldId ) { | |
return fieldLabel + '<span class="ginput_price">$'+price.toFixed(2)+'</span>'; | |
} | |
</script> |
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
<script> | |
//Add .change() in your result code if you wish the value of this field will add to the gravity form total | |
$('#input_21_29').val('$'+ (parseInt(distance)-35) * 3).change(); | |
</script> |
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
<?php | |
/* | |
Title: Woo Function | |
Version: 2.4 | |
Author : Development Funeral Futurist | |
URL: http://www.funeralfuturist.com/ | |
Date: 2018-08-13 | |
*/ | |
//Add Genesis Layout To |
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
<?php | |
add_filter('body_class','my_body_classes'); | |
function my_body_classes($c) { | |
wp_is_mobile() ? $c[] = 'mobile' : null; | |
return $c; | |
} |
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
<?php | |
function remove_plus_function() { | |
if ( is_singular('product') ) { // only single product pages ?> | |
<script type="text/javascript"> | |
function gform_format_option_label(fullLabel, fieldLabel, priceLabel, selectedPrice, price, formId, fieldId) { | |
// Disable option pricing. Simply return the field label. | |
// This removes the "+$25.00" or "-$100.00" from the dropdown. | |
price=(price == 0 ? "" : ' $' + price.toFixed(2) ); | |
finallabel=fieldLabel + '<span class="ginput_price_r">'+ price + '<span>'; | |
return finallabel; |
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
<?php | |
add_filter ( 'genesis_home_crumb', 'sp_breadcrumb_home_link' ); // Genesis >= 1.5 | |
function sp_breadcrumb_home_link( $crumb ) { | |
if ( is_singular( 'product' ) || is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) { | |
return preg_replace('/href="[^"]*"/', 'href="/shop/"', $crumb); | |
} | |
} | |
?> |
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
// Add this to your current functions.php removed once done | |
$wp_user_query = new WP_User_Query(array('role' => 'Subscriber')); | |
// Get the results | |
$users = $wp_user_query->get_results(); | |
// Check for results | |
if (!empty($users)) { |
NewerOlder