update for usage with woocommerce