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_action( 'woocommerce_removed_coupon', 'cart_prices', 0 ); | |
add_action( 'woocommerce_after_calculate_totals', 'cart_prices', 0 ); | |
add_action( 'woocommerce_cart_loaded_from_session', 'cart_prices', 0 ); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bootstrap Nav Example</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> | |
<style> |
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
// store the currently selected tab in the hash value | |
$("ul.nav.panel-tabs > li > a").on("shown.bs.tab", function(e) { | |
var id = $(e.target).attr("href").substr(1); | |
window.location.hash = id; | |
}); | |
// on load of the page: switch to the currently selected tab | |
var hash = window.location.hash; | |
$('ul.nav.panel-tabs a[href="' + hash + '"]').tab('show'); |
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
https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_display-ipns-history |
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
$.fn.isInViewport = function () { | |
var elementTop = $(this).offset().top; | |
var elementBottom = elementTop + $(this).outerHeight(); | |
var viewportTop = $(window).scrollTop(); | |
var viewportBottom = viewportTop + $(window).height(); | |
return elementBottom > viewportTop && elementTop < viewportBottom; | |
}; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" type="text/css" href="./slick/slick.css"/> | |
<!-- Add the slick-theme.css if you want default styling --> | |
<link rel="stylesheet" type="text/css" href="./slick/slick-theme.css"/> |
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> | |
function imgError(image) { | |
image.onerror = ""; | |
image.src = "link-to-backup-image.svg"; | |
return true; | |
} | |
</script> | |
<img src="some-image-url.jpeg" onerror="imgError(this);" > |
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
/* requires jquery */ | |
jQuery(function($){ | |
var jump = function(e) { | |
if(e){ | |
e.preventDefault(); | |
var href = $(this).attr("href"); | |
var hashvalue = ''; | |
if( href.length != 0){ | |
var site_url = href.split('#')[0]; | |
hashvalue = href.substr(href.indexOf("#")); |
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('woo_preview_emails_min_capability', 'wpe5321_set_min_capacity'); | |
function wpe5321_set_min_capacity($capability){ | |
$capability = 'manage_woocommerce'; | |
return $capability; | |
} |
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_action( 'wp_enqueue_scripts', 'child_enqueue_styles' ); | |
function child_enqueue_styles() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | |
} | |
add_action('woocommerce_after_checkout_validation', 'digthis_two_step_checkout_validate', 9999, 2); | |
function digthis_two_step_checkout_validate($data, $errors) { | |