Adding products to compare page
-
Hi,
I need to add a product from a select dropdown to compare page, which function shall I call on dropdown selection?
So far I have achieved this, where you have to press the compare link to add the selected product from the dropdown
<script>jQuery(“#products-search-1”).on(‘select2:select’, function (e) { var name1 = jQuery(‘#products-search-1 option:selected’).text(); var id1 = jQuery(‘#products-search-1’).val(); jQuery(“#cmp-1”).html(“<div class=\”woodmart-compare-btn product-compare-button wd-action-btn wd-compare-btn wd-style-icon\”>“+name1+”</div>”);});</script><p id=”cmp-1″></p>
I am passing the selected product id to the inner code of “woodmart_add_to_compare_loop_btn()”
But I required to add the product directly to compare on selection…
Hello,
Please find the instruction on how to configure the Compare feature, as soon as you configure, the icon would appear in the product grid and in the product page: https://xtemos.com/docs/woodmart/woodmart-compare/
Best Regards
Thanks, i guess you miss understood my question, the compare section is all set and working, i need to customize the part how it adds products in compare section on a page, you may check the link on my question to have a better glimpse…
Hello,
I will check with the dev team and get back to you.
Best Regards
Hello,
I have checked with the dev team and we do not have an instruction for the purpose. Sorry.
Best Regards
Hello,
I have checked with the dev team and we do not have an instruction for the purpose. Sorry.
Best Regards
Hello,
If you have any questions please feel free to contact us.
Best Regards
The topic ‘Adding products to compare page’ is closed to new replies.