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

#   How to hide add to cart button to unregistered use

##

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

Less More

- Posts: 51
- Thank you received: 0
-
-

14 years 9 months ago [\#36990](#36990) by [IanK](/forum/user/3748-iank "View IanK's Profile")  *[How to hide add to cart button to unregistered use](/forum/4-how-to/36990-how-to-hide-add-to-cart-button-to-unregistered-use#36990 "Hi - Is there anyway in Hikashop Essentials to hide the product 'Add to Cart' button from un-registered users.")* was created by *[IanK](/forum/user/3748-iank "View IanK's Profile")*

Hi - Is there anyway in Hikashop Essentials to hide the product 'Add to Cart' button from un-registered users.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2OTkwLWhvdy10by1oaWRlLWFkZC10by1jYXJ0LWJ1dHRvbi10by11bnJlZ2lzdGVyZWQtdXNlP3RtcGw9bWFya2Rvd24=) 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: 86580
- Thank you received: 14322
-
-

14 years 9 months ago [\#37109](#37109) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to hide add to cart button to unregistered use](/forum/4-how-to/36990-how-to-hide-add-to-cart-button-to-unregistered-use#37109 "Hi - Is there anyway in Hikashop Essentials to hide the product 'Add to Cart' button from un-registered users.")*

Hi,

Not in the essential edition but in the Business edition, you can use access levels restrictions on prices to achieve that. When there is no price the add to cart button won't be displayed (instead, you will have a "free" text displayed that you can override to have the text you want).

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

14 years 9 months ago [\#37187](#37187) by [IanK](/forum/user/3748-iank "View IanK's Profile")  Replied by *[IanK](/forum/user/3748-iank "View IanK's Profile")* on topic *[Re: How to hide add to cart button to unregistered use](/forum/4-how-to/36990-how-to-hide-add-to-cart-button-to-unregistered-use#37187 "Hi - Is there anyway in Hikashop Essentials to hide the product 'Add to Cart' button from un-registered users.")*

Thank you Nicolas

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

- **[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")**
- [![ler@singmuiheng.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")
- [ Offline](/forum/user/3330-ler-singmuiheng-com)

Less More

- Posts: 575
- Thank you received: 11
-
-

11 years 5 months ago [\#202883](#202883) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  Replied by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")* on topic *[Re: How to hide add to cart button to unregistered use](/forum/4-how-to/36990-how-to-hide-add-to-cart-button-to-unregistered-use#202883 "Hi - Is there anyway in Hikashop Essentials to hide the product 'Add to Cart' button from un-registered users.")*

Hi, found your solution when searching for this answer, however, can not find a way to set restriction to price, any navigation guide?

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

- **[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")**
- [![ler@singmuiheng.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")
- [ Offline](/forum/user/3330-ler-singmuiheng-com)

Less More

- Posts: 575
- Thank you received: 11
-
-

11 years 5 months ago [\#202884](#202884) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  Replied by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")* on topic *[Re: How to hide add to cart button to unregistered use](/forum/4-how-to/36990-how-to-hide-add-to-cart-button-to-unregistered-use#202884 "Hi - Is there anyway in Hikashop Essentials to hide the product 'Add to Cart' button from un-registered users.")*

i found the access control for price, but is there a way to change all at once? i have more than thousand products.......zzz

or a sql query ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2OTkwLWhvdy10by1oaWRlLWFkZC10by1jYXJ0LWJ1dHRvbi10by11bnJlZ2lzdGVyZWQtdXNlP3RtcGw9bWFya2Rvd24=) 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: 86580
- Thank you received: 14322
-
-

11 years 5 months ago [\#202886](#202886) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to hide add to cart button to unregistered use](/forum/4-how-to/36990-how-to-hide-add-to-cart-button-to-unregistered-use#202886 "Hi - Is there anyway in Hikashop Essentials to hide the product 'Add to Cart' button from un-registered users.")*

Hi,

When you edit your product in the backend, in the Prices area where you entered the price, there is an "access level" column with an icon you can click on in order to set that user group restriction on the price.

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

- **[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")**
- [![ler@singmuiheng.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")
- [ Offline](/forum/user/3330-ler-singmuiheng-com)

Less More

- Posts: 575
- Thank you received: 11
-
-

11 years 5 months ago [\#203998](#203998) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  Replied by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")* on topic *[Re: How to hide add to cart button to unregistered use](/forum/4-how-to/36990-how-to-hide-add-to-cart-button-to-unregistered-use#203998 "Hi - Is there anyway in Hikashop Essentials to hide the product 'Add to Cart' button from un-registered users.")*

but it will be a massive job to edit 2000+ product price and access level just to hide one add to cart button for guest

is there any easier way ? maybe smnthg like

&lt;?php if notlogin
style display="none" add to cart button?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2OTkwLWhvdy10by1oaWRlLWFkZC10by1jYXJ0LWJ1dHRvbi10by11bnJlZ2lzdGVyZWQtdXNlP3RtcGw9bWFya2Rvd24=) 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: 86580
- Thank you received: 14322
-
-

11 years 5 months ago [\#204013](#204013) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to hide add to cart button to unregistered use](/forum/4-how-to/36990-how-to-hide-add-to-cart-button-to-unregistered-use#204013 "Hi - Is there anyway in Hikashop Essentials to hide the product 'Add to Cart' button from un-registered users.")*

Hi,

You can use a mass action via the menu System&gt;Mass actions to do that change for all the products at once.

You can also add custom code in the file "quantity" of the view "product" via the menu Display&gt;Views in order to hide the add to cart button for guests.
Something like that at the top:
&lt;?php if(!hikashop_loadUser()) return; ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2OTkwLWhvdy10by1oaWRlLWFkZC10by1jYXJ0LWJ1dHRvbi10by11bnJlZ2lzdGVyZWQtdXNlP3RtcGw9bWFya2Rvd24=) 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.072 seconds

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