- Posts: 85
- Thank you received: 1
Comparison button and placement
13 years 2 months ago #112636
by Kaffeman
Comparison button and placement was created by Kaffeman
Hi
Would it be possible to get the button for comparison to show up above every row or at both bottom and top instead of only at the top as it is now?
I have my shop set up so it shows 50 products in 3 columns and it's hard to notice or understand that you have to scroll to the top if you check the compare checkbox.
Better yet would be if it showed up beside the choices that you make.
Would it be possible to get the button for comparison to show up above every row or at both bottom and top instead of only at the top as it is now?
I have my shop set up so it shows 50 products in 3 columns and it's hard to notice or understand that you have to scroll to the top if you check the compare checkbox.
Better yet would be if it showed up beside the choices that you make.
Please Log in or Create an account to join the conversation.
13 years 2 months ago #112667
by Eliot
Replied by Eliot on topic Comparison button and placement
Hi there,
You can do so by editing the view you are using (in Display>Views). Just find your layout (for example listing_table) and move the block
Where you want it to be.
You can do so by editing the view you are using (in Display>Views). Just find your layout (for example listing_table) and move the block
Code:
<?php
if(JRequest::getVar('hikashop_front_end_main',0) && JRequest::getVar('task')=='listing' && $this->params->get('show_compare')) {
if( $this->params->get('show_compare') == 1 ) {
?>
<td class="hikashop_product_compare_row">
<a class="hikashop_compare_button" href="<?php echo $link;?>" onclick="setToCompareList(<?php echo $this->row->product_id;?>,'<?php echo $this->escape($this->row->product_name); ?>',this); return false;"><?php echo JText::_('ADD_TO_COMPARE_LIST'); ?></a>
</td>
<?php } else { ?>
<td class="hikashop_product_compare_row">
<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>
</td>
<?php }
} ?>
Where you want it to be.
Please Log in or Create an account to join the conversation.
Time to create page: 0.147 seconds