Home › Forums › Space themes support forum › Quick view dropdown accordion bug
Quick view dropdown accordion bug
- This topic has 9 replies, 2 voices, and was last updated 2 years, 8 months ago by Artem Temos.
-
AuthorPosts
-
February 7, 2022 at 2:38 pm #350938
cristianoParticipanthello, your built-in Quick View is having problems. dropdown and accordion can’t open inside Quick view. they don’t open ..
Attachments:
You must be logged in to view attached files.February 8, 2022 at 8:03 am #351283
Artem TemosKeymasterHello,
As we can see, you are using some additional plugins for this. And it looks like it is not fully compatible with our theme. It doesn’t work in any AJAX-loaded content like our quick view.
Kind Regards
February 24, 2022 at 8:27 pm #355841
cristianoParticipantArten temos this not good.
i pay your theme
i pay plugin
i pay all.& you tell me is problem from plugin,
republicplugin tell me not support on your modal.
Now i pay all people & in may hand i hav nothing for start a good business.
i can pay extra.
in sont etical but ok.Tell me pls.
is the last bug that i have to solve
February 25, 2022 at 1:35 pm #356013
Artem TemosKeymasterHello,
We can help you and run a script to initiate the accordion in quick view when the popup is loaded. But to do this, we need to know a function that can initiate the accordion. You need to contact plugin developers and ask for this code. Then, we will give you a complete snippet to fix this. Otherwise, we can’t know how to solve the problem.
Kind Regards
February 28, 2022 at 3:50 pm #356478
cristianoParticipanti recived answer:
Hi Cristiano
This is how our fields are displayed in the product page:
product-extras-for-woocommerce\inc\functions-single-product.php
add_action( ‘woocommerce_before_add_to_cart_button’, ‘pewc_product_extra_fields’ );Hope that helps.
Thanks
Clint
February 28, 2022 at 6:42 pm #356502
Artem TemosKeymasterYes, these fields are displayed in the quick view. But the problem is that JS is not inited there. So we need some JS event name that we can trigger once the popup is opened to initiade the accordion.
March 1, 2022 at 1:53 pm #356659
cristianoParticipantHi Artem,
aswer from support plugin:hi Cristiano,
The accordion is initiated when the pewc.js file is loaded. I don’t think they can re-initiate it with a JS event, so they might have to call these lines manually again when their Quick View popup is triggered. See screenshot below for the code.
https://share.getcloudapp.com/mXuJkYZr
pewc_vars is a JS variable initiated on the page before pewc.js is loaded.
https://share.getcloudapp.com/04uL7E1p
Best Regards,
JP—
Get help quickly from the documentation https://pluginrepublic.com/documentation/March 2, 2022 at 9:09 am #356842
Artem TemosKeymasterHello,
Try to add the following code snippet to the Custom JS on document ready field in Theme Settings -> Custom JS and test how it works
jQuery(document).on('xtsProductQuickViewOpen', function(){ jQuery('.pewc-groups-accordion h3').on('click',function(e){ if( pewc_vars.close_accordion == 'yes' ) { jQuery( '.pewc-group-wrap' ).removeClass( 'group-active' ); } jQuery(this).closest('.pewc-group-wrap').toggleClass('group-active'); }); if( pewc_vars.accordion_toggle == 'open' ) { jQuery('.pewc-group-wrap').addClass('group-active'); } else if( pewc_vars.accordion_toggle == 'closed' ) { jQuery('.pewc-group-wrap').removeClass('group-active'); } else { jQuery('.first-group').addClass('group-active'); } });
Kind Regards
March 2, 2022 at 1:23 pm #356908
cristianoParticipantwe are almost there, now the accordion opens, the problem of the counts remains, (in the single product page it works well, in the modal no)
That is, I select a few ingredients, but if I don’t select the dough as the last thing, the prices don’t update.
Every time I select an extra ingredient, to see the modified price, I have to change the dough.
March 2, 2022 at 2:25 pm #356917
Artem TemosKeymasterYou need to ask plugin developers this also. Then put it to this place https://prnt.sc/0gFiPTwy245P
-
AuthorPosts
- You must be logged in to create new topics. Login / Register