JavascriptjQuery

jQuery ScrollTop Error

setTimeout( function () { if ($('.is-invalid').length) { $("body,html").stop(true, true).animate({scrollTop: parseInt($('.is-invalid').offset().top) - 250}, "slow"); //$("body").delay(100).animate({scrollTop: parseInt($('.has-error').offset().top)-75}, "slow"); } }, 300);
priyankmaniar
March 17, 2020
Woocommercewordpress

WooCommerce: Buy in multiples of 5

add_action( 'woocommerce_check_cart_items', 'woocommerce_check_cart_quantities' ); function woocommerce_check_cart_quantities() { $multiples = 5; $total_products = 0; foreach ( WC()->cart->get_cart() as $cart_item_key => $values ) { $total_products += $values;…
priyankmaniar
March 1, 2020
Excel

Excel Formulas

Recognize duplicate entries. Select entire column, right click conditional formatting -> custom formulae (https://www.youtube.com/watch?v=CrwFQqxzQn8) =COUNTIF(D:D, D2)>1
priyankmaniar
February 27, 2020