Jump to content

View certain products/groups AFTER user login


Cain72

Recommended Posts

Hi guys,

 

is it possible to setup a product group within whmcs and have it hidden until AFTER the customer has logged into their account ?

 

in other words, i have a service, i dont want it public, i only want to allow customers the ability to view and purchase while they are logged in ..

 

 

any ideas or info you can point me towards would be great thanks

 

 

Cain

Link to comment
Share on other sites

you could use the Smarty variable $loggedin to test if someone is logged in, and if so, then display the product group... that could be done by a template edit, possibly a hook too.

 

if I recall, there is a foreach loop in each of the order-forms products.tpl template that displays the group names - the code is slightly different in each, but the principle remains the same.

 

all you should need to do is insert an {if} statement into it to test if the user is logged in, if they are then the hidden product group is shown...

 

the code would likely be along the lines of what I posted in the thread below..

 

http://forum.whmcs.com/showthread.php?86222-How-to-remove-quot-Register-Domain-quot-and-quot-Transfer-Domain-quot-in-cart-php&p=395627#post395627

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