If you are already using an extension like TM WooCommerce Product Extra Options, or Extra Product Fields that help you with WooCommerce Orders, no need to worry about compatibility issues with Webtoffee’s Print Invoice plugin.
You can use the below code snippet to enable your WooCommerce Extra Product Options plugins to work seamlessly with the WebToffee plugin.
Go to Appearance > Editor > Theme Functions (functions.php) and insert the following code to enable this functionality on the plugin:
Musab
December 24, 2021
It works but unfortunately, displaying them without a line break. How to add a linebreak per option?
Mike
December 26, 2021
Hi Musab,
Thanks for reaching out to us. You can use the linebreak,
in the desired places of the code snippet to achieve your requirement. Try this out and let us know how it goes.Ibrahim Adil Tukenmez
January 2, 2022
Hi Mike,
Thank you for your message. We have used the following code and it worked.
$variation .= $epo[‘value’] . “” . $epo[‘price’] . “” ;
We also need to add another custom field to our documents. But, couldn’t find a way. The plugin is Woocommerce Order Tags. Link: https://woocommerce.com/document/order-tags/
Can you help us for add it? Thanks.
Ibrahim Adil Tukenmez
January 2, 2022
HTML code is removed from my comment.
Miriam Palmer
April 20, 2021
The code snippet is not displayed…
Miriam Palmer
April 20, 2021
never mind, it turned up after refreshing the page