Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    Default How to popup a window on main page?

    I know many people have done this before, unfortuntely I am not familar with php and I know I have to use javascript to do this, but I don't know where to put it and which file.

    What I need is quite simple, when my user open my website, I want to show a popup that shows a piece of html code including some text and image - basically my on sale information.

    Can someone tell me very clearly in 1,2,3 on how to and where to write my code?

    Thank you so much in advance.

  2. #2
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

    Default Re: How to popup a window on main page?

    Are you looking for something like what is on this site?

    digitaldelightsbyloubyloo.com

    I installed a module from the Free Add Ons section for this.

    http://www.zen-cart.com/index.php?ma...oducts_id=1734

    Hope this helps.

    Tina
    Last edited by charmedbytina2; 24 Jan 2012 at 04:12 AM.

  3. #3
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    Default Re: How to popup a window on main page?

    Quote Originally Posted by charmedbytina2 View Post
    Are you looking for something like what is on this site?

    digitaldelightsbyloubyloo.com

    I installed a module from the Free Add Ons section for this.

    http://www.zen-cart.com/index.php?ma...oducts_id=1734

    Hope this helps.

    Tina
    Thank you very much Tina. That's what I am looking for, I will try it out tomorrow.

  4. #4
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    Default Re: How to popup a window on main page?

    Just can't get it working!

    I just installed a new zencart.

    From the instruction:
    Installation Instructions:

    1) Modify /includes/templates/YOURTEMPLATE to refer to your template name
    2) Upload the includes and popupimages folders into your zencart store
    3) ** WILL NOT WORK WITHOUT THIS STEP **
    modify /includes/templates/YOURTEMPLATE/common/html_header.php to include this line:
    <?php
    require(DIR_WS_TEMPLATE . '/simplepopup/simplepopup.php');
    ?>
    4) Run the install.sql patch via Tools -> Install SQL Patch, I did it
    5) Images must be uploaded via FTP or your hosts cpanel to /popupimages-----I uploaded it to the root: /public_html/test

    1) I did this
    2) I did it
    3) I did it.
    4) I did it
    5) I uploaded it to the root: /public_html/test

    The site is up but no popup.

    I ran the upgrade sql, it returns me:
    1062 Duplicate entry 'SIMPLE_POPUP_CAMPAIGN' for key 'unq_config_key_zen'
    in:
    [INSERT INTO znc_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Campaign', 'SIMPLE_POPUP_CAMPAIGN','weekzen','If this utm_campaign value is set, ignore popup.', @t4, 20, NOW(), NOW(), NULL, NULL);]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


    Can you tell me where I am missing?

    Thank you very much.
    Last edited by mdivk; 27 Jan 2012 at 08:55 PM.

  5. #5
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

    Default Re: How to popup a window on main page?

    Images must be uploaded via FTP or your hosts cpanel to /popupimages-----I uploaded it to the root: /public_html/test
    path should be root/public_html/popupimages

    or if you have your cart in a folder

    root/public_html/folder_name/popupimages

    Tina

  6. #6
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    Default Re: How to popup a window on main page?

    Quote Originally Posted by charmedbytina2 View Post
    path should be root/public_html/popupimages

    or if you have your cart in a folder

    root/public_html/folder_name/popupimages

    Tina
    Thanks.

    That is what I put there, my site is: xiexianhui.com/test
    test is the sub domain name.

  7. #7
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

    Default Re: How to popup a window on main page?

    I just took at look at your install, one file was missing and another was not in the folder it should have been.

    Popup is working ~ enjoy!

    Tina

  8. #8
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    help question What's wrong with my popup? Thanks. Simple Popup

    I was able to create a website with popup when the home page is loaded using a mod called Simple Popup, in this website, I am using the default template comes with zencart installation.

    I want to use this popup mod on my other sites like this one, I believe I already followed the instruction, just like what I did in the working website, however, the popup doesn't show up.

    Can someone take a look at my site and tell me what's wrong with it?

    Thank you very much.

  9. #9
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: How to popup a window on main page?

    Did you do this step?

    3) ** WILL NOT WORK WITHOUT THIS STEP **
    modify /includes/templates/YOURTEMPLATE/common/html_header.php to include this line:
    <?php
    require(DIR_WS_TEMPLATE . '/simplepopup/simplepopup.php');
    ?>

    This should go before the </head> at the end of the file
    If this file does not exist please copy it from template_default into your template.


    It appears the code isn't being loaded at all. I see the jquery loading up but that also could be for your slideshow.

  10. #10
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    Default Re: How to popup a window on main page?

    Quote Originally Posted by llynix View Post
    Did you do this step?

    3) ** WILL NOT WORK WITHOUT THIS STEP **
    modify /includes/templates/YOURTEMPLATE/common/html_header.php to include this line:
    <?php
    require(DIR_WS_TEMPLATE . '/simplepopup/simplepopup.php');
    ?>

    This should go before the </head> at the end of the file
    If this file does not exist please copy it from template_default into your template.


    It appears the code isn't being loaded at all. I see the jquery loading up but that also could be for your slideshow.
    I did the step 3.

    Could you tell me how to put your jquery and my original jquery together so it is enough to load only one file?

    My jquery is attached here.

    Thank you.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Window popup on main page - Problems
    By J9MM0 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 16 Feb 2015, 06:24 PM
  2. v150 How Can I Specify The Popup Window Size?
    By DK_Scully in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Jun 2014, 10:36 PM
  3. Popup window on main page
    By robbinsgj in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Nov 2009, 03:08 AM
  4. How to make a custom popup window...?
    By mcpisik in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Dec 2008, 05:10 AM
  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