VirtueMart Forum

VirtueMart 2 + 3 => Product pricing => Topic started by: geoffr on October 31, 2017, 08:12:16 am

Title: Hide Pricing from Guests?
Post by: geoffr on October 31, 2017, 08:12:16 am
My client wishes to run their site as a Catalog only, unless the user is logged in, whereupon they will see the pricing.

Is this possible?  If so, how is it achieved?

Many thanks for your help.
Geoff
Title: Re: Hide Pricing from Guests?
Post by: jenkinhill on October 31, 2017, 12:28:08 pm
Search?
http://forum.virtuemart.net/index.php?topic=135657
And to hide the add to cart:
http://forum.virtuemart.net/index.php?topic=136494
Title: Re: Hide Pricing from Guests?
Post by: alexanderflr on November 09, 2017, 15:27:46 pm
I needed to have like that so I added in addtocart.php from /templates/youtemplatename/html/com_virtuemart/sublayouts
the following:

Code: [Select]
<?php 
$user
=JFactory::getUser();
if(
$user->id>0);
   else {
?>

<a class="notify btn btn-primary btn-block" href='http://linktologinorregister><?php echo vmText::('Login or Register to see prices'?></a><?php
return;
 } 
?>

Title: Re: Hide Pricing from Guests?
Post by: geoffr on November 10, 2017, 06:47:05 am
So may I clarify:  In VirtueMart 1 (I am doing an upgrade), there was the Config option:

Price Configuration
Show Prices      
Membergroup to show prices to: (options):
"Registered"

Is this simple Config option no longer available? 

thanks,
Geoff
Title: Re: Hide Pricing from Guests?
Post by: K&K media production on November 12, 2017, 00:03:34 am
configuration -> pricing -> Show Prices

and each shoppergroup has this config option: Enable shoppergroup specific price display

Title: Re: Hide Pricing from Guests?
Post by: pacecdn on February 12, 2018, 11:19:17 am
Has anybody tried this?
https://codingmall.com/products-mainmenu-8/198-virtuemart-keep-shop-private

Seems interesting....