Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Do not display Prices Unless Logged In Rate Topic   - - - - -

  • pfryan
  • Junior Member
  • Members
  • Join Date: 04-Apr 06
  • 4 posts

Posted 05 April 2006 - 02:33 AM #1

Hey all,

I was jsut wondering if there is a way to Not display any prices unless the user is logged into the site? I would still like the products to be displayed, just not the prices unless they are logged in. So that the general public cannot see the wholesale prices.


  • MarkWhoo
  • Senior Member
  • Members
  • Join Date: 08-Apr 06
  • 106 posts

Posted 09 April 2006 - 06:44 AM #2

You can do just about anything you want to with if statements.

I am not totally up n this cart as I just purchased it, but all yuo would have to do is place an if statement like

If user logged blah blah blah

Again, I have yet to see ANY code. I thought I would read the forum before I uploaded to my server, lol.

  • rpramana
  • Junior Member
  • Members
  • Join Date: 07-Oct 07
  • 8 posts

Posted 30 September 2009 - 10:35 PM #3

I got this from Baballuci:

Put it in common_templates/price.tpl and uncheck "Allow shopping for unlogged customers":

[COLOR="red"]{if !$auth.user_id} 
{if $settings.General.alternative_currency == "Y"}
	{$value|format_price:$currencies.$primary_currency:$span_id:$class:false}{if $secondary_currency != $primary_currency} ({$value|format_price:$currencies.$secondary_currency:$span_id:$class:true:$is_integer}){/if}