Remove Product Variation from Invoice

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by Mark Mark 1 year, 2 months ago.

  • Author
    Posts
  • #79036
    Ben
    Ben
    Participant

    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

  • #79056
    Mark
    Mark
    Keymaster

    Hi,

    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.

  • #79059
    Ben
    Ben
    Participant

    Hi Mark

    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

  • #79097
    Mark
    Mark
    Keymaster

    Hi,

    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.
    https://snag.gy/tPz8KI.jpg
    https://snag.gy/zFjH4n.jpg

    You won’t require any hooks or functions to make it work.

  • #79140
    Ben
    Ben
    Participant

    Hi Mark

    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
    https://prnt.sc/ks4vid

    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

  • #79219
    Mark
    Mark
    Keymaster

    Hi,

    We will follow up on the ticket you created.

You must be logged in to reply to this topic.