Add qty inputs next to add to cart button with and without Ajax reload on WooCommerce archives

Ajax Reload Woocommerce Qty Cart

…$product && $product->is_type( ‘simple’ ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) { $html = ‘<form action=”‘ . esc_url( $product->add_to_cart_url() ) . ‘” class=”cart” method=”post” enctype=”multipart/form-data”>’; $html .= woocommerce_quantity_input(

Read More

Syncing RunCloud and Cloudflare firewalls for fail2ban IPs

Cloudflare Fail2ban Serverpilot

…better source, last updated Jan 2021. The Cloudflare conf below is from version 0.11.2 https://github.com/fail2ban/fail2ban/blob/master/config/action.d/cloudflare.conf https://gist.github.com/neilgee/9e89fced25ee515876dee125758330a4 You just rename/backup the old cloudflare.conf.original and add in the new one above best…

Read More