WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WooCommerce] Trigger variations dropdown with js (3 posts)

  1. after_midnight
    Member
    Posted 2 months ago #

    Hi guys!

    We're using woocommerce to sell colorboxes. For the products we almost only use the variable-product-option.
    Recently we added a Modal with all options, to choose the color from
    (next to the variations-dropdown).

    After an option is clicked, the slugValue is properly passed to the dropdown. But no event triggers, to populate the correct price.

    I already tried to fire the onchange() event of the dropdown but nothing happened at all.

    What kind of event has to be triggered and how?

    appreciate any help!

  2. imzeeshan
    Member
    Posted 2 months ago #

    What is your website, can I have a look.

    I am doing a form submit (non ajaxy way for now ) on my shop - see sample - http://nestopia.com/shop/product/washington/

  3. after_midnight
    Member
    Posted 2 months ago #

    I tried form.submit(); too, but this moves the selected product right away to the cart.
    What I need is a way to simulate a selection change on the variation dropdown.

    (my shop page is in german, btw.)

Reply

You must log in to post.

About this Topic