XAdapter › Forums › Print Invoices, Packing Slip, Delivery Note & Labels Plugin for WooCommerce › Remove Product Variation from Invoice
September 6, 2018 at 1:48 am #79036
i need to ask two things
1. first of all if there is two product variation or custom meta data with product then all the data displaying in same line, it should be in new line for every variation or meta data.
2. how can i remove product variation from invoice ? it’s displaying under product title, only want to remove product variation or specific product variation
September 6, 2018 at 2:17 pm #79056
To remove the product variation information from the invoice and other labels, you can turn it off under plugin settings>General tab. Displaying the variation information into separate will increase the pagination of the invoice which our users usually do not prefer.
September 6, 2018 at 4:47 pm #79059
i know that setting in generatl tab but the problem is that i only want to remove variation and that setting is removing whole order data , i store some custom data using woocommerce_get_item_data hook your setting removing that data as well, is there any function or hook in your plugin which i can use to delete only variation or any hook for adding my custom data below product title
right now all the order data is displaying in single line which is not right, it’s not readable and not unfriendly we just need to break the line in that look and it will be ok, send me hook of that function
September 7, 2018 at 11:21 am #79097
To remove the variation information and add a product meta to invoice, please follow below steps:
Go to plugin settings invoice tab> Advanced Options > Product Meta Fields > Add Product Meta
This will fetch any product meta stored with the products and show it on the invoice. You may enter the meta key and field name.
In the general settings tab> uncheck the Enable Variation Data option to remove the variation information.
This will display the metadata alone under the product name in the invoice. By default, all added meta will be shown as one below the other. You may refer the below-given screenshots.
You won’t require any hooks or functions to make it work.
September 9, 2018 at 12:44 am #79140
i tried it but it’s not working
can you please check and let me know if i am doing it right
here are 2 meta data fields which i want to display in invoice
plugin settings invoice tab> Advanced Options > Product Meta Fields > Add Product Meta
do i need to add
Field Name: any text which i want ?
Meta Key: the meta keys which i mention in image ?
please check this and let me know
September 11, 2018 at 12:53 pm #79219
We will follow up on the ticket you created.
You must be logged in to reply to this topic.