Forums / Basic Configuration / Featured products not showing on home page.

Featured products not showing on home page.

Views: 7,562

Results 21 to 38 of 38
20 Oct 2011, 5:51 PM
#21
bx32 avatar

bx32

New Zenner

Join Date:
Jul 2011
Posts:
18
Plugin Contributions:
0

Featured products not showing on home page.

It's a live site. I could switch over late one night this weekend. Which file or files should I take a look at? Would the file structure have anything to do with it? Because the url changes from envirosolmedical.com to envirosomedical.com/zentcart when I click on home in the menu. Being a new zenner I am sure there is something I don't have right.

20 Oct 2011, 5:57 PM
#22
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Featured products not showing on home page.

tpl_index_default.php is the file that prepares the center column output on your homepage, so looking at that, and perhaps posting it, would be a next step in diagnosing the problem.

20 Oct 2011, 6:13 PM
#23
bx32 avatar

bx32

New Zenner

Join Date:
Jul 2011
Posts:
18
Plugin Contributions:
0

Re: Featured products not showing on home page.

I don't know where template_default/templates/tpl_index_default.php came from. I have only 2 themes I can choose from in admin. Classic and Theme453. I am not sure why template_default is in the file structure.

<?php
/**
 * Page Template
 *
 * Main index page<br />
 * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br />
 * Centerboxes are called as necessary
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_index_default.php 3464 2006-04-19 00:07:26Z ajeh $
 */
?>
<div class="centerColumn" id="indexDefault">


<?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
<h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2>
<?php } ?>

<!-- deprecated - to use uncomment this section
<?php if (TEXT_MAIN) { ?>
<div id="" class="content"><?php echo TEXT_MAIN; ?></div>
<?php } ?>-->

<!-- deprecated - to use uncomment this section
<?php if (TEXT_INFORMATION) { ?>
<div id="" class="content"><?php echo TEXT_INFORMATION; ?></div>
<?php } ?>-->

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
<?php
/**
 * get the Define Main Page Text
 */
?>
<div id="indexDefaultMainContent"><?php require($define_page); ?></div>
<?php } ?>

<?php
  $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
  while (!$show_display_category->EOF) {
?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
<?php
/**
 * display the Featured Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
<?php
/**
 * display the Special Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
<?php
/**
 * display the New Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?>
<?php
/**
 * display the Upcoming Products Center Box
 */
?>
<?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?>


<?php
  $show_display_category->MoveNext();
} // !EOF
?>
</div>
20 Oct 2011, 6:20 PM
#24
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Featured products not showing on home page.

The /template_default/ folder holds the base versions of all template files. Custom templates only have their own copies of these files if they need to be different from default. /classic/ is an example of a custom template for guidance and troubleshooting, and is selected by default at installation time.

Your file seems okay at a glance. What happens if you enable new products for the main page? Do they show up?

20 Oct 2011, 6:27 PM
#25
bx32 avatar

bx32

New Zenner

Join Date:
Jul 2011
Posts:
18
Plugin Contributions:
0

Re: Featured products not showing on home page.

No matter what I try to enable they don't show up. Same with New Products, Specials,...

27 Oct 2011, 7:33 AM
#27
bx32 avatar

bx32

New Zenner

Join Date:
Jul 2011
Posts:
18
Plugin Contributions:
0

Re: Featured products not showing on home page.

Believe or not I am still trying to fix it. I am getting closer to fixing it.

The featured products still don't show up at http://envirosolmedical.com/

However they do show at http://envirosolmedical.com/~habjyfhm/zencart/index.php?main_page=index

Once again, if you are directly at envirosolmedical.com and then click on Home in the navigation it will load my home directory and the Featured Products will then show up on the Home page.

Any ideas?

27 Oct 2011, 1:34 PM
#28
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Featured products not showing on home page.

Could you post the two files, from the server, without your password or secret admin directory name for:
/includes/configure.php
/your_secret_admin/includes/configure.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Oct 2011, 3:29 PM
#29
bx32 avatar

bx32

New Zenner

Join Date:
Jul 2011
Posts:
18
Plugin Contributions:
0

Re: Featured products not showing on home page.

<?php
/**
 * dist-configure.php
 *
 * @package Configuration Settings
 * @package Admin
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $
 * @private
 */

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.com
/* 
 * URL's for your site will be built via:  
 *     HTTP_SERVER plus DIR_WS_ADMIN or
 *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
 *     HTTP_SERVER plus DIR_WS_CATALOG or 
 *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
 * ...depending on your system configuration settings
 *
 * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
 */
  define('HTTP_SERVER', 'http://envirosolmedical.com');
  define('HTTPS_SERVER', 'https://envirosolmedical.com');
  define('HTTP_CATALOG_SERVER', 'http://envirosolmedical.com');
  define('HTTPS_CATALOG_SERVER', 'https://envirosolmedical.com');

  // secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'false');
  define('ENABLE_SSL_ADMIN', '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_ADMIN', '/~habjyfhm/xxxxx/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', '/~habjyfhm/xxxxxx/');
  define('DIR_WS_HTTPS_CATALOG', '/~habjyfhm/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
  define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
  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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * 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_ADMIN', '/home/habjyfhm/public_html/zencart/xxxxx/');
  define('DIR_FS_CATALOG', '/home/habjyfhm/public_html/zencart/');

  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', 'zen_');
  define('DB_SERVER', 'localhost'); 
  define('DB_SERVER_USERNAME', 'habjyfhm_susan');
  define('DB_SERVER_PASSWORD', 'xxxxxxx');
  define('DB_DATABASE', 'habjyfhm_envirosol');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'db'); 
  // use 'db' for best support, or '' for file-based storage

  // 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', 'none');
  define('DIR_FS_SQL_CACHE', '/home/habjyfhm/public_html/zencart/cache');

?>
<?php
/**
 * dist-configure.php
 *
 * @package Configuration Settings
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $
 * @private
 */
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
define('HTTP_SERVER', 'http://envirosolmedical.com');
define('HTTPS_SERVER', 'https://envirosolmedical.com');

// Use 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', '/~habjyfhm/zencart/');
define('DIR_WS_HTTPS_CATALOG', '/~habjyfhm/zencart/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
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_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/phpBB2/');

// * 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/habjyfhm/public_html/zencart/');

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_'); // prefix for database table names -- preferred to be left empty
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'habjyfhm_susan');
define('DB_SERVER_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'habjyfhm_envirosol');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db'); 
// use 'db' for best support, or '' for file-based storage

// 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', 'none');
define('DIR_FS_SQL_CACHE', '/home/habjyfhm/public_html/zencart/cache');

?>
27 Oct 2011, 5:02 PM
#31
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Featured products not showing on home page.

You are showing:

  define('DIR_WS_ADMIN', '/~habjyfhm/xxxxx/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', '/~habjyfhm/xxxxxx/');
  define('DIR_WS_HTTPS_CATALOG', '/~habjyfhm/');
define('DIR_WS_CATALOG', '/~habjyfhm/zencart/');
define('DIR_WS_HTTPS_CATALOG', '/~habjyfhm/zencart/');

where is your store?

Is it really in:
your_domain_name.com/zencart

or is it in:
your_domain_name.com/~habjyfhm/zencart

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Nov 2011, 1:12 AM
#32
bx32 avatar

bx32

New Zenner

Join Date:
Jul 2011
Posts:
18
Plugin Contributions:
0

Re: Featured products not showing on home page.

You are showing:
Code:

define('DIR_WS_ADMIN', '/~habjyfhm/xxxxx/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/~habjyfhm/xxxxxx/');
define('DIR_WS_HTTPS_CATALOG', '/~habjyfhm/');

Code:

define('DIR_WS_CATALOG', '/~habjyfhm/zencart/');
define('DIR_WS_HTTPS_CATALOG', '/~habjyfhm/zencart/');

where is your store?

Is it really in:
your_domain_name.com/zencart

or is it in:
your_domain_name.com/~habjyfhm/zencart

The store is in both areas I believe; however, to be uniform I have just changed it...
define('DIR_WS_CATALOG', '/zencart/');
define('DIR_WS_HTTPS_CATALOG', '/zencart/'); in both config files.

Initially everything was created within zencart folder and I then uploaded my templates and images to it by filezilla. However; the site didn't display at all when live so I moved the folders and files (according to the directions under zencart help) within zencart to the root directory. I was then able to view the site, but it was missing feature product listing unless I clicked on the home navigation link, then it displayed the feature product listing in the centerbox (displays only under http://envirosolmedical.com/zencart/index.php?main_page=index not under http://envirosolmedical.com/index.php?main_page=index) This is why I don't have the configure.php files define('DIR_WS_CATALOG',/') throughout.

Where would be the best place to find paid help? I can't figure this out and I am willing to pay someone to fix this. I'm going mad! I have reinstalled many times.

3 Nov 2011, 1:50 AM
#33
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Featured products not showing on home page.

You are using the domain to the root but then all of your links are going to:
/zencart

You need to determine if you site is in the root and should run from:
your domain or from your domain/zencart ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Nov 2011, 9:44 PM
#34
lotelosangeles avatar

lotelosangeles

New Zenner

Join Date:
Nov 2011
Location:
Los Angeles CA
Posts:
2
Plugin Contributions:
0

Re: Featured products not showing on home page.

Just today, my featured products ( http://lilyoftheeast.com )has stopped displaying on the home page.
Tried doing the suggestions from previous threads but haven't had much luck.
Any help out there? Thank you!

8 Nov 2011, 11:23 PM
#35
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Featured products not showing on home page.

Looks like something in your stylesheet ... do a view source and you will see there is a Featured Product in the box ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Nov 2011, 1:01 AM
#36
lotelosangeles avatar

lotelosangeles

New Zenner

Join Date:
Nov 2011
Location:
Los Angeles CA
Posts:
2
Plugin Contributions:
0

Re: Featured products not showing on home page.

Ajeh:

Looks like something in your stylesheet ... do a view source and you will see there is a Featured Product in the box ...

Thank you for your response!

I am very new at troubleshooting. So I guess I need to fix my stylesheets?

Are you able to recommend some reading materials/reference links that I can read so I can fix this myself?

10 Nov 2011, 1:13 AM
#37
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Featured products not showing on home page.

Afraid I am not really into design so perhaps someone else can jump in here to help you out ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Nov 2011, 6:04 AM
#38
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Featured products not showing on home page.

Your template is so totally customized that there is not one single element on your homepage that uses the standard Zen Cart structures or names. The "featured item" is supposed to be a slider of some sort, which apparently is not working. You really need to ask the vendor you got the template from how to fix it, as none of us likely has the time to unravel the unknown system you have.