View Single Post
  #3  
Old 06-19-2008, 10:56 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: hide the Price until customers login.

Paul,

You posted your own answer.

Quote:
{if $login ne ""} display this {/if}

The inverse is
Quote:
{if $login eq ""} display this {/if}

Find where the price is displayed in your template. Before the price display, put something like this in (you will have to fight the tables and divs):

Quote:
{if $login eq ""} Please login to see the price. {/if}

And of course, wrap this around the price code:

Quote:
{if $login ne ""} PRICE CODE GOES HERE {/if}

This is a relatively easy smarty hack, and a good way to dive in and learn some basic smarty. Please report back once you have mastered this.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote