Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2009
    Posts
    4
    Plugin Contributions
    0

    Default Running Zen-Cart in a <div>

    Hi, I tried to load the zen cart homepage into a <div> from another page using simple javascript. However the zen-cart page shows up as pure html. I suppose this is due to some path problems. This is my current path set-up

    mainpage: http://server/somepage/index.php
    zen-cart: http://server/somepage/zen-cart/index.php

    There is a javascript called getContent() that populates a given <div> with a particular URL. The call to getContent() looks like this,

    </script>getContent('someDiv', 'zen-cart/index.php');</script>

    I have already pointed all paths in includes/configure.php and admin/includes/configure.php to "//server/somepage/zen-cart/"

    Can anyone suggest a way to make the zen-cart page show correctly?

  2. #2
    Join Date
    Feb 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Running Zen-Cart in a <div>

    okie i got it to work with an iframe instead of div. However it will still be nice to work with a div, iframe seems kind of slow.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Running Zen-Cart in a <div>

    Running Zen Cart inside an iFrame is highly discouraged, as it can lead to various problems. Someone posted a day or two ago with one of these, trying to get forms to work properly inside the iFrame.

    What are you trying to do that you can't run Zen Cart straight on its own page? You can style the header and other template elements to match other parts of a site.

  4. #4
    Join Date
    Feb 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Running Zen-Cart in a <div>

    I can potentially customize the zen-cart page to match however I already have a working website and i just want to integrate a "web store" page, so I thought this might be a quick a dirty way to do things. However if Iframe poses a problem then I will have to find another solution.

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Running Zen-Cart in a <div>

    Can you post a link to see your current site? We can tell you how likely it is to be easy to match your other pages with Zen Cart. That really is the best option in most circumstances.

  6. #6
    Join Date
    Feb 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Running Zen-Cart in a <div>

    I am still developing the web site locally so its not public addressable yet. However I will test out the iframe method for the time being as all the forms seems to working up to this point. I'll keep this thread updated if i find anything wrong with using iframes.

 

 

Similar Threads

  1. Need to display Zen-cart products inside a div
    By Ryan Greenlife in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 13 Dec 2009, 04:10 PM
  2. My Zen Cart Running Slow
    By traciboyle in forum General Questions
    Replies: 1
    Last Post: 9 Jan 2008, 10:37 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