• Resolved Carlos Eduardo Guida

    (@carlos-eduardo-guida)


    First thanks for the plugin, it has been very useful for my project.

    I have a problem, I separated the products by subcategory on the page and I did a function to not compare products from different categories, but when leaving the page and returning the products the products are in cache, thus allowing the comparison .. is there any way for clean whenever you enter or exit the page?

    Another thing, in the plugin we have the option to hide the line with equal results, would it be possible to hide it when it is blank?

    https://kva.ldclientes.com.br/categoria-produto/controladores/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    Plugin save all products for compare list to cookie.
    And if you need to clear compare list, then clear br_products_compare cookie.

    Are fields that is displayed empty created as attributes or as custom post meta with ACF?

    Regards,
    Oleg

    Thread Starter Carlos Eduardo Guida

    (@carlos-eduardo-guida)

    Hi Oleg.

    So, can I clear the cookie whenever the user enters the page? Or can I disable it through functions? Could you give me an example?

    And about the fields, they were done with the ACF.

    Thanks.

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    1. Yes, you can clear this cookie on page load, but check that it is page where it must be cleared, because plugin load compare table via AJAX and it you clear cookie for all pages, then compare table will be empty.

    2. We will check how it work with ACF field, because it must be not displayed if products do not have fields.
    Or products has those fields, but it is set as empty?

    Regards,
    Oleg

    Thread Starter Carlos Eduardo Guida

    (@carlos-eduardo-guida)

    Hello

    About the ACF, fixed fields were made for comparison, but depending on the product category, some fields are not filled, so the line ends up being blank, I thought about doing a function via jquery to check if the fields are blank does not appear the line, but as it is divided br_left_table and br_right_table would not work.

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    Please update plugin to latest version.

    Regards,
    Oleg

    Thread Starter Carlos Eduardo Guida

    (@carlos-eduardo-guida)

    Hello,

    Thank you very much Oleg, it was just right!
    Now I just need to solve the cache problem because I still haven’t been able to solve it.

    But thank you very much for the update.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cache and fields’ is closed to new replies.