Here’s the code I put in my child theme’s functions.php file.Īdd_action('admin_enqueue_scripts', 'wc_default_variation_stock_quantity') įunction wc_default_variation_stock_quantity() Poking about with the Chrome element inspector at the WooCommerce stock handling form told me we needed the _manage_stock and _sold_individually checkboxes ticked and to set a value in the _stock text field. It turns out the easiest way to do this is to add some javascript to the admin_enqueue_scripts action that checks the form elements we need checked. EMBERLYNN - Natural White Intimates, Organic Underwear (1.4. WooCommerce – Default Manage Stock and Sold Invidually Values This entry was posted in php, WordPress on Maby markn. Of course the customer will see the CC address in their emails so you could include a BCC address with something like “Bcc: Someone\r\n”. Extractor 1.4 or 1.4 Email Extractor is a variation of the Lite 1. That email address will now receive a copy of all the emails sent to a customer. “\r\n” string is appended to the email headers. Lite 14 email separator is an email domain sorter or email domain separator, that will strips email address into domains. It checks the passed object and if it’s one of the customer notification emails then the “CC: Someone ”. The code itself is fairly self explanatory. If ($object = 'customer_completed_order' || $object = 'customer_invoice' || $object = 'customer_note' || $object = 'customer_on_hold_order' || $object = 'customer_processing_order' || $object = 'customer_refunded_order') Send copies of customer emails to 'woocommerce_email_headers', 'copy_customer_emails_headers_filter_function', 10, 2) įunction copy_customer_emails_headers_filter_function( $headers, $object ) In my case I was happy to include a CC email address so I used this code: // It allows you to intercept the email header and inject your own custom headers of the same form used by the PHP mail function. Email count: Try Lite 1.6 Email Extractor. Separator: Group: Emails Sort Alphabetically. You can select different separator (or enter your own), group a number of emails and sort extracted emails alphabetically. In this case the woocommerce_email_headers() filter is useful. Copy text from any source and paste it into here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |