Page 1 of 2 12 LastLast
Results 1 to 10 of 30

Hybrid View

  1. #1
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Mystery Sidebox Invisible Prior to Login

    No problem. I'll get back to you sometime today. It may be a tonight, as I've got to work a couple of hours today, go pick up parts for my sons Bronco, work on it, and visit an uncle of mine that I haven't seen in a year. But don't give up on me......I won't leave you hanging. It's just going to be a busy day.
    If I don't get it done by tonight at........say 8:00 P.M. central time, I'll still let you know.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  2. #2
    Join Date
    Apr 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Mystery Sidebox Invisible Prior to Login

    I'll be here. Patience is a virtue, right? ;-)
    Thanks!

  3. #3
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Mystery Sidebox Invisible Prior to Login

    Got it! It's only 2 short files, and I'm going to add it to the contributions. If it gets accepted as a contribution, will be another story.
    But you will have it, anyway.

    I've added it as an attachment to this post. I've never attached anything to a post in this forum, so if it don't work, don't blame me, just let me know, and I'll e-mail it to you.

    What this does is show the box all the time with a message that reads "Log In to see what surprise awaits you!"

    Then, after the user is logged in, it shows your hidden content (which you will have to replace, as I just added the line "your hidden content goes here"

    Hope you like it. It was a little challenge, but I enjoyed making something useful for everyone to use.
    Attached Files Attached Files
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  4. #4
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Mystery Sidebox Invisible Prior to Login

    Oops, already updated! Use this one instead!!
    Attached Files Attached Files
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  5. #5
    Join Date
    Apr 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Mystery Sidebox Invisible Prior to Login

    Not exactly what I had in mind (invisible prior to login), but perhaps it will take me a step closer. Thanks for your help! I'll check it out ASAP.

  6. #6
    Join Date
    Apr 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Mystery Sidebox Invisible Prior to Login

    Invisible or not, this "works a treat" as the Brits say. TY! Now how do I add it to the catalog pull-down in Admin so that I can easily update products ala "specials"?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Mystery Sidebox Invisible Prior to Login

    Quote Originally Posted by samadhi View Post
    I'd like to configure a sidebox which is activated by user login in a effort to encourage registration. Any insight would be most appreciated!
    Quote Originally Posted by samadhi View Post
    Now how do I add it to the catalog pull-down in Admin so that I can easily update products ala "specials"?
    I think it would help if you were to explain what exactly you are wanting to accomplish ...
    There might be built-in features already established that might do what you want just by flipping a switch.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Mystery Sidebox Invisible Prior to Login

    Quote Originally Posted by samadhi View Post
    Now how do I add it to the catalog pull-down in Admin so that I can easily update products ala "specials"?
    What exactly do you mean by this?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Mystery Sidebox Invisible Prior to Login

    Quote Originally Posted by Get Em Fast View Post
    Oops, already updated! Use this one instead!!
    If you want this sidebox to show up only after someone has logged in

    change mystery_box.php as follows.

    Code:
     $show_mystery_box = false;
     
    if ($_SESSION['customer_id']) { 
    $show_mystery_box = true;
    }
    
      if ($show_mystery_box == true) {
        require($template->get_template_dir('tpl_mystery_box.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_mystery_box.php');
    
    // if no active banner in the specified banner group then the box will not show
    // uses banners in the defined group $banner_box_group
    //    if ($banner->RecordCount() > 0) {
    
          $title =  'Mystery Box';
          $title_link = false;
          require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }
    This triggers the box to show only after login.

  10. #10
    Join Date
    Apr 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Mystery Sidebox Invisible Prior to Login

    Cool! What's the best way to embed product info & photos in this?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Second mystery sidebox
    By SRHEdD in forum Addon Sideboxes
    Replies: 1
    Last Post: 28 Sep 2011, 03:48 PM
  2. Force registration/login prior to adding to cart
    By JayMot in forum Managing Customers and Orders
    Replies: 10
    Last Post: 30 Dec 2010, 10:02 AM
  3. Login form : Invisible telephone field
    By Artoo in forum General Questions
    Replies: 5
    Last Post: 15 Jul 2010, 03:10 PM
  4. Banner sidebox image is invisible
    By Chuckmiester in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 04:38 PM

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