Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2006
    Posts
    5
    Plugin Contributions
    0

    Default help a ZenCart newb

    I've installed ZenCart through Fantastico, everything is set & ready to go, but I'm having problems when I try to make a test order. Everything works perfect( all items add up properly) until I click checkout or customer login, all I get is a blank page. I'm using Authorize.net AIM and have transaction key and api login. What's wrong??

  2. #2
    Join Date
    Aug 2005
    Posts
    26,245
    Plugin Contributions
    9

    Default Re: help a ZenCart newb

    enable COD or money order and see if this also produces a blank page.

    If you are using a custom template, try switching to Classis and see if it errors

    Try the above to narrow the problem and youmght post a url to the site so that others can see the issue
    Zen-Venom Get Bitten
    Get Your Business Found

  3. #3
    Join Date
    Dec 2006
    Posts
    5
    Plugin Contributions
    0

    Default Re: help a ZenCart newb

    Quote Originally Posted by kobra View Post
    enable COD or money order and see if this also produces a blank page.

    If you are using a custom template, try switching to Classis and see if it errors

    Try the above to narrow the problem and youmght post a url to the site so that others can see the issue
    I tried all the above and still have same problem. I switched to classic and have a basic layout you can see at - www.unityworksart.com/store

    you can't login or checkout, but everything else is working right. I also see that the version that I installed from Fantastico is a older version so I downloaded the latest 1.37 and will upgrade as soon as I figure that out.

    thx

  4. #4
    Join Date
    Dec 2006
    Posts
    5
    Plugin Contributions
    0

    Default Re: help a ZenCart newb

    here's some more info that may be useful: when the mouse is over the checkout button this is the displayed info - (/store/index.php?main_page=checkout_shipping ) -- and this is what displays when mouse is over login - ( /store/index.php?main_page=login )
    store is located at - www.unityworksart.com/store

    this is my configure php & configuratiojn.php / admin

    <?php
    //
    // +----------------------------------------------------------------------+
    // |Zen Cart Open Source E-commerce |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2004 The Zen Cart developers |
    // | |
    // | http://www.zen-cart.com/index.php |
    // | |
    // | Portions Copyright (c) 2003 osCommerce |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license, |
    // | that is bundled with this package in the file LICENSE, and is |
    // | available through the world-wide-web at the following url: |
    // | http://www.zen-cart.com/license/2_0.txt. |
    // | If you did not receive a copy of the Zen Cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to |
    // | license@zen-cart.com so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    //

    // Define the webserver and path parameters
    // Main webserver: eg, http://localhost - should not be empty for productive servers
    define('HTTP_SERVER', 'http://unityworksart.com');
    // Secure webserver: eg, https://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://unityworksart.com');
    // secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/store/');
    define('DIR_WS_HTTPS_CATALOG', '/store/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/home/jahi/public_html/store/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
    define('DB_SERVER_USERNAME', 'accountname_zc1');
    define('DB_SERVER_PASSWORD', '6yCmTGPrWWQU');
    define('DB_DATABASE', 'jahi_zc1');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'database');
    define('DIR_FS_SQL_CACHE', '/home/jahi/public_html/store/cache');

    ?>

    configuration.php/ admin
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers |
    // | |
    // | http://www.zen-cart.com/index.php |
    // | |
    // | Portions Copyright (c) 2003 osCommerce |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license, |
    // | that is bundled with this package in the file LICENSE, and is |
    // | available through the world-wide-web at the following url: |
    // | http://www.zen-cart.com/license/2_0.txt. |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to |
    // | license@zen-cart.com so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    // $Id: configuration.php 290 2004-09-15 19:48:26Z wilt $
    //


    require('includes/application_top.php');

    $action = (isset($_GET['action']) ? $_GET['action'] : '');

    if (zen_not_null($action)) {
    switch ($action) {
    case 'save':
    // demo active test
    if (zen_admin_demo()) {
    $_GET['action']= '';
    $messageStack->add_session(ERROR_ADMIN_DEMO, 'caution');
    zen_redirect(zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cID));
    }
    $configuration_value = zen_db_prepare_input($_POST['configuration_value']);
    $cID = zen_db_prepare_input($_GET['cID']);

    $db->Execute("update " . TABLE_CONFIGURATION . "
    set configuration_value = '" . zen_db_input($configuration_value) . "',
    last_modified = now() where configuration_id = '" . (int)$cID . "'");
    $configuration_query = 'select configuration_key as cfgkey, configuration_value as cfgvalue
    from ' . TABLE_CONFIGURATION;

    $configuration = $db->Execute($configuration_query);

    // set the WARN_BEFORE_DOWN_FOR_MAINTENANCE to false if DOWN_FOR_MAINTENANCE = true
    if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'true') ) {
    $db->Execute("update " . TABLE_CONFIGURATION . "
    set configuration_value = 'false', last_modified = '" . NOW . "'
    where configuration_key = 'WARN_BEFORE_DOWN_FOR_MAINTENANCE'"); }

    $configuration_query = 'select configuration_key as cfgkey, configuration_value as cfgvalue
    from ' . TABLE_CONFIGURATION;

    $configuration = $db->Execute($configuration_query);

    zen_redirect(zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cID));
    break;
    }
    }

    $gID = (isset($_GET['gID'])) ? $_GET['gID'] : 1;
    $_GET['gID'] = $gID;
    $cfg_group = $db->Execute("select configuration_group_title
    from " . TABLE_CONFIGURATION_GROUP . "
    where configuration_group_id = '" . (int)$gID . "'");

    if ($gID == 7) {
    $shipping_errors = '';
    if (zen_get_configuration_key_value('SHIPPING_ORIGIN_ZIP') == 'NONE' or zen_get_configuration_key_value('SHIPPING_ORIGIN_ZIP') == '') {
    $shipping_errors .= '<br />' . ERROR_SHIPPING_ORIGIN_ZIP;
    }
    if (zen_get_configuration_key_value('ORDER_WEIGHT_ZERO_STATUS') == '1' and !defined('MODULE_SHIPPING_FREESHIPPER_STATUS')) {
    $shipping_errors .= '<br />' . ERROR_ORDER_WEIGHT_ZERO_STATUS;
    }
    if (defined('MODULE_SHIPPING_USPS_STATUS') and (MODULE_SHIPPING_USPS_USERID=='NONE' or MODULE_SHIPPING_USPS_PASSWORD == 'NONE' or MODULE_SHIPPING_USPS_SERVER == 'test')) {
    $shipping_errors .= '<br />' . ERROR_USPS_STATUS;
    }
    if ($shipping_errors != '') {
    $messageStack->add(ERROR_SHIPPING_CONFIGURATION . $shipping_errors, 'caution');
    }
    }

    ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
    <title><?php echo TITLE; ?></title>
    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
    <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
    <script language="javascript" src="includes/menu.js"></script>
    <script language="javascript" src="includes/general.js"></script>
    <script type="text/javascript">
    <!--
    function init()
    {
    cssjsmenu('navbar');
    if (document.getElementById)
    {
    var kill = document.getElementById('hoverJS');
    kill.disabled = true;
    }
    }
    // -->
    </script>
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="init()">
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
    <!-- header_eof //-->

    <!-- body //-->
    <table border="0" width="100&#37;" cellspacing="2" cellpadding="2">
    <tr>
    <!-- body_text //-->
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td class="pageHeading"><?php echo $cfg_group->fields['configuration_group_title']; ?></td>
    <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr class="dataTableHeadingRow">
    <td class="dataTableHeadingContent" width="55%"><?php echo TABLE_HEADING_CONFIGURATION_TITLE; ?></td>
    <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CONFIGURATION_VALUE; ?></td>
    <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?>&nbsp;</td>
    </tr>
    <?php
    $configuration = $db->Execute("select configuration_id, configuration_title, configuration_value, configuration_key,
    use_function from " . TABLE_CONFIGURATION . "
    where configuration_group_id = '" . (int)$gID . "'
    order by sort_order");
    while (!$configuration->EOF) {
    if (zen_not_null($configuration->fields['use_function'])) {
    $use_function = $configuration->fields['use_function'];
    if (ereg('->', $use_function)) {
    $class_method = explode('->', $use_function);
    if (!is_object(${$class_method[0]})) {
    include(DIR_WS_CLASSES . $class_method[0] . '.php');
    ${$class_method[0]} = new $class_method[0]();
    }
    $cfgValue = zen_call_function($class_method[1], $configuration->fields['configuration_value'], ${$class_method[0]});
    } else {
    $cfgValue = zen_call_function($use_function, $configuration->fields['configuration_value']);
    }
    } else {
    $cfgValue = $configuration->fields['configuration_value'];
    }

    if ((!isset($_GET['cID']) || (isset($_GET['cID']) && ($_GET['cID'] == $configuration->fields['configuration_id']))) && !isset($cInfo) && (substr($action, 0, 3) != 'new')) {
    $cfg_extra = $db->Execute("select configuration_key, configuration_description, date_added,
    last_modified, use_function, set_function
    from " . TABLE_CONFIGURATION . "
    where configuration_id = '" . (int)$configuration->fields['configuration_id'] . "'");
    $cInfo_array = array_merge($configuration->fields, $cfg_extra->fields);
    $cInfo = new objectInfo($cInfo_array);
    }

    if ( (isset($cInfo) && is_object($cInfo)) && ($configuration->fields['configuration_id'] == $cInfo->configuration_id) ) {
    echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '\'">' . "\n";
    } else {
    echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $configuration->fields['configuration_id'] . '&action=edit') . '\'">' . "\n";
    }
    ?>
    <td class="dataTableContent"><?php echo $configuration->fields['configuration_title']; ?></td>
    <td class="dataTableContent"><?php echo htmlspecialchars($cfgValue); ?></td>
    <td class="dataTableContent" align="right"><?php if ( (isset($cInfo) && is_object($cInfo)) && ($configuration->fields['configuration_id'] == $cInfo->configuration_id) ) { echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $configuration->fields['configuration_id']) . '">' . zen_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>&nbsp;</td>
    </tr>
    <?php
    $configuration->MoveNext();
    }
    ?>
    </table></td>
    <?php
    $heading = array();
    $contents = array();

    switch ($action) {
    case 'edit':
    $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>');

    if ($cInfo->set_function) {
    eval('$value_field = ' . $cInfo->set_function . '"' . htmlspecialchars($cInfo->configuration_value) . '");');
    } else {
    $value_field = zen_draw_input_field('configuration_value', $cInfo->configuration_value, 'size="60"');
    }

    $contents = array('form' => zen_draw_form('configuration', FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=save'));
    if (ADMIN_CONFIGURATION_KEY_ON == 1) {
    $contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br />');
    }
    $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
    $contents[] = array('text' => '<br><b>' . $cInfo->configuration_title . '</b><br>' . $cInfo->configuration_description . '<br>' . $value_field);
    $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
    break;
    default:
    if (isset($cInfo) && is_object($cInfo)) {
    $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>');
    if (ADMIN_CONFIGURATION_KEY_ON == 1) {
    $contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br />');
    }

    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
    $contents[] = array('text' => '<br>' . $cInfo->configuration_description);
    $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($cInfo->date_added));
    if (zen_not_null($cInfo->last_modified)) $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . zen_date_short($cInfo->last_modified));
    }
    break;
    }

    if ( (zen_not_null($heading)) && (zen_not_null($contents)) ) {
    echo ' <td width="25%" valign="top">' . "\n";

    $box = new box;
    echo $box->infoBox($heading, $contents);

    echo ' </td>' . "\n";
    }
    ?>
    </tr>
    </table></td>
    </tr>
    </table></td>
    <!-- body_text_eof //-->
    </tr>
    </table>
    <!-- body_eof //-->

    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
    <!-- footer_eof //-->
    <br>
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php');

 

 

Similar Threads

  1. ASP code in ZenCart?
    By milkyway in forum General Questions
    Replies: 7
    Last Post: 5 Jan 2007, 09:00 AM
  2. Zencart root files
    By spamis in forum General Questions
    Replies: 2
    Last Post: 20 Oct 2006, 04:59 PM
  3. Newbie needs help simplifying ZenCart - TMI!
    By brain21 in forum Templates, Stylesheets, Page Layout
    Replies: 20
    Last Post: 25 Sep 2006, 05:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •