Comments on: [wcj_order_customer_user_roles] https://booster.io/shortcodes/wcj_order_customer_user_roles/ WordPress WooCommerce Plugin Fri, 10 May 2024 05:56:23 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: Eric https://booster.io/shortcodes/wcj_order_customer_user_roles/#comment-85388 Wed, 08 Jul 2020 19:41:48 +0000 https://booster.io/?p=9722#comment-85388 In reply to Eric.

Rony P:
Your question answers my comment. You’re right, the test user is a “guest” but that doesn’t change, even for “Guest” it should work by returning an empty string otherwise this shortcut is simply useless and can’t be used in the PDF template.

I want to add the role(s) of the customer in the PDF invoice because I have additional roles such as “reseller” or “restaurant” that are very useful for me. But if I use it in the template PDF, it will break everything if the order comes from a “guest” …

Well, I mean, it must be useful for something or someone, but not for my use case.

]]>
By: Rony P https://booster.io/shortcodes/wcj_order_customer_user_roles/#comment-85307 Tue, 07 Jul 2020 12:08:05 +0000 https://booster.io/?p=9722#comment-85307 In reply to Eric.

Hello,

For which user role it’s breaking up? Trying for a registered customer? As if you are trying for guest it will not work,

Regards,

Rony P – Support Team

]]>
By: Eric https://booster.io/shortcodes/wcj_order_customer_user_roles/#comment-85269 Mon, 06 Jul 2020 21:51:51 +0000 https://booster.io/?p=9722#comment-85269 When I use [wcj_order_customer_user_roles] in the invoice template, the PDF generation broke (the pdf invoice can not be open).

I just use [wcj_order_customer_user_roles] in the template with no keys. As a result I want a string of the customer roles.

]]>