• Resolved diggiehippie

    (@diggiehippie)


    Hey everyone!

    A client of mine sells online courses, both B2B and B2C. I was wondering if it is possible to only send an invoice automatically to B2B clients. B2C shouldn’t automatically receive an invoice.

    The form field company and vat is active… So it would be something like:

    if cust = b2b -> send invoice
    if cust = b2c -> no invoice

Viewing 1 replies (of 1 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hey @diggiehippie,

    > I was wondering if it is possible to only send an invoice automatically to B2B clients.
    Yes, it is possible to conditionally enable or disable document types based on user roles, using the wpo_wcpdf_custom_attachment_condition filter hook.

    > B2C shouldn’t automatically receive an invoice.
    What plugin do you use in order to create this user role? This will help find out what the slug is of the B2C user role. This will in turn help with writing the code snippet.

Viewing 1 replies (of 1 total)
  • The topic ‘Invoice B2B, no invoice B2C’ is closed to new replies.