Cart Loads Inside the IFrame (v. 2.72)

If you use the iframe method of the cart, you must add the meta.php include to the template. This includes a script code that will keep the cart from loading into itself in IE. If you do not want to use this include, you can change the order page so it uses a direct continue shopping link, vs. a Mals return link.

  1. Open the order.php page in the /go/ folder and change the lines:

    // ADD RETURN LINK
    if ($OrderProcess != "iframe" OR $scrret != "n")
    $gotolink .= "&return=" .urlencode($return);

    to:

    // ADD RETURN LINK
    if ($OrderProcess != "iframe")
    $gotolink .= "&return=" .urlencode($return);
    $shopcart = urlencode($return);
  2. Open the iframe.php page in the /go/ folder and change the lines:

    // First check to see if the return link is a catalog link
    if (substr($return, 0, 7) == "http://")
    $catret = $return;
    else
    $catret = "http://" .$return;
    if (substr($catret, 0, strlen($URL)) == $URL)
    $retlink = $catret;
    else
    $retlink = $Catalog_Page;

    to:

    // First check to see if the return link is a catalog link
    if (!empty($shopcart) AND !isset($_REQUEST[shopcart]))
    {
    $shopcart = urldecode(str_replace("www.", "", $shopcart));
    if (substr($shopcart, 0, 7) == "http://")
    $catret = $shopcart;
    else
    $catret = "http://" .$shopcart;
    }
    $suburl = str_replace("www.", "", $URL);
    if (substr($catret, 0, strlen($suburl)) == $suburl)
    $retlink = $catret;
    else
    $retlink = $Catalog_Page;
  3. In that same iframe.php page, also change:

    $contshoplink = "";

    to:

    $contshoplink = "

    Continue Shopping

    ";

The above changes will be added to the next site builder release, in place of the javascript.