compare buttom disappear

  • Posts: 69
  • Thank you received: 1
10 years 4 months ago #200271

-- url of the page with the problem -- : instrucenter.com/fa/portable-test-equipm...ment/video-borescope
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 2.5.28
-- Browser(s) name and version -- : firefox

Hello
When i add listing_img_title.php to my html folder in my template folder, a.hikashop_compare_button disappear.
please help me to solve this problem.
thanks

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

  • Posts: 13201
  • Thank you received: 2322
10 years 4 months ago #200279

Hi,

If you copy the view from the folder "components/com_hikashop/views/product/tmpl/listing_img_title" to the template one with the same content, so you should have the same layout.

Be sure that the view copied is exactly the same, and check that you have the following code inside:

<!-- COMPARISON AREA -->
<?php
if(JRequest::getVar('hikashop_front_end_main',0) && JRequest::getVar('task')=='listing' && $this->params->get('show_compare')) { ?>
	<br/><?php
	if( $this->params->get('show_compare') == 1 ) {
		$js = 'setToCompareList('.$this->row->product_id.',\''.$this->escape($this->row->product_name).'\',this); return false;';
		echo $this->cart->displayButton(JText::_('ADD_TO_COMPARE_LIST'),'compare',$this->params,$link,$js,'',0,1,'hikashop_compare_button');
?>

<?php } else { ?>
	<input type="checkbox" class="hikashop_compare_checkbox" id="hikashop_listing_chk_<?php echo $this->row->product_id;?>" onchange="setToCompareList(<?php echo $this->row->product_id;?>,'<?php echo $this->escape($this->row->product_name); ?>',this);"><label for="hikashop_listing_chk_<?php echo $this->row->product_id;?>"><?php echo JText::_('ADD_TO_COMPARE_LIST'); ?></label>
<?php }
} ?>
<!-- EO COMPARISON AREA -->

ps: please verify the comparison settings in HikaShop > Features > Compare.

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

  • Posts: 69
  • Thank you received: 1
10 years 4 months ago #200621

Hello
problem fixed.
I copied directly from components/com_hikashop/views/product/tmpl//listing_img_title.php to my template folder and problem fixed.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum