• Hi, the product add-on works great so far!

    However, I encounter an issue with the meta value that was displayed in the admin site order table.

    So my addon have two group.
    Group A
    Group B

    The options is

    Group A:
    -option 1
    -option 2
    -option 3

    Group B
    -option d
    -option e

    I am using checkbox so customer can multiselect. the front end works great. if i pick option 1&2 from group A then option d from group B, it will display
    group A: option 1, option 2 | group B: option d

    but at backend, it will display:
    group A:option 1
    group A:option 2
    group B: option d.

    How can i change it, if they are the same meta_key, meta value will just concatenate its value(like at front end) instead of creating a new line?

    Thanks for the help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well :D.

    Unfortunately for store information as order item meta, it’s necessary to set a key => Value,

    For this reason it’s not possible for us to edit and remove the meta key that it’s necessary for WooCommerce to format the item meta information.

    I hope it helps you.

    If you have any other questions, don’t hesitate to contact us.

    Have a good day.

    Thread Starter shazliyana97

    (@shazliyana97)

    Hi,
    Let me rephrase my questions. In presenting the value in the order details, there are two difficulties. I have two option blocks where customers are allowed to multi-select the value, the blocks are as follows:

    Group A:
    -option 1
    -option 2
    -option 3

    Group B
    -option d
    -option e

    The scenario is as follows. In Group A, the customer selects Option 1 + Option 2 and in Group B, Option d + Option e. However, in the admin order details, under the item section, the add-ons blocks options are displayed as

    Group A: Option 1
    Group A: Option 2
    Group B: Option d
    Group B: Option e

    instead of showing like this
    Group A: Option 1, Option 2
    Group B: Option d, Option e
    is it possible to display the values of the options altogether in one line instead of separating them?

    Issue number 2 is, in the order invoice (we are using a plugin from WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels by webtoffee), it only shows the last values of the options as shown below.
    Group A: Option 2
    Group B: option e.
    The values of the remaining options selected by the customer is not displayed at all.

    Kindly advise. Thank you

    Thread Starter shazliyana97

    (@shazliyana97)

    hi, any update on this? would like to know if is there any solution for the issue I’m facing on my website;
    issue number 2 is, in the order invoice (we are using a plugin from WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels by webtoffee), it only shows the last values of the options as shown below.
    Group A: Option 2
    Group B: option e.
    The values of the remaining options selected by the customer are not displayed at all.

    thank you

    Plugin Support Facundo Arano

    (@aranofacundo)

    Hi there,

    Please, try adding the following PHP code in the functions.php file of your current theme, to display the options separated and then check if the issue is solved:

    add_filter( 'yith_wapo_show_options_grouped_in_cart', '__return_false', 99 );

    Like my colleague said, it’s not possible to change the format of the meta, but this could prevent the issue you mentioned with the other plugin.

    Let us know if you have any other issue.

    Thread Starter shazliyana97

    (@shazliyana97)

    Hi, thank you for your response. I have test the snippet you gave but its not working.

    The issue is when we need to print the invoice. Here is the order details at at the order table, https://prnt.sc/E0ccMTkgBOmr. Please notice we have two lines of blood test. This is when I print the invoice https://prnt.sc/aBKJQorp2KxF
    it didn’t display the data of the first blood test. Hence, this is why i want the data to be grouped together so it will be shown in the invoice.

    Hope to hear from you soon, thank you.

    [ Please do not bump. ]

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    unfortunately we can’t apply any fix by our side. Since the information is stored as single meta in the order, the invoice system retrieves information in that way.

    Try to get in touch with invoice authors to see if they can make a customization for you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing the meta and meta value format’ is closed to new replies.