Hide price in cart if not logged in

  • Posts: 26
  • Thank you received: 0
11 years 6 days ago #170800

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3

hello,
I work in a shop or purpose is to send a command to receive in return a quote.
The price of items in the basket must be hidden at the articles and the total price.
These prices have nevertheless reappear if a customer is referenced. this one by logging appear sees prices.
I managed to make disappear the prices in the material master records when we connect in public and make them appear if we log in private.
Can we do the same with the basket?

thank you

Merci...

Last edit: 11 years 6 days ago by iinuma.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 5 days ago #170814

Hi,

Yes it's possible, you have to edit the view "product / cart" for the cart module, and "checkout / cart" for the checkout workflow.
Then add code around the one displaying the price like that:

if(hikashop_loadUser() != null){
  // price code
}

Please Log in or Create an account to join the conversation.

Time to create page: 0.042 seconds
Powered by Kunena Forum