WooCommerce

WooCommerce snippets written for real stores: free shipping with a coupon code, total cart weight, additional emails per product, a buyers list for each product, orders filtered by country, a stock status widget and a gallery hover effect for Elementor loops. Each article gives the full code, what it does and where to put it.

hook elementor/widgets/register
Elementor · WooCommerce

Stock Status Widget for Elementor

Elementor widget displaying the stock status of WooCommerce products. Designed for the Loop Builder (product cards in archives/categories).
Read the snippet →
hook wp_footer
Elementor · Plugins · WooCommerce

WooCommerce Gallery Hover for Elementor Loop

Displays the first image in the gallery when hovering over the featured image in Elementor loops.
Read the snippet →
hook woocommerce_coupon_options_usage_restriction
Plugins · WooCommerce

Free shipping method with WooCommerce coupon

Offer free shipping… but only for the shipping method you choose.
Read the snippet →
Plugins · WooCommerce

WooCommerce Product Buyers List

Added a tab in WooCommerce to display buyers of a specific product with date filter.
Read the snippet →
WooCommerce

Additional Emails per Products for WooCommerce

Adds a custom tab in WooCommerce products to write an email specific to each product. This will be sent in a dedicated email.
Read the snippet →
hook woocommerce_cart_totals_before_order_total
WooCommerce

Display the total weight in the cart and order page of woocommerce

This code will allow you to know the weight of the order in the cart and order pages of woocommerce.
Read the snippet →
hook admin_menu
WooCommerce

Filter number of orders by country

Set up a submenu that allows us to filter a date range and display the number of orders depending on the country.
Read the snippet →