pixelcellar
Forum Replies Created
-
Forum: Plugins
In reply to: [Admin Menu Editor] Lost Admin AccessApologies, filtering wasn’t behaving hence why I couldn’t find ws_menu_editor, please ignore!
Forum: Plugins
In reply to: [Conversion Tracking for WooCommerce] How to View ReportAll the plugin does is give a means to track Adwords, FB etc, if you wish to see what converted what which I think is what you’re after then you need to be using Google Analytics or similar to see that sort of data.
Fixed
Ok, should have read all the recent posts but in my defence the title didn’t stand out as being the issue I had. Anyway, if anyone else has this issue the answer is here (https://wordpress.org/support/topic/bug-version-2-0-6/) until the plugin is updated officially.
Just out of interest, is there a tidier method of doing this as yet? You mentioned in an earlier entry in this thread (https://wordpress.org/support/topic/selected-referer-in-new-order-email/#post-9394587) that this was something that would be included and made easier?
If this has been done could you advise to make this thread be even more useful for others looking for a similar thing?
Hi Tanya
Sorry for not replying sooner, just got back from holidays.
Assuming the quotes are correct, ie like [ ‘ ] I’m not 100% sure what the issue could be. Try making them all like they are in the function above in the screenshot you attachedm, they are more straight lines as opposed to the more curly quotes in what I attached which has been formatted by this site.
Thanks for coming back to me, I found that or similar to it at least after I’d posted.
So that it potentially adds someone else going forward here’s the code to add to the themes functions.php:
add_filter(‘woocommerce_email_order_meta_keys’, ‘my_woocommerce_email_order_meta_keys’);
function my_woocommerce_email_order_meta_keys( $keys ) {
echo ‘<h2>Miscellaneous Details</h2>’;
$keys[‘Referred by’] = ‘wc_customer_source_checkout_field’;
$keys[‘Other Reason’] = ‘wc_customer_source_checkout_other_field’;
return $keys;
}If anyone has a tidier way of adding the “Other Reason” field then feel free to add your version, on the plus side if the user chooses one of your defined options then the “Other Reason” label etc isn’t displayed so it pretty much works tidily.