Top WooCommerce & WordPress Plugins › Forums › EAN and Barcodes for WooCommerce › Compatible with any email customiser template plugins?
- Support forum for the EAN and Barcodes for WooCommerce.
- This topic has 6 replies, 2 voices, and was last updated 1 year, 2 months ago by
Tom Anbinder.
- AuthorPosts
- September 15, 2022 at 2:26 pm #90336
peacockstrutmarketing
ParticipantHi there, I’m looking into using this plugin on my site, but I’m testing the free version on staging, and as far as I can tell, it is not compatible with Villatheme’s Email Customiser Template plugin, as barcodes are not showing on the order on-hold, processing, completed emails. There is only the option to display the SKU. If this is not possible are there any email customiser plugins you know of that are compatible?
Thanks
Lucy
September 19, 2022 at 2:40 pm #90633Hi,
Sorry for the late reply.
I will need to take a look at VillaTheme’s plugin code. This is the one – https://wordpress.org/plugins/email-template-customizer-for-woo/ – correct?
September 21, 2022 at 10:45 am #90802peacockstrutmarketing
ParticipantHi, thanks for your response.
Yes that is the one.Kind regards
Lucy
September 21, 2022 at 10:07 pm #90870Hi Lucy,
I think I found a solution – I’m going to include it in the next plugin version; however, if you are ok with adding a small PHP snippet to your site, this will add EANs to the VillaTheme’s customizer plugin emails:
add_action( 'viwec_order_item_parts', function ( $item_id, $item, $order ) { if ( function_exists( 'alg_wc_ean' ) && false !== ( $ean = alg_wc_ean()->core->get_ean_from_order_item( $item ) ) ) { printf( '<p><strong>EAN:</strong> %s</p>', $ean ); } }, 10, 3 );
Please give it a try and let me know what you think.
September 22, 2022 at 2:34 pm #90988peacockstrutmarketing
ParticipantHi Tom, thank you, I have tried that snippet on the staging site and tried a test order but unfortunately, it isn’t working.
Lucy
September 22, 2022 at 2:37 pm #90989peacockstrutmarketing
ParticipantWait sorry, I tried it again, it does work. Many thanks
September 24, 2022 at 12:22 am #91089Hi Lucy,
Thank you for the update, and happy to hear it’s solved 🙂
Let me know if you need anything else, and if you like the plugin, please consider leaving me a rating here or here.
P.S. As mentioned, this fix will be included in the next plugin version – I will let you know as soon as it’s ready.
- AuthorPosts
- You must be logged in to reply to this topic.