Jump to content

showing content only if they have specific product


Recommended Posts

ok i debugged the "my products services" page and found a couple things that might work...

 

{if $services.product eq 'My Membership'}

 

{if $services.status eq 'Active'}

 

SHOW THIS CONTENT TO MEMBERS ONLY

 

{else}

 

show this to non-active members (late or unpaid)

 

{/if}

{else}

show this to public non-members

{/if}

 

 

would this work? i am not really schooled in coding so please someone tell me how i can do this??

Link to comment
Share on other sites

come on geez nobody wants to help me here??

 

this is why WHMCS should be open source it would encourage community development

 

You can trim the logic of your example by using using a qualifier:

 

{if $services.product eq 'My Membership' && $services.status eq 'Active'}

 

member only content

 

{else}

 

non-member content

 

{/if}

 

Anyway, I think that's correct. Someone can correct me if they

 

I also encourage you to be a bit nicer in your requests. You're looking for someone who has good experience in coding for WHMCS and a good understanding of the Smarty template. No one is required to provide support to you. Open source? Really......

 

-Roger

Edited by Roger
Link to comment
Share on other sites

  • 2 months later...
thanks for the help!

 

seriously think about the open source thing... (it doesn't mean you wont make money) it will only help speed development and besides, look how successful joomla/wordpress are!

 

I agree with you jasonthewebmaster...

 

 

WHMCS OPEN SOURCE IT.

Link to comment
Share on other sites

I fail to see how making WHMCS opensource would have fixed the problem you're having here. You could have easily added a {debug} statement in your template to see what smarty variables are available to you. Theres also something like this if you want to get real dirty.

 

{php}
global $smarty;
$vars = get_defined_vars();
var_dump($vars);
{/php}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated