• Resolved Sieg

    (@harrismaynard)


    Hello!

    I am trying to make a popup to confirm zip code delivery area before viewing the shop area on my client’s site. I have my plugin and it’s shortcode, and all of that is fine.

    The popup is not displaying on any of the pages except for the product pages. I want it on basically everywhere that involves shopping. So on the shop page, category pages, and the product and cart pages in case they somehow get linked there and haven’t confirmed the zip code.

    Also I’d like it to close and leave cookie if my plugin has a success message and remain open and uncloseable if there’s an error message. Is there a function I can add to the zip code plugin for this? I’m only just starting to understand php, so please bare with me. Like maybe something I can insert that can activate the close button/function upon success or not upon error. Please let me know. Thanks!

    PS: I almost forgot, it seems to not recognize my woocommerce framework? It says there’s ‘no items’ in the area to select the woocommerce framework for the popup display area. Not sure if that might have something to do with it. I’m using Woocommerce’s Canvas Plugin if that helps at all.

    https://www.ads-software.com/plugins/popup-maker/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Sieg

    (@harrismaynard)

    Here is the link btw: https://harrismaynard.com/wisebbq

    Plugin Author Daniel Iser

    (@danieliser)

    @maynard – Ok what your asking is doable, but it may be a tough setup for a novice.

    Are you auto opening the popup to begin with? or is it triggered by something else?

    What needs to happen.
    1. Filter is_popup_loadable using Woo conditional checks https://docs.woothemes.com/document/conditional-tags/
    2. Upon success set the popmake-auto-open-# cookie using either JS or PHP

    Also check in the Popup Maker -> Settings section for options to enable popups on additional content types.

    Thread Starter Sieg

    (@harrismaynard)

    Hello, I am very confused about what to do with your suggestion. I started with a fresh install of everything to see if that helped and it hasn’t. The new install is at https://harrismaynard.com/wbbq/shop

    (“home” is a custom template that needs fixing still)

    Again, it won’t load on shop pages, but only on other pages. I have the products and wooframework checked and auto popup checked as well.

    I understand the conditional stuff but I’m not sure of the syntax or where to put it.

    Would it be like “if is shop auto open the popup” I am not sure of the proper syntax, I’m sorry. I believe it would be something similar to the example code in the link you shared, but I am not sure of what exactly it would be for the popup rather than an echo. Thanks!

    Plugin Author Daniel Iser

    (@danieliser)

    @maynard – The problem looks to be a JS error inside the content of the popup. This line is calling a function that is not defined. Maybe try commenting it out.

    jQuery("a[rel^='prettyPhoto-box']").prettyPhoto({theme: 'pp_woocommerce',social_tools:''});

    Thread Starter Sieg

    (@harrismaynard)

    Wow! Yeah! It works when I deactivate the plugin that is the content within the popup! That is so weird…. I have no idea why the plugin would have conflicts with woocommerce because it’s for checking zip codes, but I’ll be digging around for what’s wrong… Thanks!

    Thread Starter Sieg

    (@harrismaynard)

    I figured out how to get this all to work when I reinstalled Firefox and used Firebug. A WORLD OF DIFFERENCE! Now I can actually figure this stuff out.
    I made a separate popup for the cart page to add desserts, bu the close button is gone when I put in woocommerce product shortcodes, so I will be able to fix that as well now. Thanks for helping me out with this and indirectly leading me to firebug, which will now save hours of my life.

    Plugin Author Daniel Iser

    (@danieliser)

    @maynard Using firebug is a godsend for any web developer. Using it to find obscure CSS glitches, tweak CSS visually before making changes in your files and debugging issues is something every developer needs to experience. When I first found it 2-3 years ago it sped up development time by 2-3x.

    Glad you found it.

    Please start a new ticket for the woocommerce shortcode issues as I would like to keep track of those types of bugs so they can be resolved for other users in the future.

    Please take a moment to rate and review the plugin and or support.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Popup Not Displaying Anywhere Except For On Product Pages’ is closed to new replies.