示例#1
0
 */
define('TEXT_MAIN', 'This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');
// Showcase vs Store
if (STORE_STATUS == '0') {
    define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');
} else {
    define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
}
define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');
define('TEXT_INFORMATION', 'Define your main Index page copy here.');
//moved to english
//define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');
//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');
if ($category_depth == 'products' || zen_check_url_get_terms()) {
    // This section deals with product-listing page contents
    define('HEADING_TITLE', 'Available Products');
    define('TABLE_HEADING_IMAGE', 'Product Image');
    define('TABLE_HEADING_MODEL', 'Model');
    define('TABLE_HEADING_PRODUCTS', 'Product Name');
    define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
    define('TABLE_HEADING_QUANTITY', 'Quantity');
    define('TABLE_HEADING_PRICE', 'Price');
    define('TABLE_HEADING_WEIGHT', 'Weight');
    define('TABLE_HEADING_BUY_NOW', 'Buy Now');
    define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
    define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
    define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
    define('TEXT_SHOW', 'Filter Results by:');
    define('TEXT_BUY', 'Buy 1 \'');
示例#2
0
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: init_category_path.php 4769 2006-10-17 02:59:21Z drbyte $
 */
if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
}
$show_welcome = false;
if (isset($_GET['cPath'])) {
    $cPath = zen_get_generated_category_path_rev($_GET['cPath']);
    //ModiFy By showq
    //For breadcrumb is full
    //print_r($cPath); is trace
} elseif (isset($_GET['products_id']) && !zen_check_url_get_terms()) {
    $cPath = zen_get_product_path($_GET['products_id']);
} else {
    if (SHOW_CATEGORIES_ALWAYS == '1' && !zen_check_url_get_terms()) {
        $show_welcome = true;
        $cPath = defined('CATEGORIES_START_MAIN') ? CATEGORIES_START_MAIN : '';
    } else {
        $show_welcome = false;
        $cPath = '';
    }
}
if (zen_not_null($cPath)) {
    $cPath_array = zen_parse_category_path($cPath);
    $cPath = implode('_', $cPath_array);
    $current_category_id = $cPath_array[sizeof($cPath_array) - 1];
} else {
    $current_category_id = 0;
    $cPath_array = array();
}
示例#3
0
        ?>

<?php 
        if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_FEATURED_PRODUCTS') {
            include DIR_WS_MODULES . zen_get_module_directory(FILENAME_FEATURED_PRODUCTS_MODULE);
        }
        ?>

<?php 
        if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_SPECIALS_PRODUCTS') {
            include DIR_WS_MODULES . zen_get_module_directory(FILENAME_SPECIALS_INDEX);
        }
        if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_NEW_PRODUCTS') {
            require DIR_FS_MODULES . zen_get_module_directory(FILENAME_NEW_PRODUCTS);
        }
        if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_UPCOMING') {
            include DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS);
        }
        $show_display_category->MoveNext();
    }
    /////////////////////////////////////////////////////////////////////////////////////////////////////
} elseif ($category_depth == 'products' || !empty($_GET['user_id']) || zen_check_url_get_terms()) {
    global $gBitProduct;
    $listProducts = $gBitProduct->getList($_REQUEST);
    $gBitSmarty->assign('listInfo', $_REQUEST);
    $gBitSmarty->assign_by_ref('listProducts', $listProducts);
    $gBitSmarty->display('bitpackage:bitcommerce/list_products_inc.tpl');
} else {
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////
    $gBitSmarty->assign('mainDisplayBlocks', $gBitDb->getAll(SQL_SHOW_PRODUCT_INFO_MAIN));
}
示例#4
0
            } else {
                $faq_categories_query = "select c.faq_categories_id, cd.faq_categories_name, c.faq_categories_image, c.parent_id\n                  from   " . TABLE_FAQ_CATEGORIES . " c, " . TABLE_FAQ_CATEGORIES_DESCRIPTION . " cd\n                  where      c.parent_id = '" . (int) $faq_category_links[$i] . "'\n                  and        c.faq_categories_id = cd.faq_categories_id\n                  and        cd.language_id = '" . (int) $_SESSION['languages_id'] . "'\n                  and        c.faq_categories_status= '1'\n                  order by   sort_order, cd.faq_categories_name";
                break;
                // we've found the deepest faq_category the customer is in
            }
        }
    } else {
        $faq_categories_query = "select c.faq_categories_id, cd.faq_categories_name, cd.faq_categories_description, c.faq_categories_image, c.parent_id\n                           from   " . TABLE_FAQ_CATEGORIES . " c, " . TABLE_FAQ_CATEGORIES_DESCRIPTION . " cd\n                           where      c.parent_id = '" . (int) $current_faq_category_id . "'\n                           and        c.faq_categories_id = cd.faq_categories_id\n                           and        cd.language_id = '" . (int) $_SESSION['languages_id'] . "'\n                           and        c.faq_categories_status= '1'\n                           order by   sort_order, cd.faq_categories_name";
    }
    $faq_categories = $db->Execute($faq_categories_query);
    $number_of_faq_categories = $faq_categories->RecordCount();
    $new_faqs_faq_category_id = $current_faq_category_id;
    /////////////////////////////////////////////////////////////////////////////////////////////////////
    $tpl_page_body = 'tpl_index_faq_categories.php';
    /////////////////////////////////////////////////////////////////////////////////////////////////////
} elseif ($faq_category_depth == 'faqs' || zen_check_url_get_terms()) {
    if (SHOW_FAQ_INFO_ALL_FAQS == '1') {
        // set a faq_category filter
        $new_faqs_faq_category_id = $fcPath;
    } else {
        // do not set the faq_category
    }
    // create column list
    $define_list = array('FAQ_LIST_MODEL' => FAQ_LIST_MODEL, 'FAQ_LIST_NAME' => FAQ_LIST_NAME);
    asort($define_list);
    $column_list = array();
    reset($define_list);
    while (list($key, $value) = each($define_list)) {
        if ($value > 0) {
            $column_list[] = $key;
        }