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

#   how to : basket only for registered

##

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

Less More

- Posts: 17
- Thank you received: 0
-
-

13 years 8 months ago [\#89289](#89289) by [drakc](/forum/user/13516-drakc "View drakc's Profile")  *[how to : basket only for registered](/forum/4-how-to/78195-how-to-basket-only-for-registered#89289 "Hello, nice to meet you, new to hikashop, i wonder how to give an access to the basket only to registered people and let the other on catalogue mode, is it possible ?  Thanks")* was created by *[drakc](/forum/user/13516-drakc "View drakc's Profile")*

Hello,
nice to meet you,
new to hikashop, i wonder how to give an access to the basket only to registered people and let the other on catalogue mode,
is it possible ?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4MTk1LWhvdy10by1iYXNrZXQtb25seS1mb3ItcmVnaXN0ZXJlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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 8 months ago [\#89397](#89397) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[how to : basket only for registered](/forum/4-how-to/78195-how-to-basket-only-for-registered#89397 "Hello, nice to meet you, new to hikashop, i wonder how to give an access to the basket only to registered people and let the other on catalogue mode, is it possible ?  Thanks")*

Hi,

You can add a check in the "product / listing_img_title" and "product / show_default" views to display the add to cart button only to the registered users.
[ www.hikashop.com/fr/forum/4-how-to/78013...egistered.html#88925](http://www.hikashop.com/fr/forum/4-how-to/78013-no-prices-displayed-until-member-registered.html#88925)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4MTk1LWhvdy10by1iYXNrZXQtb25seS1mb3ItcmVnaXN0ZXJlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 17
- Thank you received: 0
-
-

13 years 8 months ago [\#89407](#89407) by [drakc](/forum/user/13516-drakc "View drakc's Profile")  Replied by *[drakc](/forum/user/13516-drakc "View drakc's Profile")* on topic *[how to : basket only for registered](/forum/4-how-to/78195-how-to-basket-only-for-registered#89407 "Hello, nice to meet you, new to hikashop, i wonder how to give an access to the basket only to registered people and let the other on catalogue mode, is it possible ?  Thanks")*

hello Xavier,
thanks for your answer,
the fact is I dont want to hide the price for invited people, but let them in catalogue mode,
and when they identify add : " add to your cart" button and cart itself.

sorry for my english i'm french

drakc

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4MTk1LWhvdy10by1iYXNrZXQtb25seS1mb3ItcmVnaXN0ZXJlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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 8 months ago [\#89414](#89414) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[how to : basket only for registered](/forum/4-how-to/78195-how-to-basket-only-for-registered#89414 "Hello, nice to meet you, new to hikashop, i wonder how to give an access to the basket only to registered people and let the other on catalogue mode, is it possible ?  Thanks")*

Pas de soucis.

That's what I was saying, remove the "add to cart" button, but I commit a mistake, you have to edit the views "product / quantity" and "product / add_to_cart_listing".
The link given explain how to do the check (the if condition on a registered user).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4MTk1LWhvdy10by1iYXNrZXQtb25seS1mb3ItcmVnaXN0ZXJlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 17
- Thank you received: 0
-
-

13 years 8 months ago [\#89486](#89486) by [drakc](/forum/user/13516-drakc "View drakc's Profile")  Replied by *[drakc](/forum/user/13516-drakc "View drakc's Profile")* on topic *[how to : basket only for registered](/forum/4-how-to/78195-how-to-basket-only-for-registered#89486 "Hello, nice to meet you, new to hikashop, i wonder how to give an access to the basket only to registered people and let the other on catalogue mode, is it possible ?  Thanks")*

thank's for your answer,
i'have benn looking at the post you suggest me, and I now understand where to modify.

I must admit i'm not advanced enought to make the change myself.

here is my code for product/quantity.php

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 2.1.0
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;&lt;?php
if(!isset($this-&gt;cart)) $this-&gt;cart = hikashop_get('helper.cart');
if(!empty($this-&gt;row-&gt;has_options)){
echo $this-&gt;cart-&gt;displayButton(JText::_('CHOOSE_OPTIONS'),'choose_options',$this-&gt;params,hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$this-&gt;itemid.$this-&gt;category_pathway),'window.location = \''.str_replace("'","\'",hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$this-&gt;itemid.$this-&gt;category_pathway)).'\';return false;','');
}else{
$config =&amp; hikashop_config();
$this-&gt;cart = hikashop_get('helper.cart');
$url = '';
$module_id = $this-&gt;params-&gt;get('from_module',0);
if(empty($this-&gt;ajax)){
$this-&gt;ajax = 'return hikashopModifyQuantity(\''.$this-&gt;row-&gt;product_id.'\',field,1,0,\'cart\','.$module_id.')';
}
if(@$this-&gt;row-&gt;product_sale_start &#124;&#124; empty($this-&gt;element-&gt;main)){
$start_date = @$this-&gt;row-&gt;product_sale_start;
}else{
$start_date = $this-&gt;element-&gt;main-&gt;product_sale_start;
}
if(@$this-&gt;row-&gt;product_sale_end &#124;&#124; empty($this-&gt;element-&gt;main)){
$end_date = @$this-&gt;row-&gt;product_sale_end;
}else{
$end_date = $this-&gt;element-&gt;main-&gt;product_sale_end;
}

if($end_date &amp;&amp; $end_date&lt;time()){
?&gt;
&lt;span class="hikashop_product_sale_end"&gt;
&lt;?php echo JText::_('ITEM_NOT_SOLD_ANYMORE'); ?&gt;
&lt;/span&gt;
&lt;?php
}elseif($start_date &amp;&amp; $start_date&gt;time()){
?&gt;
&lt;span class="hikashop_product_sale_start"&gt;
&lt;?php
echo JText::sprintf('ITEM_SOLD_ON_DATE',hikashop_getDate($start_date,$this-&gt;params-&gt;get('date_format','%d %B %Y')));
?&gt;
&lt;/span&gt;
&lt;?php
}elseif(!$this-&gt;params-&gt;get('catalogue') &amp;&amp; ($this-&gt;config-&gt;get('display_add_to_cart_for_free_products') &#124;&#124; !empty($this-&gt;row-&gt;prices))){
if(@$this-&gt;row-&gt;product_min_per_order &#124;&#124; empty($this-&gt;element-&gt;main)){
$min = @$this-&gt;row-&gt;product_min_per_order;
}else{
$min = @$this-&gt;element-&gt;main-&gt;product_min_per_order;
}
if(@$this-&gt;row-&gt;product_max_per_order &#124;&#124; empty($this-&gt;element-&gt;main)){
$max = @$this-&gt;row-&gt;product_max_per_order;
}else{
$max = @$this-&gt;element-&gt;main-&gt;product_max_per_order;
}
if($min&lt;=0){
$min=1;
}
$formName = ',0';

if (!$this-&gt;config-&gt;get('ajax_add_to_cart', 0) &#124;&#124; ($this-&gt;config-&gt;get('show_quantity_field')&gt;=2 &amp;&amp; !@$this-&gt;element-&gt;product_id)) {
if(empty($this-&gt;formName)) {
if(@$this-&gt;row-&gt;product_id)
$formName = ',\'hikashop_product_form_'.$this-&gt;row-&gt;product_id.'_'.$this-&gt;params-&gt;get('main_div_name').'\'';
else
$formName = ',\'hikashop_product_form_'.$this-&gt;params-&gt;get('main_div_name').'\'';
} else {
$formName = $this-&gt;formName;
}
}
$wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';

if($this-&gt;row-&gt;product_quantity == -1 &amp;&amp; !empty($this-&gt;element-&gt;main) &amp;&amp; $this-&gt;element-&gt;main-&gt;product_quantity != -1){
$this-&gt;row-&gt;product_quantity = $this-&gt;element-&gt;main-&gt;product_quantity;
}
$btnType = 'add';
if($this-&gt;row-&gt;product_quantity==-1){
?&gt;
&lt;div class="hikashop_product_stock"&gt;
&lt;?php
if($this-&gt;params-&gt;get('add_to_cart',1)){
echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$max,$min);
$btnType = 'wish';
}
if($this-&gt;params-&gt;get('add_to_wishlist') &amp;&amp; $config-&gt;get('enable_wishlist', 1)){
echo '&lt;div id="hikashop_add_wishlist"&gt;';
echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'),$btnType,$this-&gt;params,$url,$wishlistAjax,'',$max,$min,'',false);
echo '&lt;/div&gt;';
}
}elseif($this-&gt;row-&gt;product_quantity&gt;0){
?&gt;
&lt;div class="hikashop_product_stock"&gt;
&lt;?php
echo '&lt;span class="hikashop_product_stock_count"&gt;'.JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;product_quantity).'&lt;/span&gt;&lt;br/&gt;';
if($config-&gt;get('button_style','normal')=='css'){
echo '&lt;br /&gt;';
}
if($max&lt;=0 &#124;&#124; $max&gt;$this-&gt;row-&gt;product_quantity) $max = $this-&gt;row-&gt;product_quantity;
if($this-&gt;params-&gt;get('add_to_cart',1)){
echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$max,$min);
$btnType = 'wish';
}
if($this-&gt;params-&gt;get('add_to_wishlist') &amp;&amp; $config-&gt;get('enable_wishlist', 1)){
echo '&lt;div id="hikashop_add_wishlist"&gt;';
echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'),$btnType,$this-&gt;params,$url,$wishlistAjax,'',$max,$min,'',false);
echo '&lt;/div&gt;';
}
}else{
?&gt;
&lt;div class="hikashop_product_no_stock"&gt;
&lt;?php
echo JText::_('NO_STOCK').'&lt;br/&gt;';
$waitlist = $this-&gt;config-&gt;get('product_waitlist',0);
if(hikashop_level(1) &amp;&amp; ($waitlist==2 &#124;&#124; ($waitlist==1 &amp;&amp; (!empty($this-&gt;element-&gt;main-&gt;product_waitlist) &#124;&#124; !empty($this-&gt;element-&gt;product_waitlist))))){ ?&gt;
&lt;/div&gt;&lt;div id="hikashop_product_waitlist_main" class="hikashop_product_waitlist_main"&gt;
&lt;?php
$empty='';
jimport('joomla.html.parameter');
$params = new HikaParameter($empty);
echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_ME_WAITLIST'),'add_waitlist',$params,hikashop_completeLink('product&amp;task=waitlist&amp;cid='.$this-&gt;row-&gt;product_id),'window.location=\''.str_replace("'","\'",hikashop_completeLink('product&amp;task=waitlist&amp;cid='.$this-&gt;row-&gt;product_id)).'\';return false;');

}
if($this-&gt;params-&gt;get('add_to_wishlist') &amp;&amp; $config-&gt;get('enable_wishlist', 1)){
echo '&lt;div id="hikashop_add_wishlist"&gt;';
echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'),'add',$this-&gt;params,$url,$wishlistAjax,'',@$this-&gt;row-&gt;product_max_per_order,1,'',false);
echo '&lt;/div&gt;';
}
}?&gt;
&lt;/div&gt;
&lt;?php
}
}
?&gt;

and here is the code for product/add to cart listing

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 2.1.0
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;&lt;?php if ($this-&gt;config-&gt;get('show_quantity_field')&lt;2) { ?&gt;
&lt;form action="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart'); ?&gt;" method="post" name="hikashop_product_form_&lt;?php echo $this-&gt;row-&gt;product_id.'_'.$this-&gt;params-&gt;get('main_div_name'); ?&gt;" enctype="multipart/form-data"&gt;
&lt;?php }

if($this-&gt;params-&gt;get('display_custom_item_fields',0) &amp;&amp; empty($this-&gt;row-&gt;has_options) &amp;&amp; ($this-&gt;row-&gt;product_quantity==-1 &#124;&#124; $this-&gt;row-&gt;product_quantity&gt;0)&amp;&amp; !$this-&gt;config-&gt;get('catalogue') &amp;&amp; ($this-&gt;config-&gt;get('display_add_to_cart_for_free_products') &#124;&#124; !empty($this-&gt;row-&gt;prices))){
$itemFields = $this-&gt;fieldsClass-&gt;getFields('frontcomp',$this-&gt;row,'item','checkout&amp;task=state');
$null=array();
$this-&gt;fieldsClass-&gt;addJS($null,$null,$null);
$this-&gt;fieldsClass-&gt;jsToggle($itemFields,$this-&gt;row,0);
$extraFields = array('item'=&gt;&amp;$itemFields);
$requiredFields = array();
$validMessages = array();
$values = array('item'=&gt;$this-&gt;row);
$this-&gt;fieldsClass-&gt;checkFieldsForJS($extraFields,$requiredFields,$validMessages,$values);
$this-&gt;fieldsClass-&gt;addJS($requiredFields,$validMessages,array('item'));

if(!empty($itemFields)){
?&gt;
&lt;!-- CUSTOM ITEM FIELDS --&gt;
&lt;div id="hikashop_product_custom_item_info_for_product_&lt;?php echo $this-&gt;row-&gt;product_id; ?&gt;" class="hikashop_product_custom_item_info hikashop_product_listing_custom_item"&gt;
&lt;table class="hikashop_product_custom_item_info_table hikashop_product_listing_custom_item_table" width="100%"&gt;
&lt;?php
foreach($itemFields as $fieldName =&gt; $oneExtraField) {
$itemData = JRequest::getString('item_data_'.$fieldName,$this-&gt;row-&gt;$fieldName); ?&gt;
&lt;tr id="hikashop_item_&lt;?php echo $oneExtraField-&gt;field_namekey; ?&gt;" class="hikashop_item_&lt;?php echo $oneExtraField-&gt;field_namekey;?&gt;_line"&gt;
&lt;td class="key"&gt;
&lt;span id="hikashop_product_custom_item_name_&lt;?php echo $oneExtraField-&gt;field_id;?&gt;_for_product_&lt;?php echo $this-&gt;row-&gt;product_id; ?&gt;" class="hikashop_product_custom_item_name"&gt;
&lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField);?&gt;
&lt;/span&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;span id="hikashop_product_custom_item_value_&lt;?php echo $oneExtraField-&gt;field_id;?&gt;_for_product_&lt;?php echo $this-&gt;row-&gt;product_id; ?&gt;" class="hikashop_product_custom_item_value"&gt;&lt;?php
$onWhat='onchange';
if($oneExtraField-&gt;field_type=='radio')
$onWhat='onclick';
$oneExtraField-&gt;product_id = $this-&gt;row-&gt;product_id;
echo $this-&gt;fieldsClass-&gt;display($oneExtraField,$itemData,'data[item]',false,' '.$onWhat.'="if (\'function\' == typeof window.hikashopToggleFields) { hikashopToggleFields(this.value,\''.$fieldName.'\',\'item\',0); }"');
?&gt;&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
}?&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;!-- EO CUSTOM ITEM FIELDS --&gt;
&lt;?php }
}

if ($this-&gt;config-&gt;get('show_quantity_field')&lt;2) {
$module_id = $this-&gt;params-&gt;get('from_module',0);

$this-&gt;formName = ',\'hikashop_product_form_'.$this-&gt;row-&gt;product_id.'_'.$this-&gt;params-&gt;get('main_div_name').'\'';
$this-&gt;ajax='';
if(!$this-&gt;config-&gt;get('ajax_add_to_cart',0)&#124;&#124;!empty($itemFields)){
$this-&gt;ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form_'.$this-&gt;row-&gt;product_id.'_'.$this-&gt;params-&gt;get('main_div_name').'\')){ return hikashopModifyQuantity(\''.$this-&gt;row-&gt;product_id.'\',field,1,\'hikashop_product_form_'.$this-&gt;row-&gt;product_id.'_'.$this-&gt;params-&gt;get('main_div_name').'\',\'cart\','.$module_id.'); } return false;';
}
$this-&gt;setLayout('quantity');
echo $this-&gt;loadTemplate();
if(!empty($this-&gt;ajax) &amp;&amp; $this-&gt;config-&gt;get('redirect_url_after_add_cart','stay_if_cart')=='ask_user'){ ?&gt;
&lt;input type="hidden" name="popup" value="1"/&gt;
&lt;?php } ?&gt;
&lt;input type="hidden" name="hikashop_cart_type_&lt;?php echo $this-&gt;row-&gt;product_id.'_'.$module_id; ?&gt;" id="hikashop_cart_type_&lt;?php echo $this-&gt;row-&gt;product_id.'_'.$module_id; ?&gt;" value="cart"/&gt;
&lt;input type="hidden" name="product_id" value="&lt;?php echo $this-&gt;row-&gt;product_id; ?&gt;" /&gt;
&lt;input type="hidden" name="module_id" value="&lt;?php echo $module_id; ?&gt;" /&gt;
&lt;input type="hidden" name="add" value="1"/&gt;
&lt;input type="hidden" name="ctrl" value="product"/&gt;
&lt;input type="hidden" name="task" value="updatecart"/&gt;
&lt;input type="hidden" name="return_url" value="&lt;?php echo urlencode(base64_encode(urldecode($this-&gt;redirect_url)));?&gt;"/&gt;
&lt;/form&gt;
&lt;?php }elseif(empty($this-&gt;row-&gt;has_options)&amp;&amp; !$this-&gt;config-&gt;get('catalogue') &amp;&amp; ($this-&gt;config-&gt;get('display_add_to_cart_for_free_products') &#124;&#124; !empty($this-&gt;row-&gt;prices))){
if($this-&gt;row-&gt;product_quantity==-1 &#124;&#124; $this-&gt;row-&gt;product_quantity&gt;0){ ?&gt;
&lt;input id="hikashop_listing_quantity_&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;" type="text" style="width:40px;" name="data[&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;]" class="hikashop_listing_quantity_field" value="0" /&gt;
&lt;?php }else{
echo JText::_('NO_STOCK');
}
} ?&gt;

could you help me please ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4MTk1LWhvdy10by1iYXNrZXQtb25seS1mb3ItcmVnaXN0ZXJlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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 8 months ago [\#89587](#89587) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[how to : basket only for registered](/forum/4-how-to/78195-how-to-basket-only-for-registered#89587 "Hello, nice to meet you, new to hikashop, i wonder how to give an access to the basket only to registered people and let the other on catalogue mode, is it possible ?  Thanks")*

Thanks to not past the content of your files, we have the same ![;)](/media/kunena/emoticons/24.png ";)")

Try to add: Code:

$user = JFactory::getUser(); if($user-&gt;guest){ $this-&gt;params-&gt;set('catalogue','1'); }

At the top of each view.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4MTk1LWhvdy10by1iYXNrZXQtb25seS1mb3ItcmVnaXN0ZXJlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 17
- Thank you received: 0
-
-

13 years 8 months ago [\#89747](#89747) by [drakc](/forum/user/13516-drakc "View drakc's Profile")  Replied by *[drakc](/forum/user/13516-drakc "View drakc's Profile")* on topic *[how to : basket only for registered](/forum/4-how-to/78195-how-to-basket-only-for-registered#89747 "Hello, nice to meet you, new to hikashop, i wonder how to give an access to the basket only to registered people and let the other on catalogue mode, is it possible ?  Thanks")*

Yes it works !!
a real pleasure to " work " with you, thanks a lot !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4MTk1LWhvdy10by1iYXNrZXQtb25seS1mb3ItcmVnaXN0ZXJlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 17
- Thank you received: 0
-
-

12 years 11 months ago [\#132052](#132052) by [drakc](/forum/user/13516-drakc "View drakc's Profile")  Replied by *[drakc](/forum/user/13516-drakc "View drakc's Profile")* on topic *[how to : basket only for registered](/forum/4-how-to/78195-how-to-basket-only-for-registered#132052 "Hello, nice to meet you, new to hikashop, i wonder how to give an access to the basket only to registered people and let the other on catalogue mode, is it possible ?  Thanks")*

Hello,
a few months later, i wish to change my template, and when the new template is on, the trick to hide " add to cart " does not work any longer.
( still ok with the original template )

any idea ??

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4MTk1LWhvdy10by1iYXNrZXQtb25seS1mb3ItcmVnaXN0ZXJlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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
-
-
-

12 years 11 months ago [\#132066](#132066) 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 *[how to : basket only for registered](/forum/4-how-to/78195-how-to-basket-only-for-registered#132066 "Hello, nice to meet you, new to hikashop, i wonder how to give an access to the basket only to registered people and let the other on catalogue mode, is it possible ?  Thanks")*

Hi,

Your problem is coming from the fact that you have made your modifications to the files "**add\_to\_cart\_listing**" and "**quantity**" of the **product** view of your **previous front-end template**. So now you'll have to do the same modification by copying them, to the files "**add\_to\_cart\_listing**" and "**quantity**" of the **product** view of your **new front-end template**.

You'll be able to do that through the "*Hikashop-&gt;Display-&gt;Views*" page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4MTk1LWhvdy10by1iYXNrZXQtb25seS1mb3ItcmVnaXN0ZXJlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.129 seconds

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