• Resolved jodzeee

    (@jodzeee)


    I have a product that may have the same name, but belongs to different categories. I’d like my client to be able to quickly identify which product was sold. Is it possible to add the category to the packing slip? Or any other ideas also appreciated!

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

    (@yordansoares)

    Hi @jodzeee,

    The best way to achieve it is using the customizer, included in Premium Templates. This allows you to use blocks to tailor your PDF document, controlling the data elements: product columns, totals row, and order info through custom blocks.

    For your specific case, you could add the category below the product name using the {{product_categories}} placeholder like this:

    A screenshot that displays the product categories placeholder within the Product block in the customizer

    Another way to do it is with some of PHP code. If you have PHP knowledge, you can use the wpo_wcpdf_after_item_meta action hook. See PDF template action hooks.

    Thread Starter jodzeee

    (@jodzeee)

    Thank you so much! I’ll keep the customizer in mind, but for now I was able to use the action hook to accomplish what I needed. Cheers!

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to hear that, @jodzeee!

    Let me know if you need anything else ??

    P.S.: Thank you so much for your 5-stars review!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add category name to packing slip’ is closed to new replies.