La etiqueta MM_Member_Decision SmartTag™ se utiliza para mostrar u ocultar contenido en función de la información asociada al usuario que ha iniciado sesión en ese momento. Por ejemplo, puedes utilizarla para mostrar un anuncio solo a los usuarios gratuitos o para mostrar mensajes a los usuarios cuya cuenta esté en pausa.
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’.
estado (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 Ecuación 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) - Toma un único ID de nivel de afiliación o un Ecuación 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.
daysAsMember (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) - Toma un único ID de paquete o un Ecuación 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.
daysWithBundle_# (opcional) - Toma un número entero y especifica el número de días que el miembro actual tiene que tener un paquete determinado para ver el contenido de esta etiqueta.
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 ejemplo, si el paquete que desea comprobar tiene un ID de 5, debe utilizar
[MM_Member_Decision daysWithBundle_5='2']
Esto significa que el usuario debe tener el paquete con ID 5 aplicado a su cuenta durante 2 días o más para ver el contenido de esta etiqueta.
Nota: este atributo sólo comprueba el número de días que el cliente ha tenido un paquete, independientemente de si el paquete está actualmente activo en su cuenta. Si quieres asegurarte de que sólo los miembros que actualmente tienen el paquete activo en su cuenta durante un determinado número de días ven el contenido, utiliza también el atributo hasBundle.
producto adquirido (opcional) - Toma un único ID de producto o un Ecuación 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) - Toma un único valor o un Ecuación 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.
Utilización
Si utiliza varios atributos para una misma decisión, se produce una relación Y. Por ejemplo, si escribe
[MM_Member_Decision membershipId='1' hasBundle='4']
Es decir, mostrar este contenido si...
the current member’s membership ID equals 1
Y
el miembro actual tiene el paquete con ID igual a 4
Here’s another example:
[MM_Member_Decision membershipId='1|2' hasBundle='3' daysAsMember='4']
Es decir, mostrar el contenido de la etiqueta si...
the current member’s membership ID equals 1 OR 2
Y
el miembro actual tiene el paquete con ID igual a 3
Y
el miembro actual lleva afiliado 4 días o más
Cuando utilice la etiqueta MM_Member_Decision, debe incluir siempre una etiqueta de apertura y otra de cierre.
El contenido entre las etiquetas de apertura y cierre puede ser cualquier HTML o JavaScript válido y también puede contener otras MemberMouse SmartTags™, incluidas otras etiquetas de decisión, con la excepción de la propia MM_Member_Decision. La MM_Member_Decision no puede utilizarse dentro de sí misma ni anidarse.
He aquí algunos ejemplos más válidos:
Ejemplo #1
[MM_Member_Decision membershipId='1' hasBundle='2|6']
¡Hola [MM_Member_Data name='firstName']!
Este contenido está dirigido específicamente a los miembros con un ID de nivel de membresía de 1 que también tienen un ID de paquete de 2 o 6.
[/MM_Member_Decision]
Ejemplo #2
[MM_Member_Decision membershipId='1']
[MM_Affiliate_Decision affiliate='superguy']
Usted vino del afiliado 'superguy'
[/MM_Affiliate_Decision]
Este contenido está dirigido específicamente a los afiliados con un ID de nivel de afiliación de 1.
[/MM_Decision_Miembro]
Ejemplo #3
[MM_Member_Decision membershipId='2|3|5']
Este contenido está dirigido específicamente a los miembros con un ID de nivel de membresía de 2, 3 o 5.
[/MM_Member_Decision]
Ejemplo #4
[MM_Member_Decision daysWithBundle_2='4' hasBundle='2']
Los miembros con acceso a este paquete lo verán a los 4 días.
[/MM_Member_Decision]
Ejemplo #5
[MM_Member_Decision daysWithBundle_2='-14' hasBundle='2']
Los miembros con acceso a este paquete verán el contenido hasta el día 14.
[/MM_Member_Decision]

