Display prices only when logged in

  • Posts: 78
  • Thank you received: 0
10 years 6 months ago #194290

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- Browser(s) name and version -- : Chrome 41

Can I setup Hikashop that product prices do not display on the front-end, but only once a user has logged in to place his orders? And how do I do that?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 6 months ago #194296

Hello,
A solution can be to directly :
- Restrict your product price to your logged in user group
- Set the "Display 'add to cart' button for free products" option to NO via "Hikashop->System->Configuration->'Main'"

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

  • Posts: 78
  • Thank you received: 0
10 years 5 months ago #198027

Thanks for the reply.
You mention 'Restrict your product price to your logged in user group'.
How do I do this?
The setting 'set the display option to NO', did not change anything.

I would like all product prices to be hidden from normal web visitors. Once a CLIENT LOGS IN, then only can he should view the prices.

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

  • Posts: 84306
  • Thank you received: 13701
  • MODERATOR
10 years 5 months ago #198033

Hi,

When you edit a product, in the prices listing you will find a column Access level that you can use for that. Note that this is only possible with the Business edition of hikashop

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

  • Posts: 78
  • Thank you received: 0
10 years 3 months ago #202433

Hi, I have just purchased the Business edition.

I have set the 'access level' of the product price to 'Registered'.
But now the product displays 'free' - which is not what I want.
I only want the product image and description to display with NO PRICE below.
The price must only display once a client has logged in.

Then another thing.
Is there a way that I can set the access level for ALL products at once?
I have already loaded hundred of products and now it is quite painful to edit each and every product separately...

Thanks!

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

  • Posts: 84306
  • Thank you received: 13701
  • MODERATOR
10 years 3 months ago #202440

Hi,

1. You want to use a translation override in order to change the "Free" text to "no price" or nothing :
hikashop.com/download/languages.html#modify

2. You can do that with a mass action that you can create via the menu System>Mass actions with an action "update the values on the price_access column with the same data as you have in the price_access column of the hikashop_price table of your database for the price of the product that you already configured.
www.hikashop.com/support/support/documen...massaction-form.html
Mass actions are powerful but there is no "cancel" once you process it so make sure you have a backup in case you screw up with its settings.

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

  • Posts: 78
  • Thank you received: 0
10 years 3 months ago #202739

I did the translation overwrite from 'free' to 'login to view price'.
And it showed correctly on the frontend.

Then I created the mass action to update the Access Level for all products and processed it as you suggested.
But once you log in it still shows 'login to view price' as if you are not logged in.

However, when I update the access level manually for one product and then login, it shows the price and add to cart button, which is what I want.

I suspect there must be another column that needs to be updated with the mass action.

Which tables/columns gets updated when you change the access level of a product price in the backend?

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

  • Posts: 84306
  • Thank you received: 13701
  • MODERATOR
10 years 3 months ago #202742

Hi,

Of course, it's the price_access of the hikashop_price table which is updated, and that's why I recommended to update that column in your mass action.
So this indicates that you likely didn't update the "price_access" column with the correct value or that your mass action is wrong.

If you could provide a screenshot of your mass action settings, we might be able to tell you what's wrong with it.

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

  • Posts: 78
  • Thank you received: 0
10 years 3 months ago #202835

Okay here is my screenshots of the 'access level'. I also think it is something that I have left out.

Thanks so far.

Attachments:

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

  • Posts: 84306
  • Thank you received: 13701
  • MODERATOR
10 years 3 months ago #202841

Hi,

In the price_access value field of your mass action, you should enter ,2, instead of just 2 if you want your prices to be restricted to the user group with the id 2. Also, make sure that your user is directly linked to that user group.

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

  • Posts: 78
  • Thank you received: 0
10 years 3 months ago #203225

Thank you. I have changed it to ,2,

Sorry for all the questions, but HOW and WHERE do I set that 'the user is directly linked to this user group' ?

If a new clients registers and starts ordering, would he automatically be linked to this group - or does one have to set it every time once a new user registers?

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

  • Posts: 84306
  • Thank you received: 13701
  • MODERATOR
10 years 3 months ago #203296

Hi,

Go in the user groups manager of Joomla and there you can see the id of each user group.
And if you go in the options of the Joomla user manager, you can select the group that you want your users to be in after the registration.
And if you want to change the user groups of a user, you can go in the Joomla user manager, edit the user and change its user group.

So the customers would be linked to the user group after registration only if you selected the user group which has the id in the user group after registration setting of the Joomla user manager.

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

  • Posts: 78
  • Thank you received: 0
9 years 7 months ago #228027

Please let me know if I need to create a new topic.

With regard to this previous issue I had, this morning I noticed that there must have been a reset in my languages file.
Previously a visitor had to log in to view a product price.
This appeared as a button underneath the product image.

But today the product shows as 'FREE' only.

I went back to Languages to change FREE_PRICE="Login to view price"

But I do not remember what the correct code should be to have a 'button' that you can click on.
Currently it only appears as text.

Please see my screenshot.

Thanks for the help.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #228031

Hi,

This code should do the job:

<a class="modal" href="/you-login-menu-alias">Login to view price</a>

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

  • Posts: 78
  • Thank you received: 0
9 years 7 months ago #228113

Thanks.
Why is it that the Language files gets reset, or loses some of the elements that I have put in before?
This button 'login to view price' has been working for a few months.
And now when I went back to Languages to edit some other text, it suddenly jumps back to "FREE PRICE"

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

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #228121

Hi,

Do you added the new string in the override part of the language edition interface ?
Below the main translation part ? take.ms/7TBsQ

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

  • Posts: 78
  • Thank you received: 0
9 years 7 months ago #228506

No, I used to change it in the top part of Languages. And this probably caused my problems...

Can I edit the CSS style of this code?
FREE_PRICE="<a class="modal" href="/index.php#login_panel">Login to view price</a>"

I would like the button for 'Login to view price' to sit lower on the screen as it is not very clear.
Also when I click on this button, the LOGIN popup does not look similar to the LOGIN popup from the Top Menu
How can I style this?



Thanks for your help so far!

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #228531

Hi,

For the css questions please have a look at our tutorial on how to customize the display:
www.hikashop.com/support/documentation/s...ize-the-display.html

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

Time to create page: 0.105 seconds
Powered by Kunena Forum