• Resolved Sarun developer

    (@saruncloudspring)


    Hi

    I want to print the invoice and packing slip by vendor user role user. How I can achieve that? could you share what is the code I need to modify this plugin to work for the vendor user role? Currently, this plugin will work only for manage woo-commerce role users, I want to add one more user role to print this invoice and packing slip how I can achieve that?

    Thanks is Advance

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Sarun developer

    (@saruncloudspring)

    Hi,

    Support team any update on this?

    Thanks

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @saruncloudspring,

    If you have PHP knowledge, you can use the wpo_wcpdf_current_user_is_allowed filter hook to achieve it (source).

    Unfortunately, I can’t provide you a ready-made code snippet for this, since this request is beyond the free support. If you have a valid license for either Professional or Premium Templates, please contact us by [email protected], and we’ll do our best to help you with this.

    Thread Starter Sarun developer

    (@saruncloudspring)

    Hi @yordansoares ,

    Thanks for your replay I already made the changes on the user role filter hooks wpo_wcpdf_current_user_is_allowed. I added vendor user also but it’s not showing the pdf print button I think it’s not showing due to they are not using woocommerce order table for showing the orders.

    Thanks

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Let me ask you these questions:

    1. Which multivendor plugin are you using?
    2. Where do you want the buttons to be displayed? Is it a custom order table or a different place?
    Thread Starter Sarun developer

    (@saruncloudspring)

    Hi @yordansoares ,

    1- Product vendor by woocommerce
    2- I want to display the pdf print button on the vendor dashboard, That dashboard was coming from the product vendor plugin.

    Now I was able to show the pdf print button on vendor dashboard

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Now I was able to show the pdf print button on vendor dashboard

    Do you mean you already solved it using the wpo_wcpdf_current_user_is_allowed filter hook?

    Thread Starter Sarun developer

    (@saruncloudspring)

    Hi @yordansoares

    No, We need to customize your PDF plugin and also the product vendor plugin.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Maybe I didn’t explain correctly: Are you seeing the buttons in your vendor dashboard already?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How this plugin will use for vendor role user ?’ is closed to new replies.