Remove wishlist button in free version

  • Posts: 2
  • Thank you received: 0
11 years 1 month ago #126173

Hi all

I am new to the Hikashop platform (starter 2.2.2) and have spent the last day and a half trying to find a solution to my issue.....

I want to have an online catalogue - so far i have achieved this except for one thing....

the "Add to wishlist" button appears when viewing the subcategory and the product listing. I have read all sorts about a simple flicking of the switch to disable this, but my (Free) starter version states "Only in commercial versions of Hikashop".

Now, i am reading this as i can only activate this facility if i upgrade? so therefore it should be switched off?

I also read that it is switched ON by default, so i am confused as to how i would achieve my catalogue of products which the free version allows you to activate (Features > Main > Catalogue mode > yes/no) without seeing the "add to wishlist" button.

Just to let you know i am using this as a platform to show a range of products, but would like the customer to contact me for further information. So could i use the wishlist to trigger an email submission?

Again i read this may only be possible in an upgrade?

I cant see why i cant use this starter version as a catalogue to display the products without any "calls to action"

Please can somebody help?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #126178

Hi,
The best solution will probably be to enable the "Catalogue mode" through "Hikashop->System->Configuration->'Features'" by using the "Catalogue mode" option.

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

  • Posts: 26
  • Thank you received: 0
11 years 1 month ago #126509

I have this same problem. However, I am in Catalog Only mode and have all references to Wishlist turned off. I still have the Add to Wishlist button appearing on all my product images.

Hikashop->System->Configuration->'Features: catalog mode: Yes
Hikashop->System->Configuration->Wishlist: Enable the wishlists: No
Hikashop->System->Configuration->Wishlist: Hide wishlist button for guest users: Yes
Hikashop->System->Configuration->Wishlist: Display the convert cart in wishlist button: No
Hikashop->System->Configuration->Wishlist: Display compare button in wishlist display: No

Strange because in the free version, if you go to Hikashop->System->Configuration->Display>Default parameters for products: Display Add to Wishlist Button clearly says it's for the commercial version. I would not expect the button to appear in the free version regardless of what settings are checked/unchecked. The opposite is true though, I can't get rid of it.

Since it is in catalog only mode the wishlist button doesn't do anything, so I would really like to be able to get rid of it.

Any thoughts????

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
11 years 1 month ago #126575

Hi,

Which version (number) of HikaShop are you using ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 26
  • Thank you received: 0
11 years 1 month ago #126579

Thanks, it's 2.2.2

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

  • Posts: 2
  • Thank you received: 0
11 years 1 month ago #126592

Hi all, I have to be honest....

Mine has disappeared and now works as a catalogue. This could be down to a cache issue or after all of my frustration I have actually changed a setting that has actually helped - though I can't tell you which one!

I know this does not resolve your issue but the cache could be the culprit. What it does show is that the system does allow a catalogue without a wish list button

Thanks to your replies and I will be following the progress of your issue defiant class.

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

  • Posts: 26
  • Thank you received: 0
11 years 1 month ago #126636

Thanks Matthew. I'm afraid the cache couldn't be the problem for me though. I had someone else go to the site, who had never gone to it before, and the Add to Wishlist buttons were there. In fact the person said there was an item she wanted and tried to use the button to look at it again after looking at the site further. That was the first person to look at the site and the button caused an issue. So I imagine that it is going to be an ongoing problem that I really need to fix. Hopefully I can get a resolution to it.

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

  • Posts: 26
  • Thank you received: 0
11 years 1 month ago #126648

I have some additional information to add. In my site, I have a category menu on the side. Some categories have subcategories, some don't. The Add to Wishlist button only seems to appear on some of the pages of products, but not all.

However it looks like the button does appear on all products once you drill down to the final product page (i.e. past the page that lists a number of products and down to the individual product's page. There is shows up for every product).

But some pages listing multiple products in a given category do not show the button, some do. It's strange.

Just trying to provide as much info as I can to help find the problem/fix.

Thanks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #126694

Hi,

Thanks to check in your menu / module options if the option to display the wishlist button is enable, if it's the case, thanks to disable it.
Can you see via phpMyAdmin, in the table "#__hikashop_config" if the key "enable_wishlist" has the value "0", if not, thanks to set it to "0".

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

  • Posts: 26
  • Thank you received: 0
11 years 1 month ago #127770

Xavier,

I have found the key in the table you referred to and it is already set to 0.

I also checked the menu/module setting you talked about.

I was able to remove the Add to Wishlist button from the pages that list all products in that category. So that is progress. I had found that the "Display Add to Cart" parameter under Parameters for Products was set to Yes on some items. When I changed that to No, the Add to Wishlist button disappeared. Strange!!!

But still, if you continue clicking further, down to an individual product's page, it still has the Add to Wishlist button.

Any other suggestions??? Thanks

Last edit: 11 years 1 month ago by defiantclass.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #127796

Hi,
And can you set the "Display 'Add to wishlist' button" option to NO through "Hikashop->System->Configuration->Display->'Default parameters for products'".

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

  • Posts: 26
  • Thank you received: 0
11 years 1 month ago #127911

No, I can't. It has the "commercial only" text in that field. I have to do each one manually.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #127947

Hi,

Can you try to download again the latest package from our website ?
Some corrections have been made about that problem.

Else you can edit the view "product / quantity" via the menu Display > Views and remove/comment the part about the wishlists.

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

  • Posts: 26
  • Thank you received: 0
11 years 2 days ago #134175

Xavier,

I has to step away from this for a while for other stuff. I'm sorry to leave it so long.

I attempted to update via Documentation>>Update/About, but it said I had the latest version (2.2.2). I'm guessing the download on the site is a newer build of 2.2.2?? I can just install over my existing install with this downloaded file? I read the documentation about updating, but it was specific to using the built=in updater, not by way of downloading from the site.

I went to Display?Views and found product/quantity, but I found 32 instances of "wishlist" in there and I don't know what to comment out and what not to. It's a little beyond what I know how to do.

Thanks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 day ago #134285

Hi,

Yes you can install the downloaded package over your current install, it's updating like in the built in updater.

If you need the latest view for "product / quantity" you can replace your current view content by:

<?php

if($this->config->get('show_quantity_field')==-2){
	$this->params->set('show_quantity_field',$this->row->product_display_quantity_field);
}

$config =& hikashop_config();

$wishlistEnabled = $config->get('enable_wishlist', 1);
$hideForGuest = 1;
if(($config->get('hide_wishlist_guest', 1) && hikashop_loadUser() != null) || !$config->get('hide_wishlist_guest', 1)){
	$hideForGuest = 0;
}

if(!isset($this->cart)) $this->cart = hikashop_get('helper.cart');
if(!empty($this->row->has_options)){
	if($this->params->get('add_to_cart',1)) echo $this->cart->displayButton(JText::_('CHOOSE_OPTIONS'),'choose_options',$this->params,hikashop_completeLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway),'window.location = \''.str_replace("'","\'",hikashop_completeLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway)).'\';return false;','');
}else{
	$this->cart = hikashop_get('helper.cart');
	$url = '';
	$module_id = $this->params->get('from_module',0);
	if(empty($this->ajax)){
		$this->ajax = 'return hikashopModifyQuantity(\''.$this->row->product_id.'\',field,1,0,\'cart\','.$module_id.')';
	}
	if(@$this->row->product_sale_start || empty($this->element->main)){
		$start_date = @$this->row->product_sale_start;
	}else{
		$start_date = $this->element->main->product_sale_start;
	}
	if(@$this->row->product_sale_end || empty($this->element->main)){
		$end_date = @$this->row->product_sale_end;
	}else{
		$end_date = $this->element->main->product_sale_end;
	}
	$formName = ',0';
	if (!$this->config->get('ajax_add_to_cart', 0) || ($this->config->get('show_quantity_field')>=2 && !@$this->element->product_id)) {
		if(empty($this->formName)) {
			if(@$this->row->product_id)
				$formName = ',\'hikashop_product_form_'.$this->row->product_id.'_'.$this->params->get('main_div_name').'\'';
			else
				$formName = ',\'hikashop_product_form_'.$this->params->get('main_div_name').'\'';
		} else {
			$formName = $this->formName;
		}
	}
	if($end_date && $end_date<time()){
		?>
		<span class="hikashop_product_sale_end">
			<?php echo JText::_('ITEM_NOT_SOLD_ANYMORE'); ?>
		</span>
		<?php
	}elseif($start_date && $start_date>time()){
		?>
		<span class="hikashop_product_sale_start">
			<?php
			echo JText::sprintf('ITEM_SOLD_ON_DATE',hikashop_getDate($start_date,$this->params->get('date_format','%d %B %Y')));
			//TODO echo $this->cart->displayButton(JText::_('Pre-order and add to cart'),'add',$this->params,$url,$ajax);
			?>
		</span>
		<?php
	}elseif(!$this->params->get('catalogue') && ($this->config->get('display_add_to_cart_for_free_products') || !empty($this->row->prices))){
		if(@$this->row->product_min_per_order || empty($this->element->main)){
			$min = @$this->row->product_min_per_order;
		}else{
			$min = @$this->element->main->product_min_per_order;
		}
		if(@$this->row->product_max_per_order || empty($this->element->main)){
			$max = @$this->row->product_max_per_order;
		}else{
			$max = @$this->element->main->product_max_per_order;
		}
		if($min<=0){
			$min=1;
		}
		$wishlistAjax =	'if(hikashopCheckChangeForm(\'item\''.$formName.')){ return hikashopModifyQuantity(\'' . (int)@$this->row->product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';

		if($this->row->product_quantity == -1 && !empty($this->element->main) && $this->element->main->product_quantity != -1){
			$this->row->product_quantity = $this->element->main->product_quantity;
		}
		$btnType = 'add';
		if($this->row->product_quantity==-1){
		?>
		<div class="hikashop_product_stock">
		<?php
			if($this->params->get('add_to_cart',1)){
				echo $this->cart->displayButton(JText::_('ADD_TO_CART'),'add',$this->params,$url,$this->ajax,'',$max,$min);
				$btnType = 'wish';
			}
			if(hikashop_level(1) && $this->params->get('add_to_wishlist') && $wishlistEnabled && !$hideForGuest && $this->config->get('display_add_to_wishlist_for_free_products','1')){
				echo '<div id="hikashop_add_wishlist">';
					echo $this->cart->displayButton(JText::_('ADD_TO_WISHLIST'),$btnType,$this->params,$url,$wishlistAjax,'',$max,$min,'',false);
				echo '</div>';
			}
		}elseif($this->row->product_quantity>0){
		?>
		<div class="hikashop_product_stock">
		<?php
			echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'<br/></span>';
			if($config->get('button_style','normal')=='css'){
				echo '<br />';
			}
			if($max<=0 || $max>$this->row->product_quantity) $max = $this->row->product_quantity;
			if($this->params->get('add_to_cart',1)){
				echo $this->cart->displayButton(JText::_('ADD_TO_CART'),'add',$this->params,$url,$this->ajax,'',$max,$min);
				$btnType = 'wish';
			}
			if(hikashop_level(1) && $this->params->get('add_to_wishlist')  && $wishlistEnabled && !$hideForGuest && $this->config->get('display_add_to_wishlist_for_free_products','1')){
				echo '<div id="hikashop_add_wishlist">';
					echo $this->cart->displayButton(JText::_('ADD_TO_WISHLIST'),$btnType,$this->params,$url,$wishlistAjax,'',$max,$min,'',false);
				echo '</div>';
			}
		}else{
			?>
		<div class="hikashop_product_no_stock">
		<?php
			echo JText::_('NO_STOCK').'<br/>';
			$waitlist = $this->config->get('product_waitlist',0);
			if(hikashop_level(1) && ($waitlist==2 || ($waitlist==1 && (!empty($this->element->main->product_waitlist) || !empty($this->element->product_waitlist))))){ ?>
				</div><div id="hikashop_product_waitlist_main" class="hikashop_product_waitlist_main">
				<?php
				$empty='';
				jimport('joomla.html.parameter');
				$params = new HikaParameter($empty);
				echo $this->cart->displayButton(JText::_('ADD_ME_WAITLIST'),'add_waitlist',$params,hikashop_completeLink('product&task=waitlist&cid='.$this->row->product_id),'window.location=\''.str_replace("'","\'",hikashop_completeLink('product&task=waitlist&cid='.$this->row->product_id)).'\';return false;');
			}
			if(hikashop_level(1) && $this->params->get('add_to_wishlist')  && $wishlistEnabled  && !$hideForGuest && $this->config->get('display_add_to_wishlist_for_free_products','1')){
				echo '<div id="hikashop_add_wishlist">';
					echo $this->cart->displayButton(JText::_('ADD_TO_WISHLIST'),'add',$this->params,$url,$wishlistAjax,'',@$this->row->product_max_per_order,1,'',false);
				echo '</div>';
			}
		}?>
		</div>
	<?php
	}elseif(hikashop_level(1) && $wishlistEnabled && $this->params->get('add_to_wishlist','1') && $this->config->get('display_add_to_wishlist_for_free_products','1') && !$hideForGuest && !$this->config->get('display_add_to_cart_for_free_products')){
		$wishlistAjax =	'if(hikashopCheckChangeForm(\'item\''.$formName.')){ return hikashopModifyQuantity(\'' . (int)@$this->row->product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';
		echo '<div id="hikashop_add_wishlist">';
			echo $this->cart->displayButton(JText::_('ADD_TO_WISHLIST'),'add',$this->params,$url,$wishlistAjax,'',@$this->row->product_max_per_order,1,'',false);
		echo '</div>';
	}
}

Last edit: 11 years 1 day ago by Xavier.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum