Restrict Access to Pricing Information
You can control who sees pricing information on your website using two methods:
-
Personalized Catalog Views (PCV): Give different visitors access to different items. With PCV, you control what users can do: buy items, see item details and prices, or only see item details. For more information, see Personalized Catalog Views.
-
Require Login for Pricing: A good choice when you don't need PCV's detailed control and simply want to keep prices from unregistered users. When you enable this option, visitors can browse your site, but they must log in to see prices or make purchases. This feature lets you hide prices from competitors or wholesalers and encourages registration.
With this feature enabled, if a user is not logged in, Commerce web stores replace prices with a login message and link. The user can click the link to go to a Login/Registration page, where they must register to see prices or make purchases.
Note:If you restrict access to your entire site, this feature won't apply.
If you're using a pre-Vinson version of SuiteCommerce Advanced, use the second setup procedure.
To restrict access to pricing information:
-
Go to Commerce > Websites > Website List.
-
Click Edit next to the website where you want to restrict pricing information.
-
Go to the Shopping subtab.
-
Check the Require Login for Pricing box.
To restrict access to pricing information (pre-Vinson):
-
Create a custom module that includes the backend Configuration object as a dependency. For details, see Configure Properties.
Note:Don't edit the original Configuration.js source file directly. For guidance on customizing JavaScript, see Develop Your SCA Customization.
-
Set the
loginToSeePrices
property to true in your custom module. -
Save your changes and deploy them to your site.