• I have the WP-Overnight PDF Invoices plugin and it allows you to create custom columns on your invoice.

    My aim is to make one for brands. My shop has several products of the same name from various brands, so it can be confusing for order pickers what they’re looking for. Having the brand displayed alongside the product would be super helpful.

    So according to the PDF Invoices doc, we can use the shortcode {{wc_brands}} to populate this. However, I think this only works for the WooCommerce Brands plugin, not the YITH one.

    Is there an equivalent shortcode I can use for YITH?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    Unfortunately, we don’t have a shortcode that works for what you’re requesting.

    We use this function to return the brands of each product, so you can use it to build your shortcode:

    get_the_term_list( $product_id, 'yith_product_brand' );

    Let us know any news.

    Best regards.

    Thread Starter grahamhopsack

    (@grahamhopsack)

    Hi Juan, thanks for your reply.

    Unfortunately I don’t know the first thing about building shortcode. Would you be able to point me in the right direction?

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hi there,

    Seeing your first answer, it seems that what your PDF plugin uses are placeholders, and not shortcodes, so you should contact their support to see how to add a new placeholder whose data output is the product brands, relying on the code that I provided to you.

    Let us know any news.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is there a brand shortcode/metakey?’ is closed to new replies.