- Posts: 69
- Thank you received: 1
compare buttom disappear
11 years 5 months ago #200271
by babaei
compare buttom disappear was created by babaei
-- 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
-- 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.
11 years 5 months ago #200279
by Xavier
Replied by Xavier on topic compare buttom disappear
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:
ps: please verify the comparison settings in HikaShop > Features > Compare.
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:
Code:
<!-- 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.
11 years 5 months ago #200621
by babaei
Replied by babaei on topic compare buttom disappear
Hello
problem fixed.
I copied directly from components/com_hikashop/views/product/tmpl//listing_img_title.php to my template folder and problem fixed.
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.176 seconds