- This topic has 3 replies, 2 voices, and was last updated 6 years, 5 months ago by
Tom.
-
AuthorPosts
-
November 3, 2019 at 4:09 am #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?November 3, 2019 at 9:38 am #1052142Tom
Lead DeveloperLead DeveloperHi 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?
November 3, 2019 at 11:22 am #1052263PetrV
Hi Tom, you are right. But we want the quantity buttons 🙂 Do you understand the conflict? Can you advice us, how to solve it?
November 3, 2019 at 8:53 pm #1052505Tom
Lead DeveloperLead DeveloperOur 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.
-
AuthorPosts
- You must be logged in to reply to this topic.