• Resolved eddyfk

    (@eddyfk)


    Hy, i´m playing a bit with that fantastic plugin. On the single product pages everything works fine.

    1. On the archive pages i use ajax to load a quick view. As ajax loads after page render i tried:
    WOOSVI.STARTS.init();
    But it´s not taking any actions. It only works if i load the js after the quick view has been triggered.

    2. Another problem is, that also on the single product pages i use my quick view, and that´s when the plugin breaks because it suddenly has 2 forms to handle.

    There must be simple option to separate both forms from each other. I think the problem here is that SVI now addresses both forms via:
    $.fn.wc_variation_form

    Any idea how to solve this?

    Best Eddy

    https://wordpress.org/plugins/smart-variations-images/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Rosendo

    (@drosendo)

    Hi!

    Woocommerce uses that function to load some handling.

    I’m sorry the two forms you are talking about are those the dropdowns with the variations?!
    If you have 2 of them why don’t you overwrite one of them, complete replace using actions?

    Maybe I understood wrong.

    Thanks

    Thread Starter eddyfk

    (@eddyfk)

    Hy David,

    yer that are the variations. How can i override one of them completely? Maybe temporarily remove one form? I could address with 2 times the same function each form separately, but even than the both forms seem to crash. Maybe it´s super simple but i don´t know how to crack that thing….

    http://codepen.io/anon/pen/adpBZo

    So i think it is the first variation $form that sets everything else. But it seems to be more…. Any idea how to set this NOT globally? Also to reinitialise isnt working with…

    Plugin Author David Rosendo

    (@drosendo)

    Hi,

    You have to google a bit but 1st remove_action the original one and then add_action yours.

    Not that difficult. My plugin doesn’t create the form in fact it only touches the main image and the thumbnails.

    You can see in my php how I replace the original actions.

    If you like the plugin please review it! Very much appreciated.

    Happy new year!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reinitialise woo-svi.js / multiple forms’ is closed to new replies.