- This topic has 6 replies, 4 voices, and was last updated 1 year, 10 months ago by Tom.
-
AuthorPosts
-
July 7, 2022 at 9:26 am #2276339Laura
Hi ,
Im building a client site and in the testing of composite products plugin we noticed a slight bugWhen you first load a composite product page all increase and decrease quantities work, however when you choose a differant option than the default the buttons cease to work , you can still type in a number but the buttons do nothing
I read the support thread here : ive read https://generatepress.com/forums/topic/add-to-cart-banner-not-showing-on-bundle-products/#post-1690182
And switching Display quantity buttons off in customizer clears the issue.
Obviously we want to display the buttons on the site and have composite functionality.
Any thoughts
Thanks
Laura.
Also I really like the most recent update dynamic data etc. Gamechanger
July 7, 2022 at 11:02 am #2276421YingStaffCustomer SupportHi Laura,
Any chance you can link us to the site in question and point us to where we should be looking at?
You can use the private information field.
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-informationLet me know π
July 7, 2022 at 12:39 pm #2276492LauraHi,
The problem happens if you change your mind on which product you’d like.
To reproduce the issue:
1. choose base hop #1 and change the quantity.
2. change your mind and swap to base hop #2.
3. Quantity + and – buttons no longer work.
4. Swap back to the original base hop #1 (just in case it’s related to the choice).
5. You still cannot change the quantity.(This happens on all of the product choices).
If you turn “Display quantity buttons” off in customizer clears the issue. (It also doesnt happen if you swap themes).
Expected behaviour:
1. pick a product
2. change quantity
3. change the product
4. quantity now applies to new product (and can be changed).Thanks!
LauraJuly 8, 2022 at 2:31 am #2276955DavidStaffCustomer SupportHi there,
not sure there is much we can do about that, as the GP Quantity button links are injected into the form on load.
And the component products are ajax loading, so when you switch product, the links don’t get injected.I am going to run this past Tom to see of there is an easy solution.
But it may just be a case that the Qty Buttons will have to be disabled with that Woo extension.July 8, 2022 at 3:07 am #2276976LauraAh, I hope there is – your buttons look SO much better and are far easier to use on Mobile. π
Many thanks
LauraJuly 8, 2022 at 4:42 am #2277047LauraAnother quick question – is there a way to only disable those buttons on this one product?
Thanks
LauraJuly 9, 2022 at 7:34 pm #2278233TomLead DeveloperLead DeveloperHi there,
Not sure there’s a solution for this, at least within the forum here.
However, you can disable the buttons on the one product like this:
add_filter( 'option_generate_woocommerce_settings', function( $settings ) { if ( is_singular( 'Your product title' ) ) { $settings['quantity_buttons'] = false; } return $settings; } );
Let me know if that helps or not π
-
AuthorPosts
- You must be logged in to reply to this topic.