Support » Plugin: Wishlist and Waitlist for WooCommerce » wish_wait.php – gets included in odd positions, multiple times

  • Hi Berocket-Team,

    we’re using some of your paid plugins as well as wish and waitlist.

    In main.php you’ll find

    foreach (glob(__DIR__ . "/includes/*.php") as $filename)
    {
        include_once($filename);
    }

    This, in conjunction with other plugins, leads to multiple inclusions of templates/wish_wait.php (which is only a script), e.g. WP Lister for Amazon or eBay, as well as Jobs for WordPress and the script gets displayed in odd positions, e.g. an exported PDF or a loaded attribute.

    You can try this yourself, install jobs for wordpress, create a job and on the job page click on export PDF.

    imho you should rewrite this section of the plugin.

    Kind Regards,
    Cedus

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    This part of code do not include files from templates folder.
    Plugin load templates/wish_wait.php when list is displayed on the page or shortcode executed.

    Regards,
    Oleg

    Thread Starter cedus

    (@cedus)

    Hi Oleg,

    thanks for your reply, you are correct. Nevertheless the template gets included in odd positions, you can try this yourself with the above mentioned plugin.

    Kind Regards,
    Cedus

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wish_wait.php – gets included in odd positions, multiple times’ is closed to new replies.