Product Compare Feature

  • Posts: 175
  • Thank you received: 0
11 years 5 months ago #115467

Hello,
i would like to know if there's feature to compare items (for the specification).. is it build in or i have to create view for it ?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #115485

Hi,

Sure, I think that you'll find more information there .

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

  • Posts: 80
  • Thank you received: 1
7 years 8 months ago #266306

Hello,

I am really having trouble to understand how this feature should work, so I hope you can help me.

I enabled the compare feature from the backend and the compare button appears now on each product of the products listing page. But when I press it, nothing happens. What is should be happening? How a user can view the list of the selected and compared products?

Any help would be much appreciated!

Thank you,
Dora

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
7 years 8 months ago #266313

Hi,

When you press the add to compare list button for two or more products, you'll get "compare" button at the top of the listing so that you can compare them together.

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

  • Posts: 80
  • Thank you received: 1
7 years 8 months ago #266333

Thank you Nicolas!

I had the compare button in an absolute position for the products, but I didn't realize that this button had the same class name.

Can you please help me re-order the elements? Please have a look at this page: botavie.com.dedivirt73.your-server.de/in...ducts/cardiovascular . I'd like the <div id="hikashop_compare_zone"> to be transfered right after the filters and the pagination form, before the <div class="hikashop_products">. I suppose I have to edit the listing.php file? But I can't find out which part of code should I transfer to where... Can you please provide detailed guidance?

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
7 years 8 months ago #266466

Hi,

Well, as far as I can see, the view has been modified a lot.
By default in HikaShop, the compare button is already after the filters :
monosnap.com/file/z7tleq4wD29hjFxuCEybgdGzuBPv6k

So in the code of the view, the button is already after the filters:
monosnap.com/file/cUFobskaS7HwzpCZ01ZPqkxM0bNSSU

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

  • Posts: 26
  • Thank you received: 1
6 years 1 month ago #299984

Hi!

I am also having trouble understanding what should happen or how. Below my products there is a compare box. Once you click at least two products, you get the button to compare them. Here is a link to a categorie of products; www.paardenmestonderzoek.com/webshop/cat...tonderzoek-verzenden

Just like poster above, nothing happens when pressing. I checked the code and the compare function is below. Why is nothing happening when pressing the compare button?;

if($filter_type !== 3) {
	$this->setLayout('listing');
	$html = $this->loadTemplate($layout_type);
	if(!$this->module)
		echo $mainInfo;
	if(!empty($html)){
		if($this->module) echo $mainInfo;
		if(!empty($htmlFilter) && $ctrl == 'category')
			echo $htmlFilter;
?>
	<div class="hikashop_products_listing">
<?php
		if(hikaInput::get()->getVar('hikashop_front_end_main',0) && hikaInput::get()->getVar('task') == 'listing' && $this->params->get('show_compare')) {
			$css_button = $this->config->get('css_button', 'hikabtn');
			$css_button_compare = $this->config->get('css_button_compare', 'hikabtn-compare');
?>
			<div id="hikashop_compare_zone" class="hikashop_compare_zone">
				<a class="<?php echo $css_button . ' ' . $css_button_compare; ?>" id="hikashop_compare_button" style="display:none;" href="#" data-compare-href="<?php echo hikashop_completeLink('product&task=compare'.$this->itemid, false, true); ?>" onclick="if(window.hikashop.compareProducts) { return window.hikashop.compareProducts(this); }"><span><?php
					echo JText::_('COMPARE_PRODUCTS');
				?></span></a>
			</div>
<?php
		}
		echo $html;

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
6 years 1 month ago #299990

Hi,

You must have a customization on the product/listing_img_title.php view file.
Check the folder templates/YOUR_TEMPLATE/html/com_hikashop/product/ and rename that file and it should fix the problem.

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

  • Posts: 26
  • Thank you received: 1
6 years 1 month ago #300014

Thanks, that's working now!

Last edit: 6 years 1 month ago by OtenKing1.

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

Time to create page: 0.096 seconds
Powered by Kunena Forum