[Skip to main content](#vessel-content)

#   Display add to cart only to logged users

##

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

3 years 1 month ago [\#355551](#355551) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Display add to cart only to logged users](/forum/26-product-category-display/907070-display-add-to-cart-only-to-logged-users#355551 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 3.10.12  Hello!  I have products without prices (free) and i want to display the &quot;add to cart&quot; button only to the registered users. How do i do that?  Thank you")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

-- HikaShop version -- : 4.7.5
-- Joomla version -- : 3.10.12

Hello!

I have products without prices (free) and i want to display the "add to cart" button only to the registered users.
How do i do that?

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDcwNzAtZGlzcGxheS1hZGQtdG8tY2FydC1vbmx5LXRvLWxvZ2dlZC11c2Vycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

3 years 1 month ago -  3 years 1 month ago [\#355552](#355552) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display add to cart only to logged users](/forum/26-product-category-display/907070-display-add-to-cart-only-to-logged-users#355552 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 3.10.12  Hello!  I have products without prices (free) and i want to display the &quot;add to cart&quot; button only to the registered users. How do i do that?  Thank you")*

Hi,

You could set a price of 0.0001 restricted to the registered user group. That way, with the "display add to cart button for free products" setting turned off, the add to cart button will appear only for registered users.

Last edit: 3 years 1 month ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDcwNzAtZGlzcGxheS1hZGQtdG8tY2FydC1vbmx5LXRvLWxvZ2dlZC11c2Vycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

3 years 1 month ago [\#355627](#355627) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Display add to cart only to logged users](/forum/26-product-category-display/907070-display-add-to-cart-only-to-logged-users#355627 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 3.10.12  Hello!  I have products without prices (free) and i want to display the &quot;add to cart&quot; button only to the registered users. How do i do that?  Thank you")*

Hi!

I set the price as you suggested, turned on the "add to cart" button but noting changed.

Thank you

- [ ![price&#95;2023-10-05.jpg](/forum/attachment/57940) ](/forum/attachment/57940 "...2023-10-05.jpg") [ ](/forum/attachment/57940?download=1 "...2023-10-05.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDcwNzAtZGlzcGxheS1hZGQtdG8tY2FydC1vbmx5LXRvLWxvZ2dlZC11c2Vycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

3 years 1 month ago [\#355631](#355631) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display add to cart only to logged users](/forum/26-product-category-display/907070-display-add-to-cart-only-to-logged-users#355631 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 3.10.12  Hello!  I have products without prices (free) and i want to display the &quot;add to cart&quot; button only to the registered users. How do i do that?  Thank you")*

Hi,

I found that product on your website: mixanismoi-syrtarion/odigoi-syrtarion-metal-box/product/3128-odigoi-syrtarion-metabox-12mm/category_pathway-2
I can see that this product has characteristics. If a variant has a price, the price of the main product will be ignored.
I can also see that the add to cart button is displayed even though no price is being displayed.
That should not happen with the "display add to cart button for free products" setting turned off.
Can you check that this setting is properly set ?

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDcwNzAtZGlzcGxheS1hZGQtdG8tY2FydC1vbmx5LXRvLWxvZ2dlZC11c2Vycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

3 years 1 month ago [\#355867](#355867) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Display add to cart only to logged users](/forum/26-product-category-display/907070-display-add-to-cart-only-to-logged-users#355867 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 3.10.12  Hello!  I have products without prices (free) and i want to display the &quot;add to cart&quot; button only to the registered users. How do i do that?  Thank you")*

Hi,

The button worked like you suggested but after an import it doesn't work again.
All the prices are 0.000124 only for registered users and the "Display 'add to cart' button for free products" option is turned off.
But i don't know if it has something to do with the import.
I copied-paste to the text area tab.

I'm attaching the CSV file.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDcwNzAtZGlzcGxheS1hZGQtdG8tY2FydC1vbmx5LXRvLWxvZ2dlZC11c2Vycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

3 years 1 month ago [\#355872](#355872) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display add to cart only to logged users](/forum/26-product-category-display/907070-display-add-to-cart-only-to-logged-users#355872 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 3.10.12  Hello!  I have products without prices (free) and i want to display the &quot;add to cart&quot; button only to the registered users. How do i do that?  Thank you")*

Hi,

I don't know why it doesn't work.
I checked your website but everything looks good.
Could you provide a FTP access in order to look into it ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDcwNzAtZGlzcGxheS1hZGQtdG8tY2FydC1vbmx5LXRvLWxvZ2dlZC11c2Vycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

3 years 1 month ago [\#355876](#355876) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Display add to cart only to logged users](/forum/26-product-category-display/907070-display-add-to-cart-only-to-logged-users#355876 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 3.10.12  Hello!  I have products without prices (free) and i want to display the &quot;add to cart&quot; button only to the registered users. How do i do that?  Thank you")*

I sent you Nicolas!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDcwNzAtZGlzcGxheS1hZGQtdG8tY2FydC1vbmx5LXRvLWxvZ2dlZC11c2Vycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

3 years 1 month ago [\#355880](#355880) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display add to cart only to logged users](/forum/26-product-category-display/907070-display-add-to-cart-only-to-logged-users#355880 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 3.10.12  Hello!  I have products without prices (free) and i want to display the &quot;add to cart&quot; button only to the registered users. How do i do that?  Thank you")*

Hi,

The problem comes from the price_access column of your prices.
For some reason, it has been changed from ,2, to just 2
This can be fixed with a small MySQL query: Code:

UPDATE #__hikashop_price SET price_access = ',2,' WHERE price_access='2'

However, I don't see how importing your CSV would lead to this since you don't have anything related to prices in there...
Are you sure that you used the CSV you provided in your message ?

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDcwNzAtZGlzcGxheS1hZGQtdG8tY2FydC1vbmx5LXRvLWxvZ2dlZC11c2Vycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

3 years 1 month ago [\#355929](#355929) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Display add to cart only to logged users](/forum/26-product-category-display/907070-display-add-to-cart-only-to-logged-users#355929 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 3.10.12  Hello!  I have products without prices (free) and i want to display the &quot;add to cart&quot; button only to the registered users. How do i do that?  Thank you")*

Nicolas hi,

Another issue came up after the last import. Variants were deleted from several products and when i tried to readd them i got the message "Code already exists". I checked the database and the variants are there. I deleted one variant from the database and added the variant again in the backend of the product and it worked correctly. But this is weird. Any thoughts?

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDcwNzAtZGlzcGxheS1hZGQtdG8tY2FydC1vbmx5LXRvLWxvZ2dlZC11c2Vycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

3 years 1 month ago [\#355930](#355930) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display add to cart only to logged users](/forum/26-product-category-display/907070-display-add-to-cart-only-to-logged-users#355930 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 3.10.12  Hello!  I have products without prices (free) and i want to display the &quot;add to cart&quot; button only to the registered users. How do i do that?  Thank you")*

Hi,

This probably means that the CSV is wrong. For example, if the variant rows don't have the cells in the characteristics properly filled in.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDcwNzAtZGlzcGxheS1hZGQtdG8tY2FydC1vbmx5LXRvLWxvZ2dlZC11c2Vycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.106 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
