Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2006
    Location
    Portugal
    Posts
    377
    Plugin Contributions
    1

    Default pop-up window or javascipt:; help ?

    Hi guys, I have a question for you. I am trying to get links to open a new window to a set size (like the javascript:; function) but using the javascrpit one is a pain as a lot of peoples computers don't allow pop-up windows to open, I want to know what it is the Zen shopping cart uses to load up another window with the same colour of the website in the background(when you have an image of your product and you can 'click to enlarge') ? can anyone help ?
    Would appreciate any input/ideas

    Cheers
    Dan.

  2. #2
    Join Date
    Jan 2006
    Location
    Portugal
    Posts
    377
    Plugin Contributions
    1

    Default Re: pop-up window or javascipt:; help ?

    Does anyone know ? I noticed on a website today that they used pop-ups and had the code 'javascript:void(0)' appeared and it worked. But normal 'javascript:;' doesn't work, any help or ideas ????

    Am lost
    Cheers
    Dan.

  3. #3
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: pop-up window or javascipt:; help ?

    The shipping estimator in the shopping cart and the "larger image" code for product images both use javascript to open and configure the popup window. Most popup blockers are smart enough to allow popups that are built entirely from the current site. Since all the data in these windows originates from the same site as the link, the blocker doesn't complain. I use the Firefox popup blocker without any problems with these features on Zen Cart sites.

    If you want to see how to make these popups, take a look at...

    includes/modules/pages/shopping_cart/jscript_main.php
    to see the actual popup window function

    and

    includes/templates/template_default/templates/tpl_shopping_cart_default.php
    to see that JavaScript implemented.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  4. #4
    Join Date
    Jan 2006
    Location
    Portugal
    Posts
    377
    Plugin Contributions
    1

    Default Re: pop-up window or javascipt:; help ?

    Hi Frank, thanks for the information. What part of the code can I put into my website ? and how would I go about putting it in ? as a Javascript ? have you done it ?

    My browser doesn't allow pop-ups, but my Zen shop pop ups (view larger images etc) work fine, it's the ones that call for javascrip:; that don't.

    Cheers
    Dan.

  5. #5
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: pop-up window or javascipt:; help ?

    Okay, I've been trying to make our conditions page a popup from the create account page. I've been using the shipping estimator popup as a guide, but I'm really confused.

    The shipping estimator popup refers to modules/shipping_estimator.php, which seems unneeded since i just want to include the text on the conditions page, i.e. no special code like this.

    In template_default/popup_shipping_estimator.php, it requires this file:
    Code:
    <?php require(DIR_WS_MODULES . zen_get_module_directory('shipping_estimator.php')); ?>
    This shipping_estimator.php is full of code that allows the shipping to be estimated.

    How do I just popup a simple text page like the conditions page? Do I need to create a modules/conditions.php or am I on the wrong track here?

    Any help very much appreciated!
    Currently using ZEN CART v. 1.3.6

  6. #6
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: pop-up window or javascipt:; help ?

    Okay, I got it to popup the conditions page, but it's the full conditions page, with the header and sideboxes!

    I want to remove those so it's just the conditions text in the center column.

    Anybody know what I don't?
    Currently using ZEN CART v. 1.3.6

  7. #7
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    163
    Plugin Contributions
    0

    Default Re: pop-up window or javascipt:; help ?

    did anyone figure this out yet? I want to have some of my defined pages pop up in a window minus all the sideboxes and header and footer as well.

    Example, to have my about page in a popup similar to the shipping estimator.

  8. #8
    Join Date
    Feb 2006
    Posts
    588
    Plugin Contributions
    0

    Default Re: pop-up window or javascipt:; help ?

    when you click to make the image larger it opens another full sized window is there a way to open a smaller window?

 

 

Similar Threads

  1. Enlarge image pop up window help
    By da_bsg in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 15 Feb 2010, 07:23 PM
  2. Pop-up Window
    By UrbanFool in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Mar 2008, 04:31 AM
  3. LRG Image Pop Window Help, PLease
    By clayartisan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Feb 2007, 06:35 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