Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3668268
Problems with variable products
Open

Comments

  •  1
    Edson started the conversation

    Hello,

    When I bought the plugin I opened the ticket #2530906 for the same problem. When I compare a variable product using your plugin, it compares a specific variation, not the variable main product. Because of these, descriptions doesn´t show when it comes to variable products.

    By that time, you told me that I should remove these lines from woo-smart-compare-premium/assets/js/frontend.js :

    // compare variation
    $(document).on('found_variation', function(e, t) {  var variable_id = $(e['target']).attr('data-product_id');  $('.wooscp-btn-' + variable_id).      removeClass('wooscp-btn-added').      html(wooscpVars.button_text).      attr('data-id', t.variation_id);
    });
    $(document).on('reset_data', function(e) {  var variable_id = $(e['target']).attr('data-product_id');  $('.wooscp-btn-' + variable_id).removeClass('wooscp-btn-added').      html(wooscpVars.button_text).attr('data-id', variable_id);
    });

    However, with the last updated of the plugin, the code is totally different. I found some similar code to delete. But it works in some pages and in other it doesn't.

    So, my question is what do I have to do to solve this problem. Which piece of code do I have to delete?

    Kind regards,

    Edson

  •  1,222
    Dustin replied

    Hi Edson,

    On the latest version, you can choose No for this option instead of changing the code:

    6135401213.png


    Best regards,
    Dustin