[Support request] + and – buttons: GP Woocommerce addon conflict with Toolset

Home Forums Support [Support request] + and – buttons: GP Woocommerce addon conflict with Toolset

Home Forums Support + and – buttons: GP Woocommerce addon conflict with Toolset

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1051817
    PetrV

    Hello, we use Toolset (toolset.com) for filtering and displaying loop of Woocommerce products. At the same time there is checked „Display quantity buttons“ in Customizer. First load of product page works perfectly, I can adjust quantity with + and – buttons. But after using any filter these buttons freeze. In HTML it changes from:

    <div class="quantity buttons-added">
    <a href="javascript:void(0)" class="minus">-</a>
    <label class="screen-reader-text" for="quantity_5dbeaecd463f9">Product 1</label>
    <input type="number" id="quantity_5dbeaecd463f9" class="input-text qty text" step="1" min="0" max="" name="quantity" value="1" title="Množství" size="4" inputmode="numeric">
    <a href="javascript:void(0)" class="plus">+</a>
    </div>

    to:

    <div class="quantity">
    ::before
    <label class="screen-reader-text" for="quantity_5dbeaecd463f9">Product 1</label>
    <input type="number" id="quantity_5dbeaecd463f9" class="input-text qty text" step="1" min="0" max="" name="quantity" value="1" title="Množství" size="4" inputmode="numeric">
    ::after
    </div>

    Quantity buttons changes to pseudoelements before and after and are not active.

    We do not want to disable GP Woocommerce addon, beacause we use it for others settings.
    How to solve it?

    #1052142
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    It sounds like there’s some sort of conflict with Toolset there. What if you just disable the quantity buttons in Customize > Layout > WooCommerce?

    #1052263
    PetrV

    Hi Tom, you are right. But we want the quantity buttons 🙂 Do you understand the conflict? Can you advice us, how to solve it?

    #1052505
    Tom
    Lead Developer
    Lead Developer

    Our quantity buttons are added to the page using javascript, so only the visible products are targeted.

    It looks like Toolset is using javascript to load additional products, so our javascript needs to run again.

    I wonder if there’s an event we can hook into once Toolset loads additional products?

    Something like:

    $( 'body' ).on( 'toolset/products-loaded', function() {
        // Do something
    } );

    You may need to ask their support if something like that is possible.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.