updated for Woocommerce