- Posts: 143
- Thank you received: 9
Product Compare Feature in Hikashop Content Module
- ButterflyPixel
-
Topic Author
- Offline
Less
More
7 years 5 months ago #306030
by ButterflyPixel
Product Compare Feature in Hikashop Content Module was created 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.
-- 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.
7 years 5 months ago #306032
by nicolas
Replied by nicolas on topic Product Compare Feature in Hikashop Content Module
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.
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