Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2011
    Posts
    93
    Plugin Contributions
    0

    Default Creating a popup page like info_shopping_cart

    ZenCart: v1.3.9h

    I've been trying to create a new popup page like info_shopping_cart. Unfortunately, I got a page not found error when I click on the link, and there's no error log in the cache directory.

    I found this old thread:
    http://www.zen-cart.com/forum/showthread.php?t=110065

    But the attachment with the example files on the locked thread is no longer available.

    Here's what I've added:

    The filename define to my new popup page:
    includes/extra_datafiles/<my_popup>_filename.php

    All the text defines for the popup:
    includes/languages/english/<my_template>/<my_popup>.php

    The actual popup page itself:
    includes/templates/<my_template>/<my_popup>/tpl_main_page.php



    I then added the following into the relevant module page where I want to display the new popup page link:
    includes/modules/pages/<my_relevant_page>/jscript_main.php

    Code:
    <script language="javascript" type="text/javascript"><!--
    function session_win() {
      window.open("<?php echo zen_href_link(FILENAME_<MY_POPUP>); ?>","<my_popup>","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();
    }
    //--></script>
    And I added the call to session_win to
    includes/templates/<my_template>/templates/tpl_<my_relevant_page>_defaul.php.

    The link appears correctly on <my_relevant_page>, and when I click on the link, a popup window appears with the address:

    http://<my_website>/index.php?main_page=<my_popup>

    but it's a Page Not Found.

    What have I missed?

  2. #2
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Creating a popup page like info_shopping_cart

    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Play with it long enough and you will break it.

  3. #3
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Creating a popup page like info_shopping_cart

    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Play with it long enough and you will break it.

  4. #4
    Join Date
    Mar 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: Creating a popup page like info_shopping_cart

    Thanks, usernamenone.

    I've just found out what I was missing! A good night's sleep does help.

    includes/modules/pages/<my_popup>/header_php.php

    It's now working.


 

 

Similar Threads

  1. v139h Creating popup
    By reyaz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 May 2012, 07:49 AM
  2. Creating a New Page to Popup Can't Be This Complicated??
    By laurenjj in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 14 Jun 2009, 06:04 AM
  3. Creating a javascript popup window?
    By stlnyc in forum General Questions
    Replies: 1
    Last Post: 18 May 2009, 01:54 PM
  4. Help creating a popup
    By 4dw in forum General Questions
    Replies: 1
    Last Post: 27 Oct 2008, 02:29 PM
  5. Creating a popup window on product page
    By KTNaturals in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Dec 2006, 07:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR