[Skip to main content](#vessel-content)

#   Products Comparison

##

- **[alainz](/forum/user/44013-alainz "View alainz's Profile")**
- [![alainz's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar44013.png)](/forum/user/44013-alainz "View alainz's Profile") Topic Author
- [ Offline](/forum/user/44013-alainz)

Less More

- Posts: 100
- Thank you received: 4
-
-
-

2 years 7 months ago [\#359905](#359905) by [alainz](/forum/user/44013-alainz "View alainz's Profile")  *[Products Comparison](/forum/26-product-category-display/907930-products-comparison#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 .  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.")* was created by *[alainz](/forum/user/44013-alainz "View alainz's Profile")*

-- url of the page with the problem -- : [ wip-ayam-fr-new-v2.cloudaccess.host](https://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](https://ayam.19h47.fr/produit.html).

[ ![image&#95;2024-03-20&#95;140257195.png](/forum/attachment/59013) ](/forum/attachment/59013 "...&#95;140257195.png")

Both three dropdown are the same products that are repeated.

[ ![image&#95;2024-03-20&#95;140322977.png](/forum/attachment/59014) ](/forum/attachment/59014 "...&#95;140322977.png")

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.

- [ ![image&#95;2024-03-20&#95;140257195.png](/forum/attachment/59013) ](/forum/attachment/59013 "...&#95;140257195.png") [ ](/forum/attachment/59013?download=1 "...&#95;140257195.png")
- [ ![image&#95;2024-03-20&#95;140322977.png](/forum/attachment/59014) ](/forum/attachment/59014 "...&#95;140322977.png") [ ](/forum/attachment/59014?download=1 "...&#95;140322977.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MzAtcHJvZHVjdHMtY29tcGFyaXNvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

2 years 7 months ago [\#359907](#359907) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Products Comparison](/forum/26-product-category-display/907930-products-comparison#359907 "-- 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 .  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.")*

Hi,

You can have a comparison page with HikaShop, like this:
[ demo.hikashop.com/index.php/en/other-features/comparison-page](https://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&gt;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](https://www.hikashop.com/support/documentation/137-hikashop-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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MzAtcHJvZHVjdHMtY29tcGFyaXNvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alainz](/forum/user/44013-alainz "View alainz's Profile")**
- [![alainz's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar44013.png)](/forum/user/44013-alainz "View alainz's Profile") Topic Author
- [ Offline](/forum/user/44013-alainz)

Less More

- Posts: 100
- Thank you received: 4
-
-
-

2 years 6 months ago [\#360037](#360037) by [alainz](/forum/user/44013-alainz "View alainz's Profile")  Replied by *[alainz](/forum/user/44013-alainz "View alainz's Profile")* on topic *[Products Comparison](/forum/26-product-category-display/907930-products-comparison#360037 "-- 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 .  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.")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MzAtcHJvZHVjdHMtY29tcGFyaXNvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

2 years 6 months ago [\#360040](#360040) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Products Comparison](/forum/26-product-category-display/907930-products-comparison#360040 "-- 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 .  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.")*

Hi,

Yes. You can go through our contact form to discuss the details :
[ www.hikashop.com/support/contact-us.html](https://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MzAtcHJvZHVjdHMtY29tcGFyaXNvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alainz](/forum/user/44013-alainz "View alainz's Profile")**
- [![alainz's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar44013.png)](/forum/user/44013-alainz "View alainz's Profile") Topic Author
- [ Offline](/forum/user/44013-alainz)

Less More

- Posts: 100
- Thank you received: 4
-
-
-

2 years 6 months ago [\#360133](#360133) by [alainz](/forum/user/44013-alainz "View alainz's Profile")  Replied by *[alainz](/forum/user/44013-alainz "View alainz's Profile")* on topic *[Products Comparison](/forum/26-product-category-display/907930-products-comparison#360133 "-- 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 .  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.")*

Hi,

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

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MzAtcHJvZHVjdHMtY29tcGFyaXNvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

2 years 6 months ago [\#360137](#360137) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Products Comparison](/forum/26-product-category-display/907930-products-comparison#360137 "-- 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 .  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.")*

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: Code:

$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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MzAtcHJvZHVjdHMtY29tcGFyaXNvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.235 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
