Home Forums WoodMart support forum Yith Compare Premium Integration

Yith Compare Premium Integration

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #208231

    ignitionstudio
    Participant

    Hi. Your Woodmart theme has been great! But my client needed more functionality from the compare feature in the shop and I have purchased the premium version of Yith Compare and there seems to be some compatibility issues. By activating the premium version it added a second compare button, so I had to deactivate the compare feature of Woodmart. But when doing that I now have intermittent functionality. The Yith Ajax function does not transition to a “complete” state and show the check mark. It just spins. And it will not recognize if a product is already in the comparison table either. Sometimes the process will allow you to click “view compare” after clinking the compare link, but if you go back to the same product, and click compare link again, it will just spin. I reached out to Yith first and they said that the level of customization done by the theme is what needs to be addressed and they specified the file located in the “inc” folder… \inc\integrations\woocommerce\modules\compare.php

    They did not have ability to change that so directed me to contact you to help solve this hangup. Thank you. I can set you up with admin and sftp.

    #208332

    Artem Temos
    Keymaster

    Hello,

    Could you please send us your server authentication login and password so we can see your website? Also, please, provide us exact steps on how to reproduce the issue on your website.

    Thank you in advance.

    #208988

    ignitionstudio
    Participant

    When on any product page, if you click the Compare link, it may work initially, and you can then view the comparison table. However the loader button never changes to the checkmark. And once you go to the comparison table and then back to a single product (that is already in the table) and click Compare again, it will not load. And there is no indicator that is already in the comparison table so a customer may not remember. And in my experience on my end, it will then not work when I click Compare on any other product either. So once the hangup occurs no more products can be added.

    #209113

    Artem Temos
    Keymaster

    We have our own button for YITH Compare but it is working with free version only. You can add the following code snippet to the functions.php file to return default button that comes with the plugin

    function woodmart_configure_compare() {
    	return true;
    }
    add_action( 'init', 'woodmart_configure_compare' );
    #209521

    ignitionstudio
    Participant

    Thanks!! Is there a way to keep the icons? They have disabled by doing this fix.

    #209651

    Artem Temos
    Keymaster

    Try to replace the previous code with the following

    function woodmart_compare_add_product_url( $product_id ) {
        	$action_add = 'yith-woocompare-add-product';
            $url_args = array(
                'action' => 'yith-woocompare-add-product',
                'id' => $product_id
            );
            return apply_filters( 'yith_woocompare_add_product_url', esc_url_raw( add_query_arg( $url_args ) ), $action_add );
        }

    and put this into the Custom CSS section in our Theme Settings

    .wd-action-btn.wd-compare-btn .compare.loading.added:before {
      opacity: 1; }
    .wd-action-btn.wd-compare-btn .compare.loading.added:after {
      opacity: 0; }
Viewing 6 posts - 1 through 6 (of 6 total)