Home Forums Space themes support forum Quick view dropdown accordion bug

Quick view dropdown accordion bug

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #350938

    cristiano
    Participant

    hello, 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.
    #351283

    Artem Temos
    Keymaster

    Hello,

    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

    #355841

    cristiano
    Participant

    Arten 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

    #356013

    Artem Temos
    Keymaster

    Hello,

    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

    #356478

    cristiano
    Participant

    i 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

    #356502

    Artem Temos
    Keymaster

    Yes, 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.

    #356659

    cristiano
    Participant

    Hi 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/

    #356842

    Artem Temos
    Keymaster

    Hello,

    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

    #356908

    cristiano
    Participant

    we 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.

    #356917

    Artem Temos
    Keymaster

    You need to ask plugin developers this also. Then put it to this place https://prnt.sc/0gFiPTwy245P

Viewing 10 posts - 1 through 10 (of 10 total)