Hi i have the problem with hidding price
I have multistore version. NOP 3.2
http://retail.cosmeticishop.it b2C
http://pro.cosmeticishop.it b2B
the site have same products but:
in retail user guests can see the price
in pro user guests can't see the price.
ACL works for all site and dont have configuration for site.
There is a solution? any plug-in?
vittorio
I have multistore version. NOP 3.2
http://retail.cosmeticishop.it b2C
http://pro.cosmeticishop.it b2B
the site have same products but:
in retail user guests can see the price
in pro user guests can't see the price.
ACL works for all site and dont have configuration for site.
There is a solution? any plug-in?
vittorio
Hi,
I have sorted out this issue. If you hide the prices by roles, then its common for all the stores. So it wont help you. Just leave it as default.
My approach needs a bit of customization with some C# and MVC knowledge. Since you have 2 stores and those must be using 2 themes. Just open the theme folder for the one which you want to hide the price. Usually under Presentation\Nop.Web\Themes folder. go to view under Presentation\Nop.Web\Themes\<your theme name>\Views.
you need to find all the views, which shows the product price.
then in the view add,
@using Nop.Core.Infrastructure;
@using Nop.Core.Domain.Customers;
var isGuest = EngineContext.Current.Resolve<Nop.Core.IWorkContext>().CurrentCustomer.IsGuest();
Now wrap the price displace inside a if statement which checks isGuest is not true. So once customer logged in, it will show the price.
But this to work, you need to turn guest checkout off.
Hope this give an idea to you. By this way, you dont need to update any core nop commerce features. So your other store will work as usual.