Skip to content

Instantly share code, notes, and snippets.

Zach-Toth / woo-menu-cart-show-on-add-to-cart.php
Last active Feb 22, 2021
Open the Elementor Woocommerce menu cart when a product is added to the cart. Currently only working properly on single product page. On archive pages, you have to click the overlay twice to close the menu
View woo-menu-cart-show-on-add-to-cart.php
* Open Elementor Woo menu cart widget when a product is added to cart.
* Credit for add to cart button AJAX functions code goes to Jeroen Sormani
* Add to your child theme's functions.php
* JS for AJAX Add to Cart handling
Zach-Toth / WooCommerce USPS Shipping Insurance
Last active Jul 30, 2020
Charge shipping insurance based on cart total with Woocommerce and USPS Simple Woo Plugin
View WooCommerce USPS Shipping Insurance
* Add a shipping insurance surcharge to your cart / checkout
* change the insurance amount based on value of cart
* Uses the WooCommerce fees API
* Written for use with USPS Simple Woo Shipping plugin - Change $chosen_methods to your shipping methods
* Uses USPS shipping rates
* Based on Gist by MattRy