Home Forums WoodMart support forum Archive products element – Pop-up with the video opens in a new page.

Archive products element – Pop-up with the video opens in a new page.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #484590

    supp0rt
    Participant

    Hello,

    I have created a Product Archive Layout using the Layout Builder. The problem is if the pagination is set to Infinite scrolling, then on the second page, if I press the Play button with the video, the pop-up does not load and instead the video opens in the same tab in youtube.

    Let me know if this can be fixed and if a script is called on a page, regardless of the pagination, to load correctly.

    Best Regards

    • This topic was modified 1 year, 7 months ago by supp0rt.
    #484611

    supp0rt
    Participant

    I wanted to add something else that I noticed.

    If I use “Pagination” as the product’s pagination from the global settings, and then go to the product archive page and try to choose the second page, nothing loads. I have to reload the page manually in order for it to appear.

    Probably, something does not work as intended with the AJAX call and the Layouts builder.

    Let me know of your thoughts.

    Best Regards

    #484726

    Hello,

    When you create a template, the Theme Settings are not applied.

    Please insert the site admin access into the Private content below the message area. We will take a closer look at the video issue.

    Please, confirm the permission for plugin deactivation, and switching to the parent theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.

    Best Regards

    #484805

    supp0rt
    Participant

    Thank you for your reply. I have provided the credentials below for a staging site.

    As this is a staging site, you have permission to make any changes you want. Let me know if you need anything else.

    Let me know if you need anything else.

    #485512

    Hello,

    Video button on the product is customization and this customization is not correct.

    Insert this code into your code:

    jQuery(document).on('wdShopPageInit wdLoadMoreLoadProducts wdArrowsLoadProducts wdProductsTabsLoaded', function() {
    	//your custom code.
    });

    If you have any questions please feel free to contact us.

    Best Regards

    #489654

    supp0rt
    Participant

    Excuse my late response. This is indeed a customization based on the code and the libraries provided. Can you please elaborate more as to what code you are referring to and where should i insert the sniper provided? I am not referring if this must go to the functions.php file, but if I should encapsulate the div that has the video button or something elese

    Thank you

    • This reply was modified 1 year, 6 months ago by supp0rt.
    #490133

    Hello,

    The code should be added to the Theme Settings > Custom JS. We check and we see you have added the code correctly: https://monosnap.com/file/wqaONSWbkl1eDX1WGUT3S9gDBRwvXU

    If you have any questions please feel free to contact us.

    Best Regards

    #490149

    supp0rt
    Participant

    I didn’t get to reply back in time, but I found the function productVideo that was inside the woodmartThemeModule object, so as it was global I could access it and apply it to the snippet you provided.

    You may close the ticket.

    Thank you for your assistance.

    #490761

    If you have any questions please feel free to contact us.

    Best Regards

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

The topic ‘Archive products element – Pop-up with the video opens in a new page.’ is closed to new replies.