Page 6 of 7 FirstFirst ... 4567 LastLast
Results 51 to 60 of 63
  1. #51
    Join Date
    Feb 2010
    Posts
    58
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    Hello everyone, I can not run this code!

    which folder should I put the file: single_sidebox.php?
    in /includes/modules/sideboxes ?
    or in /includes/templates/MY_TEMPLATE/sideboxes ?

    thanks

  2. #52
    Join Date
    Feb 2010
    Posts
    58
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    me explain what I did, so you can help:

    1. I uploaded the file single_sidebox.php
    in http://www.mysitezencart.com/shop/single_sidebox.php

    2. I created the file test.php with the following code:

    <?php
    $zcSBmodule = 'whats_new.php';
    $zcSBlayout = 'left';
    define('DIR_WS_IMAGES', 'http://www.mysitezencart.com/shop/images/');
    require ("http://www.mysitezencart.com/shop/single_sidebox.php");
    ?>
    3.I uploaded the file test.php in the
    http://www.othersite.com/test.php

    but I see a blank page

    What did I do wrong?

    thanks

  3. #53
    Join Date
    Feb 2010
    Posts
    58
    Plugin Contributions
    0

    Default Re: You can box the latest products in another site?

    Hello everyone, I can not run this code!

    me explain what I did, so you can help:

    1. I uploaded the file single_sidebox.php
    in http://www.mysitezencart.com/shop/single_sidebox.php

    2. I created the file test.php with the following code:

    <?php
    $zcSBmodule = 'whats_new.php';
    $zcSBlayout = 'left';
    define('DIR_WS_IMAGES', 'http://www.mysitezencart.com/shop/images/');
    require ("http://www.mysitezencart.com/shop/single_sidebox.php");
    ?>
    3.I uploaded the file test.php in the
    http://www.othersite.com/test.php

    but I see a blank page

    What did I do wrong?

    thanks

  4. #54
    Join Date
    Jun 2011
    Location
    Colorado, USA
    Posts
    46
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    Sorry I know this is an old thread but I can't get this working.
    Quote Originally Posted by joeguy44 View Post
    <div> <?php include("../zencart/ezpage_sidebox_include.php"); ?>
    </div>
    <div>
    <?php include("../zencart/includes/modules/sideboxes/categories.php"); ?>
    </div>
    <div>
    <?php include("../zencart/includes/modules/sideboxes/search.php"); ?>
    </div>
    I copied the code from the Sidebox Anywhere mod and placed it in ezpage_sidebox_include.php. The sidebox I have defined in said include displays correctly but then processing stops. The second <div> is in the code of the page but nothing further.

    Can anyone suggest what may be going wrong, especially as it seemed to work for joeguy44.
    zencart 1.3.9h

  5. #55
    Join Date
    Jun 2010
    Location
    New Iberia, LA
    Posts
    50
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    Quote Originally Posted by tekkjeskj View Post
    New Window,
    I have installed de Sidebox Anywhere, with the sidebox "specials"
    My question is how do i make the code so when you click on a item a "new window" opens, the problem is when i click on a item, its opens the product inside the smal sidebox.

    It's just local now fore test, so i have no ref.
    Has anyone found the solution to this? New Window instead of in the external sidebox window?
    zen-cart-v1.3.9h

  6. #56
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Sidebox Anywhere mod - Please Help

    These are the only two posts in this thread which covers this..

    Does anyone have a solution for how to use this mod to display more than one sidebox?? DrByte?? anyone???

    Quote Originally Posted by splieg View Post
    I'd like to be able to place multiple sideboxes on a page outside of my cart. I've tried one sidebox and it works great. When I try two boxes the second one doesn't appear.

    Code sample:

    <table width="540" id="main_bottom">
    <tr>
    <td valign="top" id="main_bottom_td"><div align="center">
    <?php
    $zcSBmodule = 'whats_new.php';
    $zcSBlayout = 'left';
    require ("cart/single_sidebox.php");
    ?>
    </div></td>
    <td valign="top" id="main_bottom_td"><div align="center">
    <?php
    $zcSBmodule = 'featured.php';
    $zcSBlayout = 'left';
    require ("cart/single_featured.php");
    ?>
    </div></td>
    <td valign="top" id="main_bottom_td"><div align="center">
    <?php
    $zcSBmodule = 'featured.php';
    $zcSBlayout = 'left';
    require ("cart/single_featured.php");
    ?>
    </div></td>
    </tr>
    </table>

    I tried using all three boxes named single_sidebox.php and then tried using ones named differently like single_featured.php but still can't seem to get more then one to appear.

    Also, is it possible for the single_sidebox.php to have a setting that overrides the max value set in Zen Cart? Say I have the max value for featured set at 3 inside Zen to display 3 items within the box in the cart but I only what 1 item to appear in the box outside the cart. Is there a variable I can set within single_sidebox.php??

    Thanks in advance.
    Quote Originally Posted by joeguy44 View Post
    I hacked out a way to get it to work, but I am not sure if it is the right way. I am not a php guru by any means, not even a novice. I will share what I did using the SIDEBOX ANYWHERE mod...

    Basically, I first created a .php page that calls the mod (in the code below its the one named ezpage_sidebox_include.php). Then on another page, the one that I want the multiply side boxes to show, I use a basic php include statement to call the first page I created and then the additional sideboxs straight from the modules folder. It looks like so...

    <div> <?php include("../zencart/ezpage_sidebox_include.php"); ?>
    </div>
    <div>
    <?php include("../zencart/includes/modules/sideboxes/categories.php"); ?>
    </div>
    <div>
    <?php include("../zencart/includes/modules/sideboxes/search.php"); ?>
    </div>

    What I found was the CSS used for all of the includes came from the SIDEBOX ANYWHERE mod page. Which is okay for me since I use a custom CSS template that I created to override the look, but it will probably not be good others.

    Could someone with coding experience please tell me if this is "good form." Are there problems a newbie like me is not aware of that are created by doing this? Is this a fluke that it works?

    thanks!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #57
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Sidebox Anywhere mod - Please Help

    Quote Originally Posted by DivaVocals View Post
    These are the only two posts in this thread which covers this..

    Does anyone have a solution for how to use this mod to display more than one sidebox?? DrByte?? anyone???
    Answering my own question:

    Following these instructions I was successfully able to display the categories sidebox by creating a file called external-displayed-categories.php which contained this code:
    Code:
    <?php
      $zcSBmodule = 'categories.php';
      $zcSBlayout = 'left';
      require ("/path/to/zencart/single_sidebox.php");
    ?>
    I created a second file to display new products called external-displayed-whatsnew.php which contained this code:
    Code:
    <?php
      $zcSBmodule = 'whats_new.php';
      $zcSBlayout = 'left';
      require ("/path/to/zencart/single_sidebox.php");
    ?>
    Both work perfectly together on the same page/site.

    BUT, my externally called sideboxes didn't look like they do in the shop.. Soooooooo...

    I needed to add some code to get my sideboxes looking like they do in the shop. To do this I simply linked the stylesheet with the declarations which affect my sideboxes in my single_sidebox.php file..

    Now in the name of being a stickler for detail, I wanted to make sure that sidebox "pages" will properly validate. So I added the following to my single_sidebox.php file at the VERY top of the file:
    Code:
    <!DOCTYPE html>
    <html>
    <head>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title></title>
    </head>
    Just before the <title> opening and closing tags, you will need to add a link to the stylesheet which styles the sideboxes.

    You add this to the single_sidebox.php file because that is the file the individual sidebox files call. They will inheirit the stylesheet settings from this file.



    For the site I'm working on, instead of linking to the Zen Cart stylesheets in my single_sidebox.php file, I created a "mini" Zen Cart "external sideboxes only" stylesheet. This "mini" stylesheet contains only the declarations I needed to style the externally called sideboxes to match the ones in the store.



    I also created the "external sideboxes only" stylesheet so that I could use CSS to hide the Zen Cart sidebox titles of my externally called sideboxes without affecting the rest of the Zen Cart shop.



    That's it really..


    I got it working with more than one sidebox. (It's been reported on this support thread that this was not possible - i wanted to confirm that I had no issue getting more than one sidebox to display using the Sideboxes Anywhere add-on)


    I have not tested this with the shopping cart or login sideboxes yet. However, I am fairly certain that cookies and session settings may render some fairly gnarly results with these two particular sideboxes.. I will be testing this over the weekend, and report back my findings.


    Once I finish testing, I'll post a link to the site I am working on so folks can see my end result.. :) (FYI, I'm using iframes to display my externally called sideboxes for a variety of reasons...) Wanted to post this to pass on the information to others..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

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

    Default Re: Sidebox Anywhere mod - Please Help

    VERY IMPORTANT NOTE: your parenthetical last-minute comment about using iframes is VERY important when coupled with your suggestion of embedding yet another DOCTYPE and opening <HTML> tag on the page. In fact, INSIDE A FRAME is the ONLY time you should do that.
    So, if you're not using frames (and they're generally not something one would use, for a myriad of reasons), then YOU SHOULD NOT use the added HTML suggested above.
    .

    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. #59
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Sidebox Anywhere mod - Please Help

    Quote Originally Posted by DrByte View Post
    VERY IMPORTANT NOTE: your parenthetical last-minute comment about using iframes is VERY important when coupled with your suggestion of embedding yet another DOCTYPE and opening <HTML> tag on the page. In fact, INSIDE A FRAME is the ONLY time you should do that.
    So, if you're not using frames (and they're generally not something one would use, for a myriad of reasons), then YOU SHOULD NOT use the added HTML suggested above.
    Thanks DrByte.. My apologies.. I should have been MUCH clearer in my post (it was a copy and paste from another forum where the context of my writing would have been clearer -- I should have cleaned it up a bit more before posting it here raw/uncut)..

    Yes, the reason I had to do this at all was because the sidebox is being called from inside an iframe. This all started because I was trying to get the sideboxes to look like the rest of the site and the store. Initially based on the an older post in this thread I added the following to the very bottom of the single_sidebox.php file (*after* the closing ?> line).

    Code:
    <style type="text/css"> @import  "/includes/templates/MY_TEMPLATE/css/stylesheet.css";  </style>
    You may have to even make that an entire URL:
    Code:
    <style type="text/css"> @import  "http://yourdomain.com/includes/templates/MY_TEMPLATE/css/stylesheet.css";  </style>
    But that didn't work.. So based on a suggestion from someone who had helped someone else to get an iframed external sidebox to work, I added this to the top of the single_sidebox.php file (*before* the opening <php line).

    Code:
     <head>
    <link rel="stylesheet" type="text/css" href="http://yourdomain.com/includes/templates/MY_TEMPLATE/css/sidebox_stylesheet.css" />
    <title></title>
    </head>
    That worked, but I was concerned that the sidebox "pages" wouldn't validate. So I went to http://validator.w3.org/ to validate the sidebox page, and used the "HTML-Tidy" tool to get the "clean" HTML I previously posted.

    To further clarify my previous statements, I'm truly not advocating the use (or rather overuse) of iframes at all for all the reasons most often cited (accessibility, page loading times, SEO, etc). However, for this particular site, the use of an iframe was the ONLY way I could get the externally called sideboxes to show/behave.

    In this case I believe this limited use of an iframe will probably be okay.. I am using a notice of external content for screenreaders to resolve any accessibility issues, there are no serious SEO concerns from displaying 1 or 2 sideboxes, and I do not plan to load more than two iframed sideboxes to ensure that I don't create any performance issues.

    All this to say that I'm still testing this implementation and as of this writing I am cautiously optimistic that they will not be problematic down the road. I will of course update my findings if this turns out to NOT be the case..

    Again, my apologies for not being clearer in my earlier post.. Dr Byte is absolutely correct. The information I shared yesterday is only to be used if the sideboxes are called from inside an iframe..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #60
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Sidebox Anywhere mod - Please Help

    and she's back..

    DOH!

    The fact that the iframe worked when my include statement didn't should have given me a HINT on how to get this to work WITHOUT using an iframe..

    My original include statement looked like this:
    Code:
    <?php
    include '/home2/mysite/public_html/shop/zencart-sidebox-categories.php';
    ?>
    I changed my include statement to the following:
    Code:
    <?php
    include 'http://shop.mysite.com/zencart-sidebox-categories.php';
    ?>
    and BAM!!! It worked!!! No need for an iframe at all..

    I kept the link to my sidebox stylesheet in my single_sidebox.php file.. However now that I am not using an iframe to call my sideboxes, can anyone (DrByte??) confirm if I need to include any HTML other than the CSS link to my sidebox stylesheet in my single_sidebox.php file?? In other words will I have validation/other issues if the only thing I add to my single_sidebox.php file is this:
    Code:
    <head>
    <link rel="stylesheet" type="text/css" href="http://shop.mysite.com/includes/templates/MY_TEMPLATE/css/sidebox_stylesheet.css" />
    </head>
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 6 of 7 FirstFirst ... 4567 LastLast

Similar Threads

  1. SideBox Anywhere Help
    By Ampboy in forum Addon Sideboxes
    Replies: 4
    Last Post: 5 Sep 2011, 07:28 PM
  2. not getting anywhere PLEASE HELP! ! !
    By mindapolis in forum General Questions
    Replies: 9
    Last Post: 14 Dec 2010, 06:34 PM
  3. More than One Sidebox Anywhere Mod
    By HDuane in forum All Other Contributions/Addons
    Replies: 12
    Last Post: 10 Jan 2010, 12:41 AM
  4. Error when calling Sidebox Anywhere Mod
    By Jerry5763837 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 12 Dec 2009, 03:51 AM
  5. Please anybody please help with Scrolling Sidebox Mod. in IE8
    By hcd888 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Oct 2009, 03:42 AM

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