jasonthewebmaster Posted October 29, 2011 Share Posted October 29, 2011 how to show page content only if they have a certain product active? 0 Quote Link to comment Share on other sites More sharing options...
jasonthewebmaster Posted October 30, 2011 Author Share Posted October 30, 2011 i have found a couple potential solutions that do not seem to work: {if $services_products_name eq 'NAMEOFPRODUCT'} but that does not seem to work. 0 Quote Link to comment Share on other sites More sharing options...
jasonthewebmaster Posted October 30, 2011 Author Share Posted October 30, 2011 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?? 0 Quote Link to comment Share on other sites More sharing options...
jasonthewebmaster Posted October 31, 2011 Author Share Posted October 31, 2011 come on geez nobody wants to help me here?? this is why WHMCS should be open source it would encourage community development 0 Quote Link to comment Share on other sites More sharing options...
Roger Posted October 31, 2011 Share Posted October 31, 2011 (edited) 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 October 31, 2011 by Roger 0 Quote Link to comment Share on other sites More sharing options...
jasonthewebmaster Posted January 25, 2012 Author Share Posted January 25, 2012 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! 0 Quote Link to comment Share on other sites More sharing options...
k1ng440 Posted January 25, 2012 Share Posted January 25, 2012 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. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 25, 2012 Share Posted January 25, 2012 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} 0 Quote Link to comment Share on other sites More sharing options...
Sitepearl Posted January 26, 2012 Share Posted January 26, 2012 come on geez nobody wants to help me here?? this is why WHMCS should be open source it would encourage community development I was under the impression that allowing developers to encrypt their addons and license them encouraged development 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.