A MM_Member_Decision SmartTag™ é usada para mostrar ou ocultar conteúdo com base em informações associadas ao membro conectado no momento. Por exemplo, você pode usá-la para mostrar um anúncio apenas para membros gratuitos ou para exibir mensagens para membros cuja conta esteja pausada.
Atributos
isMember (opcional) – Checks if the current visitor is a member or not. Acceptable values are ‘true’ or ‘false’.
isFree (opcional) – Checks if the current member has a free membership or not. Acceptable values are ‘true’ or ‘false’.
status (opcional) – Checks the status of the current member’s membership level. Acceptable values are active, paused, canceled, expired, overdue, locked, pending_cancel. Takes a single status or a Equação SmartTag incorporating multiple statuses. You can also precede the status with a ‘!’ to check if the current member does not have that status.
membershipId (opcional) - Recebe um único ID de nível de associação ou um Equação SmartTag incorporating multiple membership level IDs. You can also precede the ID with a ‘!’ to check if the current member does not have that membership level.
diasComoMembro (opcional) – Takes an integer and specifies the number of days the current member needs to have been a member in order to see the content contained in this tag. You can also precede the number with a ‘-‘ to indicate that the member should’ve been a member less than the number in order to see the content contained in this tag.
hasBundle (opcional) - Recebe um único ID de pacote ou um Equação SmartTag incorporating multiple bundle IDs to check if the current member has the bundle active on their account. You can also precede the ID with a ‘!’ to check if the current member does not have that bundle.
diasComBundle_# (opcional) - Recebe um número inteiro e especifica o número de dias que o membro atual precisa ter um determinado pacote para ver o conteúdo contido nessa tag.
You can also precede the number with a ‘-‘ to indicate that the member should’ve had the bundle less than the number in order to see the content contained in this tag. Replace the ‘#’ symbol with the ID of the bundle to check.
Por exemplo, se o pacote que você deseja verificar tiver um ID de 5, você usaria
[MM_Member_Decision daysWithBundle_5='2']
Isso significa que o membro deve ter o pacote com ID 5 aplicado à sua conta por 2 dias ou mais para ver o conteúdo contido nessa tag.
Observação: esse atributo verifica apenas o número de dias em que o cliente teve um pacote, independentemente de o pacote estar ativo no momento em sua conta. Se você quiser garantir que somente os membros que tenham o pacote ativo na conta por um determinado número de dias vejam o conteúdo, use também o atributo hasBundle.
purchasedProduct (opcional) - Recebe um único ID de produto ou um Equação SmartTag incorporating multiple product IDs to check if the current member has purchased the product. You can also precede the ID with a ‘!’ to check if the current member has not purchased that product.
customField_# (opcional) - Recebe um único valor ou um Equação SmartTag incorporating multiple values to compare against the value in the current member’s custom field with ID #.
For example, if the ID of the custom field that stores job title is 4 then to compare against the current member’s job title you would use
[MM_Member_Decision customField_4='ceo']
to show content to anyone with the ‘ceo’ job title, or
[MM_Member_Decision customField_4='!(ceo)']
if you are trying to show content to anyone without the ‘ceo’ job title.
When comparing values of text fields, radio buttons or drop downs, a case-insensitive comparison is used. When comparing the value of a checkbox, use the string ‘mm_cb_on’ to check if it’s currently checked and ‘mm_cb_off’ to check if it’s currently unchecked.
Uso
Se você usar vários atributos para uma única decisão, isso resultará em uma relação AND. Por exemplo, se você escrever:
[MM_Member_Decision membershipId='1' hasBundle='4']
Isso significa que mostre este conteúdo se...
the current member’s membership ID equals 1
E
o membro atual tem o pacote com ID igual a 4
Here’s another example:
[MM_Member_Decision membershipId='1|2' hasBundle='3' daysAsMember='4']
Isso significa mostrar o conteúdo contido na tag se...
the current member’s membership ID equals 1 OR 2
E
o membro atual tem o pacote com ID igual a 3
E
o membro atual é membro há 4 dias ou mais
Ao usar a tag MM_Member_Decision, você deve sempre incluir uma tag de abertura e uma de fechamento.
O conteúdo entre as tags de abertura e fechamento pode ser qualquer HTML ou JavaScript válido e também pode conter outros MemberMouse SmartTags™, incluindo outras tags de decisão, com exceção da própria MM_Member_Decision. A MM_Member_Decision não pode ser usada dentro de si mesma ou aninhada.
Aqui estão alguns exemplos mais válidos:
Exemplo #1
[MM_Member_Decision membershipId='1' hasBundle='2|6']
Olá [MM_Member_Data name='firstName']!
Este conteúdo é direcionado especificamente aos membros com ID de nível de associação 1 que também têm ID de pacote 2 ou 6.
[/MM_Member_Decision]
Exemplo #2
[MM_Member_Decision membershipId='1']
[MM_Affiliate_Decision affiliate='superguy']
Você veio do afiliado 'superguy'
[/MM_Affiliate_Decision]
Este conteúdo é direcionado especificamente para membros com um nível de associação ID de 1.
[/MM_Member_Decision]
Exemplo #3
[MM_Member_Decision membershipId='2|3|5']
Este conteúdo é direcionado especificamente para membros com um ID de nível de associação de 2, 3 ou 5.
[/MM_Member_Decision]
Exemplo #4
[MM_Member_Decision daysWithBundle_2='4' hasBundle='2']
Os membros com acesso a esse pacote verão isso em 4 dias
[/MM_Member_Decision]
Exemplo #5
[MM_Member_Decision daysWithBundle_2='-14' hasBundle='2']
Os membros com acesso a esse pacote verão o conteúdo até o dia 14
[/MM_Member_Decision]

