Product Compare Feature in Hikashop Content Module

  • Posts: 143
  • Thank you received: 9
5 years 10 months ago #306030

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.x.x

Hi

Is there any option to show the compare feature inside Hikashop Content Module?
I can see the compare button in the Product listing, but not inside Module with the same listing and same settings.

Thank You.

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

  • Posts: 83483
  • Thank you received: 13505
  • MODERATOR
5 years 10 months ago #306032

Hi,

There is no option to have the compare feature in modules.
You could activate it changing the line:
if(hikashop_level(2) && hikaInput::get()->getVar('hikashop_front_end_main', 0) && hikaInput::get()->getVar('task') == 'listing' && $this->params->get('show_compare')) { ?>
in product/listing.php and the line:
if(hikaInput::get()->getVar('hikashop_front_end_main', 0) && hikaInput::get()->getVar('task') == 'listing' && $this->params->get('show_compare')) {
in product/listing_img_title.php
However, the system doesn't support several listings on the same page. So if you have several products listings on the same page, it wouldn't work properly. So I would recommend to change the code only if you know PHP/JS so that you can fix what won't work properly.

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

Time to create page: 0.051 seconds
Powered by Kunena Forum