BuddyDev

Search

Not able to reply to messages with Nouveau template

  • Participant
    Level: Yogi
    Posts: 1105
    calu on #20025

    Hi

    You wrote: ‘I checked again. To allow unlimited, return 0. The zero should be number not ‘0’.’

    Do you mean just adding 0 in the settings, or in a new conditional statement for customers in the code, in that case, what is the user_id for customer?

    Regards
    Carsten

  • Keymaster
    (BuddyDev Team)
    Posts: 24435
    Brajesh Singh on #20027

    Hi Carsten,
    In both the filters, we pass user id. So, It will be simple to check user role.

    Are you using WooCommerce’s customer role? I can provide a snippet for you .

    Regards
    Brajesh

  • Participant
    Level: Yogi
    Posts: 1105
    calu on #20028
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24435
    Brajesh Singh on #20029
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1105
    calu on #20032
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24435
    Brajesh Singh on #20040
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24435
    Brajesh Singh on #20089

    Hi Carsten,
    here is the role based message customizations.

    You can update the first function to add addition roles and their limits.

    https://gist.github.com/sbrajesh/cc37e8794527f86046e1d880490d974b

    Please make sure to remove the code from docs page that you applied erlier.

    Regards
    Brajesh

  • Participant
    Level: Yogi
    Posts: 1105
    calu on #20102
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24435
    Brajesh Singh on #20112
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1105
    calu on #20119
    This reply has been marked as private.

You must be logged in to reply to this topic.

This topic is: not resolved