Skip to main content

Product Compare Feature in Hikashop Content Module

More
7 years 5 months ago #306030 by ButterflyPixel
-- 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.

More
7 years 5 months ago #306032 by nicolas
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.132 seconds
Powered by Kunena Forum