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

#   \[SOLVED\] Restrict display pricing/add-to-cart butt

##

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

Less More

- Posts: 332
- Thank you received: 6
-
-

13 years 1 week ago -  12 years 11 months ago [\#131241](#131241) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  *[\[SOLVED\] Restrict display pricing/add-to-cart butt](/forum/26-product-category-display/863417-solved-restrict-display-pricing-add-to-cart-butt#131241 "This is a general question and not for a specific website.  Is there a way with the HikaShop to restrict the display of pricing and add-to-cart button's to only registered users? I have a site that we are doing that now with PayPal Add-to-Cart buttons and a plug-in that allows us to only display a part of the article (which has pricing and buttons) to registered users.  Also, is there a way to have multi-level customers with different pricing? I have another site that needs the ability to have one price for regular customers (Registered User Group) but wants a discounted price for members (Members User Group).  Thanks.")* was created by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")*

This is a general question and not for a specific website.

Is there a way with the HikaShop to restrict the display of pricing and add-to-cart button's to only registered users? I have a site that we are doing that now with PayPal Add-to-Cart buttons and a plug-in that allows us to only display a part of the article (which has pricing and buttons) to registered users.

Also, is there a way to have multi-level customers with different pricing? I have another site that needs the ability to have one price for regular customers (Registered User Group) but wants a discounted price for members (Members User Group).

Thanks.

Last edit: 12 years 11 months ago by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 week ago [\#131254](#131254) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Restrict display of pricing and add-to-cart button](/forum/26-product-category-display/863417-solved-restrict-display-pricing-add-to-cart-butt#131254 "This is a general question and not for a specific website.  Is there a way with the HikaShop to restrict the display of pricing and add-to-cart button's to only registered users? I have a site that we are doing that now with PayPal Add-to-Cart buttons and a plug-in that allows us to only display a part of the article (which has pricing and buttons) to registered users.  Also, is there a way to have multi-level customers with different pricing? I have another site that needs the ability to have one price for regular customers (Registered User Group) but wants a discounted price for members (Members User Group).  Thanks.")*

Hi,

In the product edition pages, you can set a different price depending on the user groups.
If you set a price of 0€ for the public group and disable the option "display add to cart button for free products" so the add to cart button will be hidden for guest users and the text "free" will be displayed.
You can do a translation override to replace the text "free" by nothing or something else.

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

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

Less More

- Posts: 25
- Thank you received: 1
-
-

10 years 9 months ago [\#229337](#229337) by [nojunkgoodfood](/forum/user/35905-nojunkgoodfood "View nojunkgoodfood's Profile")  Replied by *[nojunkgoodfood](/forum/user/35905-nojunkgoodfood "View nojunkgoodfood's Profile")* on topic *[Restrict display of pricing and add-to-cart button](/forum/26-product-category-display/863417-solved-restrict-display-pricing-add-to-cart-butt#229337 "This is a general question and not for a specific website.  Is there a way with the HikaShop to restrict the display of pricing and add-to-cart button's to only registered users? I have a site that we are doing that now with PayPal Add-to-Cart buttons and a plug-in that allows us to only display a part of the article (which has pricing and buttons) to registered users.  Also, is there a way to have multi-level customers with different pricing? I have another site that needs the ability to have one price for regular customers (Registered User Group) but wants a discounted price for members (Members User Group).  Thanks.")*

Hi

The above instructions are hiding price and Add to cart button.
Is there any way to Show the price but hide the Add to cart button (until login), saying to customers that they have to login or register to make a purchase?

Thank you

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

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

Less More

- Posts: 332
- Thank you received: 6
-
-

10 years 9 months ago [\#229474](#229474) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  Replied by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")* on topic *[Restrict display of pricing and add-to-cart button](/forum/26-product-category-display/863417-solved-restrict-display-pricing-add-to-cart-butt#229474 "This is a general question and not for a specific website.  Is there a way with the HikaShop to restrict the display of pricing and add-to-cart button's to only registered users? I have a site that we are doing that now with PayPal Add-to-Cart buttons and a plug-in that allows us to only display a part of the article (which has pricing and buttons) to registered users.  Also, is there a way to have multi-level customers with different pricing? I have another site that needs the ability to have one price for regular customers (Registered User Group) but wants a discounted price for members (Members User Group).  Thanks.")*

nojunkgoodfood,

You should be able to do this via CSS. Add this to your custom css sheet.
Code:

/* remove price and button for product display */ .hikashop_product_price_full, .hikashop_product form, .hikashop_product_quantity_main {display:none;}

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 9 months ago [\#229346](#229346) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Restrict display of pricing and add-to-cart button](/forum/26-product-category-display/863417-solved-restrict-display-pricing-add-to-cart-butt#229346 "This is a general question and not for a specific website.  Is there a way with the HikaShop to restrict the display of pricing and add-to-cart button's to only registered users? I have a site that we are doing that now with PayPal Add-to-Cart buttons and a plug-in that allows us to only display a part of the article (which has pricing and buttons) to registered users.  Also, is there a way to have multi-level customers with different pricing? I have another site that needs the ability to have one price for regular customers (Registered User Group) but wants a discounted price for members (Members User Group).  Thanks.")*

Hello,
The solution can be to directly add the price through the description of your product, you'll directly have to edit the code of the "show_default" file of the "product" view via "Hikahop-&gt;Display-&gt;Views" and add a condition to these lines regarding the user group that your customer is in : Code:

&lt;?php //LAYOUT quantity $this-&gt;row = &amp; $this-&gt;element; $this-&gt;ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . $this-&gt;row-&gt;product_id . '\',field,1' . $form . ',\'cart\'); } else { return false; }'; $this-&gt;setLayout('quantity'); echo $this-&gt;loadTemplate(); ?&gt;

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

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

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