• Hi,
    It is possible that the Compare button (on product list and product page) opens the “comparative page” on the second click? If possible, how?

    Thank you.

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter levke21

    (@levke21)

    In the meantime I solved the task.
    1. Edit the “frontend.js” file of the plugin.
    2. The following lines need to be replaced:

     woosc_remove_product(id);
            if (woosc_vars.button_action === 'show_message') {
              $.notiny({
                theme: 'woosc',
                position: woosc_vars.message_position,
                image: product_image,
                text: woosc_vars.message_removed.replace('{name}',
                    '<strong>' + product_name + '</strong>'),
              });
            }
       }

    TO:

      if ((woosc_vars.page_url !== '') && (woosc_vars.page_url !== '#')) {
              window.location.href = woosc_vars.page_url;
            }
          } 
    1. Save frontend.js file
    2. In the plugin settings, modify this setting: “Remove when clicking again = YES”
    3. Save settings
    4. Clear cache (all device)
    5. Test
    • This reply was modified 1 year, 4 months ago by levke21.
    • This reply was modified 1 year, 4 months ago by levke21.
    • This reply was modified 1 year, 4 months ago by levke21.
    • This reply was modified 1 year, 4 months ago by levke21.
    Thread Starter levke21

    (@levke21)

    The code section above does not work well from v6.1.7 for some reason. Worked fine v6.1.6

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compare button action’ is closed to new replies.