Continue Shopping Button Missing (v. 2.72)

When using iframes, the 'Continue Shopping' button was omitted to decrease the number of cross-scripting errors in browsers. If you would like to add it back, you can do so with the instructions below. This makes a 'Continue Shopping' link appear at the top of the page; it does not show a button in the cart itself, because of the way the iframe is handled within Mals. Note: This was added in to version 2.8.

  1. Open the order.php page from the /go/ folder. Just under the line:

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

    add:

    $shopcart = urlencode($return);
  2. Open the iframe.php page from the /go/ folder. 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, change the line:

    $contshoplink = "";

    to:

    $contshoplink = "

    Continue Shopping

    ";
  4. Save all pages and reload.