Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: iFrame - Forbidden error

    I would appreciate you to explain a simple thing - how to pass the system session variabes to the iFrame.

    You are right the iframe will be inside other zen pages. Clicking on the map should trigger the root category displayed within the iframe. Clicking on the underlying products within the same category (iframe) should open the products in the same iframe. Only, when the visitor click on the checkpout button, it will jump out to the "normal" zc mode (no iframes).

    This "map" mode goes in linw with the normal zc mode (no iframes) when the categories (products) are selected from the sideboxes

  2. #12
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: iFrame - Forbidden error

    You'll need to change it so all your HREF links include the zenid so that the session is maintained in both places.

    You'll also have to relax security so that sessions aren't regenerated. But then you run the risk of more than one customer using same session at a given time, which then means one customer can steal another customer's personal/private data. You probably don't want that.

    Nevertheless, passing the zenid on all your URLs should link the sessions.
    .

    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.

  3. #13
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: iFrame - Forbidden error

    everything works fine, while it required quite a big code modification through all links, buttons etc. I am a bit confused by the session (zenid) on all the links. When I delete cookies, it shows me the zenid on all products (categories). However, after i click on any links, all the '&zenid=....' disappear unless i delete cookies again. I am not talking about iframe links - just normal zc pages. In other words, it shows only once.

    Where should i take a look to fix this?

    Thanks

    Andy

  4. #14
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: iFrame - Forbidden error

    i have been browsing some zenid related posts and it seems to be normal to hide the zenid after the 1st click. The reason why i am confused is because it shows on ALL my links on other sites (zen 1.3.5). But this particular installation is 1.3.7. All the settings are the same and all the sites run on the same server.

    Are there any changes in 1.3.7 in terms of zenid session behavior?

  5. #15
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: iFrame - Forbidden error

    Quote Originally Posted by andy1234 View Post
    i have been browsing some zenid related posts and it seems to be normal to hide the zenid after the 1st click.
    Yes, that is normal, and entirely intentional and desired for security reasons.
    This has always been how it works.

    If your older site isn't doing that, then it may have some cookie configuration setting problems or perhaps your domain configuration on your hosting account may be incorrect.

    I see you've started another thread on this topic here:
    http://www.zen-cart.com/forum/showthread.php?t=62984
    .

    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.

  6. #16
    Join Date
    Jun 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: iFrame - Forbidden error

    Hi Dr Byte,

    Hopefully you can help me. I don't want to use iframes, so instead I pulled all the php code from the zencart index.php file and put it in my new index.php page which already has a fancy header and side navigation menu. I inserted the php code into a table cell.

    The following error came up:

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at D:\inetpub\surfworld\onlineshop\test.php:98) in D:\inetpub\surfworld\onlineshop\includes\functions\sessions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at D:\inetpub\surfworld\onlineshop\test.php:98) in D:\inetpub\surfworld\onlineshop\includes\init_includes\init_templates.php on line 78


    Now I understand what it is saying because obviously my new index.php page already has a head, title, body section etc. My problem is that I'm not very good with PHP and I'm not sure what to fix in the code. Are you able to help please?

    Thanks
    Briohny

  7. #17
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: iFrame - Forbidden error

    rather than try to re-invent the wheel ( the zen cart function )
    pull your kool header and columns into ZC that would be MUCH easier
    Zen cart PCI compliant Hosting

  8. #18
    Join Date
    Jun 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: iFrame - Forbidden error

    Thanks Merlinpa 1969,

    That's what I kind of did but I only pulled them into the index.php file. How do I pull my header and nav menu into zencart so that the shop is displayed with the header and nav menu on every page? Do I have to adjust a template page or something?

    Sorry, very amature.

    Thanks again.

  9. #19
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Changing header on all pages

    As for the "headers already sent" message, refer to this FAQ:
    https://www.zen-cart.com/tutorials/index.php?article=87

    Quote Originally Posted by Briohny12 View Post
    How do I pull my header and nav menu into zencart so that the shop is displayed with the header and nav menu on every page? Do I have to adjust a template page or something?
    Yes - /includes/templates/YOURTEMPLATE/common/tpl_header.php would be the place to do that, as it draws the header of every page.

    As for the templating system, there are a number of FAQs to help you:
    https://www.zen-cart.com/tutorials/i...hp?category=16
    https://www.zen-cart.com/tutorials/i...hp?article=232
    https://www.zen-cart.com/tutorials/i...hp?article=143
    https://www.zen-cart.com/tutorials/i...hp?article=230
    http://www.zen-cart.com/wiki/index.p...on_-_Templates
    .

    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.

  10. #20
    Join Date
    Jun 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: iFrame - Forbidden error

    Ok... so i'm having problems trying to format the layout of my page. I'm trying to customise the area outside of the cart. Using frames would be easy, but I don't want to go down that route.

    So far, I edited my tpl_header.php. I can successfully add on any banner, flash banner, logo whatever to the top of the .php script. However, I cannot for the life of me get a left navigation menu to appear.

    I have tried tables, breaking down the script and calling as separate include files, div tags & CSS formatting. Nothing seems to work. The top banner displays perfectly but the shop is all out-of-whack when I try to add a left navigation menu.

    I have attached a mock of what I want the final shop to look like. As you can see, there is a banner and then a left navigation menu with the cart to the right of this.

    Can anyone help me please.

    Attached Images Attached Images  

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Help me. Error 403. Forbidden Error
    By thelostknight in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 4 Jun 2011, 04:15 AM
  2. Forbidden error
    By CDTroyes in forum General Questions
    Replies: 2
    Last Post: 20 Feb 2011, 09:53 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