Home Forums WoodMart support forum Component image lightbox not working with Composite Products plugin

Component image lightbox not working with Composite Products plugin

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #480007

    wildguitars
    Participant

    Greetings Xtemos team

    I have recently installed the Composite Products plugin which is an official WooCommerce plugin.
    When adding components to a composite product, clicking on the component’s thumbnail image does not open in a lightbox, rather the image is opened in the same page. When switching to an official WooCommerce theme (for example Twenty Twenty-Three) the issue is resolved. I am currently running the WoodMart Parent theme on our staging site so it seems to be a conflict with the theme itself and not the customizations in our child theme – I may be wrong, though.

    Please see the following screen recording, and the information I have provided in the private content.
    https://we.tl/t-fFTIZuTgAh

    Thanks in advance for your support.

    Best regards,
    Tom

    #480069

    Hello,

    Please share the WP admin login details of your site so I will check and give you the possible solution.

    Best Regards.

    #480082

    wildguitars
    Participant

    Sorry I forgot to include the admin login
    Please see the private content

    #480091

    Hello,

    Sorry to say we have not tested any plugin in this regard and not give full compatibility of this.

    Please contact the plugin support, perhaps they would offer a valid solution.

    Best Regards.

    #480101

    wildguitars
    Participant

    Hi Aizaz,
    The plugin developer actually instructed me to contact XTemos, since the feature I am having an issue with works fine with default themes such as Twenty Twenty-Three. Is there anything you can do to assist me?

    Best regards,
    Tom

    #480637

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to fix this

    add_action( 'after_setup_theme', 'woodmart_add_wc_gallery_lightbox', 100 );
    
    function woodmart_add_wc_gallery_lightbox() {
    	add_theme_support( 'wc-product-gallery-lightbox' );
    }
    #480867

    wildguitars
    Participant

    Hi Artem,

    I have asked our developer to add the code to the functions.php file, but I don’t see any changes on the front end.
    Can you please confirm that the code has been implemented properly?
    https://dev2.wildguitars.co.il/product/prs-se-standard-24-guitar-pack/

    I apologize for the extra work.

    Thanks,
    Tom

    #481257

    Artem Temos
    Keymaster

    Hello,

    You didn’t put the code as we asked. Now this code is added to your website. Please, test how it works from your end.

    Kind Regards

    #481490

    wildguitars
    Participant

    Hi Artem, thanks again for your prompt reply
    Unfortunately it doesn’t look like the issue has been resolved – clicking on the thumbnail image still opens it up in the same window rather than in a lightbox.
    Screen recording: https://we.tl/t-mvtFE43BV7

    #481538

    Artem Temos
    Keymaster

    Sorry for the confusion. We didn’t add the code. And it should be there. Please, test it from the end and let us know if it works.

    Thank you

    #481786

    wildguitars
    Participant

    It works great now, thank you Artem!
    Can you please send me a screenshot of exactly where the code needs to be, so that I may add it to the functions.php file of our live site?

    #481922

    Artem Temos
    Keymaster

    Hello,

    Sure, here is a screenshot https://prnt.sc/1zsV7ja2XMpf

    Kind Regards

    #482570

    wildguitars
    Participant

    Thanks so much

    #482588

    Artem Temos
    Keymaster

    You are welcome. Feel free to contact us if you have any further questions.

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

The topic ‘Component image lightbox not working with Composite Products plugin’ is closed to new replies.