Jump to content

Only Allow Logged in Clients to Place Orders


mikelegg

Recommended Posts

I only want registered clients to be able to place orders and I'm familiar with the concept of adding the code below to the tpl file to hide pages from non-logged in users.

 

{if $loggedin}
... 
{else}
...	
{/if}

 

But I can't find a template file that corresponds to cart.php

 

I'm using the vertical steps template and I've tried to add the above code to viewcart.tpl and verticalsteps.tpl but it doesn't prevent non-logged in users from accessing the pages.

 

Does the above code work with the cart?

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