Products Comparison

  • Posts: 89
  • Thank you received: 2
  • Hikashop Multisite
8 months 4 weeks ago #359905

-- url of the page with the problem -- : wip-ayam-fr-new-v2.cloudaccess.host

Hi,

We have plan to setup products comparison based on the few attributes that we have. Below are the example of the product comparison layout that we are planning to do. To have a clear picture you may look at this online example .



Both three dropdown are the same products that are repeated.



As far as i know, all these field i can create it with custom field attributes. Is there any way Hikashop can do this products comparison or you can point us the correct way to do this. We gonna have this product comparison on a few product categories.

Thanks.

Attachments:

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

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
8 months 4 weeks ago #359907

Hi,

You can have a comparison page with HikaShop, like this:
demo.hikashop.com/index.php/en/other-features/comparison-page
These products don't have custom product fields. If they did, each custom product field would appear as an extra row, with the value of the field in the product in each column of that row.
However, there is no dropdown mechanism to be able to select another product and switch the comparison data on the column.
This would require reworking the product / compare.php view file with a override via the menu Display>Views.

If you already have a comparison system you like on your website, maybe you can reuse it, and just change the add to cart buttons to use HikaShop's buttons with content tags ?
www.hikashop.com/support/documentation/1...-product-insert.html
The problem with this is that the data in the products won't be synchronized with the data displayed by the comparator.
Modifying the compare view file would be a better long term solution, but it require heavy development to add the dropdown switch mechanism to it.

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

  • Posts: 89
  • Thank you received: 2
  • Hikashop Multisite
8 months 3 weeks ago #360037

Hi, Thanks for your follow-up, do you have a services to propose for the development of the dropdown switch?

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

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
8 months 3 weeks ago #360040

Hi,

Yes. You can go through our contact form to discuss the details :
www.hikashop.com/support/contact-us.html
Please include a link to this thread for reference.
Note though that any PHP / JS developer should be able to work on this view override to add that dropdown switch.

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

  • Posts: 89
  • Thank you received: 2
  • Hikashop Multisite
8 months 2 weeks ago #360133

Hi,

Is there any way that we can convert the menu comparison page to the module for this situation?

Thanks.

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

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
8 months 2 weeks ago #360137

Hi,

As a custom development, it sure is possible. It will require developing a small module which would load the comparison layout.
That's what we do for most of the modules by default in HikaShop.
For example, the cart module's files are in the modules/mod_hikasop_cart/ folder on your website.
However, besides loading the settings of the module, it is mostly empty. It just load the corresponding layout from the HikaShop component.
It does this with the line:

$html = trim(hikashop_getLayout('product','cart',$params,$js));
This allows it to load the HTML of the view file product / cart of HikaShop.
So you could have something similar by replacing "cart" by "compare" in your custom module in order to use the product / compare view file which is used by HikaShop for the menu comparison page.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum