• Hello,
    Using the pdf invoice, we get the meta data of the product bought, with the custom global addons name, but the variations are shown with the SLUG. Any way to force it to be the name or the attribute variation?
    This is an example:

    (Product NAME) – Jet Ski Experience Water Sport Tenerife
    (meta: variation SLUG)—– Horas: 10-am
    (meta: variation SLUG)—– Duración: 1-hr
    (meta: variation SLUG)—– Solo/Pareja: single
    (meta: gloabl-addon NAME)– Pick-up service: Los Gigantes: 1 hour before
    (meta: global-addon NAME)– Hotel or address: Not yet

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! Are these regular variations? If so, then they should be identical to what you see printed in the WooCommerce emails. Could you compare the output of the email to the PDF? If this is the same in the emails, it means that it’s a higher level issue that we cannot resolve from within the plugin.
    If they are not regular variations but meta that is added by a third party plugin, could you give us a bit more information about that?

    Thread Starter innovanity

    (@innovanity)

    Hi and thanks for your quick response!
    The variations are always nice with its NAME in the emails, in the backend order details… and we have just realised that they are also OK the first times we generate the PDF.
    But we don’t why, generating the PDF in an order there is a moment when it changes and the variations show the SLUG, and the following times always the SLUG. Very strange.

    Any idea?
    Or any way to go deeper in the structure of this line (that is the origin at invoice.php)??
    <?php echo $item[‘meta’]; ?>

    Thanks in advance.

    Plugin Contributor Ewout

    (@pomegranate)

    that is very strange, but it must be another process modifying/corrupting this data. You will probably find that after it’s broken, it will also be like that in the emails.

    The data in $item['meta'] comes directly from the woocommerce function wc_display_item_meta( $item ), which is the same function that is used in the emails.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Item meta showing attribute variation slug’ is closed to new replies.