WC Admin Precious Metals Data
Location: web/app/plugins/wc-admin-precious-metals-data/
Author: Rhino Group
Overviewโ
This plugin extends the WooCommerce admin with precious-metals-specific analytics and reporting. Its primary feature is a Daily Analytics Email that sends automated WooCommerce sales reports including precious metals statistics to store managers.
Featuresโ
Daily Analytics Emailโ
An automated email that is sent daily (via WooCommerce's scheduled email system) containing:
- Total orders for the period
- Total revenue in dollars
- Ounces of gold sold โ calculated from product metal weight metadata
- Ounces of silver sold
- Ounces of platinum sold
- Ounces of palladium sold
- Breakdown by payment method
- Top-selling products for the period
Admin Analytics Widgetsโ
Adds WooCommerce admin dashboard widgets showing:
- Current day ounces sold by metal type
- Week-over-week comparison
- Spot price vs. selling price trend
Configurationโ
WooCommerce โ Settings โ Emails โ Daily Analytics Report
| Setting | Description |
|---|---|
| Enable | Toggle daily email on/off |
| Recipients | Comma-separated email addresses (defaults to admin email) |
| Send Time | Time of day to send the email (cron-dependent) |
How Metal Weight Is Calculatedโ
Products have metal weight stored in custom fields (via ACF and WooCommerce product meta):
_metal_typeโgold,silver,platinum,palladium,other_metal_weight_troy_ozโ Weight in troy ounces (decimal)_metal_purityโ Purity fraction (e.g.,0.999for .999 fine)
When an order is completed, the plugin sums _metal_weight_troy_oz ร quantity for each ordered item, grouped by _metal_type.
Dependenciesโ
- WooCommerce (order data)
- Advanced Custom Fields Pro (product meta fields)
- WP Cron (must be running via Ymir cron for scheduled emails)