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
AWS

AWS: Elastic IP

When an EC2 instance is stopped and started it releases te public IP address and a new public IP address is assigned. In other words,…
priyankmaniar
November 15, 2019
Ionic

Ionic V1 Cursor Lost

Sometimes span inside label takes focus along with input. Sometimes first the input takes focus then it moves to span. This transition removes the focus…
priyankmaniar
October 12, 2019