Hi,
Yes, I think we can achieve this by using this link
hidden link
Not sure if it would nee dot be changed in both the first and last elements below though?
[wpv-conditional if="( '[wpv-current-user]' eq '' )"]
<p class="lead">To access resources please join now or log in.</p>
[/wpv-conditional]
[wpv-conditional if="( '[wpv-current-user]' ne '' )"]
[wcm_restrict plans="member-standard"]
[wpv-woo-buy-options add_to_cart_text='Add to basket']
[/wcm_restrict]
[wcm_nonmember plans="member-standard"]
<p class="lead">To access resources please join now.
[/wcm_nonmember]
[/wpv-conditional]
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Luke,
The above code seems fine to me and should work as intended.
Thanks,
Shane
The code wouldn't work as I'd not dropped in the url, which I have done below, can you confirm this is acceptable?
[wpv-conditional if="( '[wpv-current-user]' eq '' )"]
<p class="lead">To access resources please hidden link">join now or log in.</p>
[/wpv-conditional]
[wpv-conditional if="( '[wpv-current-user]' ne '' )"]
[wcm_restrict plans="member-standard"]
[wpv-woo-buy-options add_to_cart_text='Add to basket']
[/wcm_restrict]
[wcm_nonmember plans="member-standard"]
<p class="lead">To access resources please hidden link">join now
[/wcm_nonmember]
[/wpv-conditional]
Can you recheck that code? I'd not actually used the url within it and you said its fine. I need you to update the code block to see how you see it working correctly.
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Luke,
I've added the code for you but it seems that some form of caching is causing it not to be presented on the frontend. Do you have any caching on this site ?
Thanks,
Shane