Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[contribution] Simple Template System (sts)


DiamondSea

Recommended Posts

I am trying to create a content template for the product info page. My file is template/content/product_info.php.html. I am trying to add the "Also purchased" box to the page using this code:

 

<p>$alsopurchased$</p>

 

But this doesn't show up on my page. My store is not "live" yet, but my client has made a few purchases. I can't though see this on the page. I tried logging in as well, but still don't see it. How can I get this on my page?

 

Thanks

Jason,

Are you inserting it inbetween the startform and endform tags?

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Jason,

Are you inserting it inbetween the startform and endform tags?

Yes, here is my code for product_info.php.html:

 

<?php DEFINE ('STS_CONTENT_END_CHAR', '$'); ?>
$startform$
<div id="productInfoLeft">
$product_popup$
</div>
<div id="productInfoRight">
<h1>$productname$</h1>
<p>$productdesc$</p>
<table class="options">
	<tbody>
	  <tr>
		<td>$optionnames$</td>
		<td>$optionchoices$</td>
	  </tr>
	<tr>
		<td>Price: </td>
		<td>$regularpricestrike$  $specialprice$</td>
	</tr>		
	</tbody>
  </table>	  

</div>
<div id="productDetailNav">
<div id="productReviews">
	<a href="$reviewsurl$"><div class="cssbutton">$reviews$</div></a>
</div>
<div id="productAddCart">
	$addtocartbutton$
</div>	  
</div>
<p>$alsopurchased$</p>
$endform$

Link to comment
Share on other sites

Yes, here is my code for product_info.php.html:

 

<?php DEFINE ('STS_CONTENT_END_CHAR', '$'); ?>
$startform$
<div id="productInfoLeft">
$product_popup$
</div>
<div id="productInfoRight">
<h1>$productname$</h1>
<p>$productdesc$</p>
<table class="options">
	<tbody>
	  <tr>
		<td>$optionnames$</td>
		<td>$optionchoices$</td>
	  </tr>
	<tr>
		<td>Price: </td>
		<td>$regularpricestrike$  $specialprice$</td>
	</tr>		
	</tbody>
  </table>	  

</div>
<div id="productDetailNav">
<div id="productReviews">
	<a href="$reviewsurl$"><div class="cssbutton">$reviews$</div></a>
</div>
<div id="productAddCart">
	$addtocartbutton$
</div>	  
</div>
<p>$alsopurchased$</p>
$endform$

 

Be sure you do not have the following code commented out in your includes/modules/sts_inc/product_info.php file:

 

// See if any "Also Purchased" items. Feature added in v4.0.6
$sts->start_capture();
if ((USE_CACHE == 'true') && empty($SID)) {
  echo tep_cache_also_purchased(3600);
} else {
  include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
$sts->stop_capture ('alsopurchased'); // Get the result to the main array
$template_pinfo['alsopurchased']= $sts->template['alsopurchased']; // Put it in the product info

 

Also, change your code to the following:

	</div>
<div id="productAddCart">
	$addtocartbutton$
</div>	  
</div>
$endform$
<p>$alsopurchased$</p>

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

I have this in includes/modules/sts_inc/product_info.php

// See if any "Also Purchased" items. Feature added in v4.0.6
$sts->start_capture();
if ((USE_CACHE == 'true') && empty($SID)) {
  echo tep_cache_also_purchased(3600);
} else {
  include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
$sts->stop_capture ('alsopurchased'); // Get the result to the main array
$template_pinfo['alsopurchased']= $sts->template['alsopurchased']; // Put it in the product info

 

And have this in my template (which I tried before as well)

<div id="productDetailNav">
<div id="productReviews">
	<a href="$reviewsurl$"><div class="cssbutton">$reviews$</div></a>
</div>
<div id="productAddCart">
	$addtocartbutton$
</div>	  
</div>
$endform$
<p>$alsopurchased$</p>

 

But it is not showing up for me. Now, I have not made any purchases on the store, but it should show up for anyone on the store, right?

Link to comment
Share on other sites

I have this in includes/modules/sts_inc/product_info.php

// See if any "Also Purchased" items. Feature added in v4.0.6
$sts->start_capture();
if ((USE_CACHE == 'true') && empty($SID)) {
  echo tep_cache_also_purchased(3600);
} else {
  include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
$sts->stop_capture ('alsopurchased'); // Get the result to the main array
$template_pinfo['alsopurchased']= $sts->template['alsopurchased']; // Put it in the product info

 

And have this in my template (which I tried before as well)

<div id="productDetailNav">
<div id="productReviews">
	<a href="$reviewsurl$"><div class="cssbutton">$reviews$</div></a>
</div>
<div id="productAddCart">
	$addtocartbutton$
</div>	  
</div>
$endform$
<p>$alsopurchased$</p>

 

But it is not showing up for me. Now, I have not made any purchases on the store, but it should show up for anyone on the store, right?

 

This infobox displays the products that customer having bought the displayed one, have also purchased. In your case, it may be working correctly, just the product has not been purchased in combination with other products yet.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

This infobox displays the products that customer having bought the displayed one, have also purchased. In your case, it may be working correctly, just the product has not been purchased in combination with other products yet.

I don't think it's working, as my client purchased 2 items on 1 order, and when I go to those product info pages for those products, the "also purchased" box is not showing.

 

I also just noticed that the What's New box on the main page does not show up on my template, but if I switch to the "full" template, it shows up. What would I be missing here?

Edited by jrthor2
Link to comment
Share on other sites

I don't think it's working, as my client purchased 2 items on 1 order, and when I go to those product info pages for those products, the "also purchased" box is not showing.

 

I also just noticed that the What's New box on the main page does not show up on my template, but if I switch to the "full" template, it shows up. What would I be missing here?

 

This is only possible if you do not have the whatnewbox tag in that particular template. There may be several templates involved here depending upon what STS modules you have enabled, the template folder, and of course what templates you have created.

 

Default template would need the tag if you wanted it on every page that did not have a specific template created for it.

The index.php_0.html would need the tag if you wanted it on your home page.

The index.php.html would need the tag if you wanted it on your category pages.

The product_info.php_23.html would need the tag if you wanted it on your product ID=23 product page template.

And so....

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

This is only possible if you do not have the whatnewbox tag in that particular template. There may be several templates involved here depending upon what STS modules you have enabled, the template folder, and of course what templates you have created.

 

Default template would need the tag if you wanted it on every page that did not have a specific template created for it.

The index.php_0.html would need the tag if you wanted it on your home page.

The index.php.html would need the tag if you wanted it on your category pages.

The product_info.php_23.html would need the tag if you wanted it on your product ID=23 product page template.

And so....

Ok, maybe I'm not being as clear as i should be. On my main index.php page, I can't see the "New Products For February" box when I have my template applied. I can see it if I switch to the full template. I'm not talking about the what's New info box that you see in the left column, I can get that to show up fine.

 

I shouldn't need the $whatsnewbox tag, as the box I'm talking about is part of the $content for the main page. In the code for the page when it's displayed, it has this:

<tr>
		<td><!-- new_products //-->

<!-- new_products_eof //-->
</td>
	  </tr>

Edited by jrthor2
Link to comment
Share on other sites

Ok, maybe I'm not being as clear as i should be. On my main index.php page, I can't see the "New Products For February" box when I have my template applied. I can see it if I switch to the full template. I'm not talking about the what's New info box that you see in the left column, I can get that to show up fine.

 

I shouldn't need the $whatsnewbox tag, as the box I'm talking about is part of the $content for the main page. In the code for the page when it's displayed, it has this:

<tr>
		<td><!-- new_products //-->

<!-- new_products_eof //-->
</td>
	  </tr>

 

OK. Your cart configuration is not what you are wanting then. Check your Admin | Configuration | Minumum Values - Also Purchased should be set to at least 1.

 

Try turning off the Product Info module to be sure you are displaying the Also Purchased products correctly.

 

Also, check your catalog/index.php to be sure the code is present for the New Products for Month. If not, please ask in the general forum.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

OK. Your cart configuration is not what you are wanting then. Check your Admin | Configuration | Minumum Values - Also Purchased should be set to at least 1.

 

Try turning off the Product Info module to be sure you are displaying the Also Purchased products correctly.

 

Also, check your catalog/index.php to be sure the code is present for the New Products for Month. If not, please ask in the general forum.

In Minimum Values: Also Purchased 3

 

I've turned off Product Info module, sill no "also purchased" products.

 

The code is there:

<tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>

 

I've also installed a new module called "Specials on index.php" that don't show up if I have my template enabled, but does show up if I turn off STS, or use the "full" template.

Edited by jrthor2
Link to comment
Share on other sites

In Minimum Values: Also Purchased 3

 

I've turned off Product Info module, sill no "also purchased" products.

 

The code is there:

<tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>

If it is not showing with the Product Info module turned off and the new products are not showing in your content, then you something else causing the problem. STS is working fine.

 

By the way, the new products code is listed in other places in the index.php file as well (just so you know).

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

If it is not showing with the Product Info module turned off and the new products are not showing in your content, then you something else causing the problem. STS is working fine.

 

By the way, the new products code is listed in other places in the index.php file as well (just so you know).

The "New Products for February" show up if I use the full template, but not on my template. I know new products is in other places in index. Here is my index.php file, could you possibly see if something is messed up, at least for this issue first? Also, this is the same scenario with the "Specials on index.php" contribution.

<?php
/*
 $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');
 // fix manufacture reset bug
if (isset($_GET['manufacturers_id']) && !tep_not_null($_GET['manufacturers_id'])) { tep_redirect(tep_href_link(FILENAME_DEFAULT));}   

// the following cPath references come from application_top.php
 $category_depth = 'top';
 if (isset($cPath) && tep_not_null($cPath)) {
$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
$cateqories_products = tep_db_fetch_array($categories_products_query);
if ($cateqories_products['total'] > 0) {
  $category_depth = 'products'; // display products
} else {
  $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");
  $category_parent = tep_db_fetch_array($category_parent_query);
  if ($category_parent['total'] > 0) {
	$category_depth = 'nested'; // navigate through the categories
  } else {
	$category_depth = 'products'; // category has no products, but display the 'no products' message
  }
}
 }

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
?>
<!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>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<?php
 if ($category_depth == 'nested') {
$category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
$category = tep_db_fetch_array($category_query);
?>
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading">
		  <?php echo $category['categories_name'] ?>
		<?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT,'class="imageRight"'); ?></td>
	  </tr>
	</table>
   </td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
<?php
if (isset($cPath) && strpos('_', $cPath)) {
// check to see if there are deeper categories within the current category
  $category_links = array_reverse($cPath_array);
  for($i=0, $n=sizeof($category_links); $i<$n; $i++) {
	$categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'");
	$categories = tep_db_fetch_array($categories_query);
	if ($categories['total'] < 1) {
	  // do nothing, go through the loop
	} else {
	  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
	  break; // we've found the deepest category the customer is in
	}
  }
} else {
  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
}

$number_of_categories = tep_db_num_rows($categories_query);

$rows = 0;
while ($categories = tep_db_fetch_array($categories_query)) {
  $rows++;
  $cPath_new = tep_get_path($categories['categories_id']);
  $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
  echo '				<td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories['categories_name'] . '</a></td>' . "\n";
  if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
	echo '			  </tr>' . "\n";
	echo '			  <tr>' . "\n";
  }
}

// needed for the new products module shown below
$new_products_category_id = $current_category_id;
?>
		  </tr>
		</table></td>
	  </tr>
	<?php
	// DEFAULT SPECIALS START...
				if (SHOW_DEFAULTSPECIALS=="true") {
	?>
			<tr>
			  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
			</tr>
	   <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_DEFAULT_SPECIALS); ?></td>
	   </tr>

	<?
	   }
	// DEFAULT SPECIALS END...
	?>		
	  <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>
	</table></td>
  </tr>
</table></td>
<?php
 } elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {
// create column list
$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
					 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
					 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
					 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
					 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
					 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
					 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,
					 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

asort($define_list);

$column_list = array();
reset($define_list);
while (list($key, $value) = each($define_list)) {
  if ($value > 0) $column_list[] = $key;
}

$select_column_list = '';

for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
  switch ($column_list[$i]) {
	case 'PRODUCT_LIST_MODEL':
	  $select_column_list .= 'p.products_model, ';
	  break;
	case 'PRODUCT_LIST_NAME':
	  $select_column_list .= 'pd.products_name, ';
	  break;
	case 'PRODUCT_LIST_MANUFACTURER':
	  $select_column_list .= 'm.manufacturers_name, ';
	  break;
	case 'PRODUCT_LIST_QUANTITY':
	  $select_column_list .= 'p.products_quantity, ';
	  break;
	case 'PRODUCT_LIST_IMAGE':
	  $select_column_list .= 'p.products_image, ';
	  break;
	case 'PRODUCT_LIST_WEIGHT':
	  $select_column_list .= 'p.products_weight, ';
	$select_column_list .= 'pd.short_desc, ';
	  break;
  }
}

// show the products of a specified manufacturer
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
  if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
// We are asked to show only a specific category
	$listing_sql = "select " . $select_column_list . " p.products_id, pd.short_desc, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "'";
  } else {
// We show them all
	$listing_sql = "select " . $select_column_list . " p.products_id, pd.short_desc, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'";
  }
} else {
// show the products in a given categorie
  if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
// We are asked to show only specific catgeory
	$listing_sql = "select " . $select_column_list . " p.products_id, pd.short_desc, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";
  } else {
// We show them all
	$listing_sql = "select " . $select_column_list . " p.products_id, pd.short_desc, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";
  }
}

if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {
  for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
	if ($column_list[$i] == 'PRODUCT_LIST_NAME') {
	  $HTTP_GET_VARS['sort'] = $i+1 . 'a';
	  $listing_sql .= " order by pd.products_name";
	  break;
	}
  }
} else {
  $sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);
  $sort_order = substr($HTTP_GET_VARS['sort'], 1);
  $listing_sql .= ' order by ';
  switch ($column_list[$sort_col-1]) {
	case 'PRODUCT_LIST_MODEL':
	  $listing_sql .= "p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_NAME':
	  $listing_sql .= "pd.products_name " . ($sort_order == 'd' ? 'desc' : '');
	  break;
	case 'PRODUCT_LIST_MANUFACTURER':
	  $listing_sql .= "m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_QUANTITY':
	  $listing_sql .= "p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_IMAGE':
	  $listing_sql .= "pd.products_name";
	  break;
	case 'PRODUCT_LIST_WEIGHT':
	  $listing_sql .= "p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_PRICE':
	  $listing_sql .= "final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
  }
}
?>
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table class="oscTable">
	  <tr>
		<td class="pageHeading">
		  <span class="pageHeadingLeft">
		<?php if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$category_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
$category = tep_db_fetch_array($category_query);
if ($category['manufacturers_name'] != "") {echo $category['manufacturers_name'];} else { echo HEADING_TITLE;}
} else {
$category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
$category = tep_db_fetch_array($category_query);
if ($category['categories_name'] != "") {echo "<h1>".$category['categories_name']."</h1>";} else { echo HEADING_TITLE;}
}
?>
</span>
<?php
// optional Product List Filter
if (PRODUCT_LIST_FILTER > 0) {
  if (isset($HTTP_GET_VARS['manufacturers_id'])) {
	$filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name";
  } else {
	$filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name";
  }
  $filterlist_query = tep_db_query($filterlist_sql);
  if (tep_db_num_rows($filterlist_query) > 1) {
	echo '			<td align="center" class="main">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . ' ';
	if (isset($HTTP_GET_VARS['manufacturers_id'])) {
	  echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']);
	  $options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));
	} else {
	  echo tep_draw_hidden_field('cPath', $cPath);
	  $options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));
	}
	echo tep_draw_hidden_field('sort', $_GET['sort']).(isset($_GET['list']) ? tep_draw_hidden_field('list', $_GET['list']) : '') . (isset($_GET['max']) ? tep_draw_hidden_field('max', $_GET['max']) : '');
	while ($filterlist = tep_db_fetch_array($filterlist_query)) {
	  $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']);
	}
	echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"');
	echo '</form></td>' . "\n";
  }
}

// Get the right image for the top-right
$image = DIR_WS_IMAGES . 'table_background_list.gif';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
  $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
  $image = tep_db_fetch_array($image);
  $image = $image['manufacturers_image'];
} elseif ($current_category_id) {
  $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
  $image = tep_db_fetch_array($image);
  $image = $image['categories_image'];
}
?>
		<span class="imageRight"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></span></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td>
  </tr>
</table></td>
<?php
 } else { // default page
?>
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">	 
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="main"><?php echo tep_customer_greeting(); ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo TEXT_MAIN; ?></td>
	  </tr>
	<?php
	// DEFAULT SPECIALS START...
				if (SHOW_DEFAULTSPECIALS=="true") {
	?>
			<tr>
			  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
			</tr>
	   <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_DEFAULT_SPECIALS); ?></td>
	   </tr>

	<?
	   }
	// DEFAULT SPECIALS END...
	?>		
	  <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>
<?php
include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);
?>
	</table></td>
  </tr>
</table></td>
<?php
 }
?>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
 </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'); ?>

Thanks

Edited by jrthor2
Link to comment
Share on other sites

Can anyone please help me get the above issue fixed, as I can't seem to add anything to the homepage, including the default what's new for february when using my template. I can also see that it is getting to the "new products for february", and even my other addon I want on the front page, code, as I can see the comments from that code when I view the source of the page.

 

<tr>
		<td><!-- default_specials //-->


<!-- default_specials_eof //--></td>
	   </tr>


	  <tr>
		<td><!-- new_products //-->

<!-- new_products_eof //-->
</td>
	  </tr>

 

Thanks

Edited by jrthor2
Link to comment
Share on other sites

Can anyone please help me get the above issue fixed, as I can't seem to add anything to the homepage, including the default what's new for february when using my template. I can also see that it is getting to the "new products for february", and even my other addon I want on the front page, code, as I can see the comments from that code when I view the source of the page.

 

<tr>
		<td><!-- default_specials //-->


<!-- default_specials_eof //--></td>
	   </tr>


	  <tr>
		<td><!-- new_products //-->

<!-- new_products_eof //-->
</td>
	  </tr>

 

Thanks

 

Not that I know anything much in coding, but have you tried to compare the two templates, the one you are trying to use and the full one that works with something like Winmerge? I was directed to this with some issues I had and has helped me allot figuring out what is missing and whats not. It does not tell you if the code is right/wrong, just the differences between them.

 

May not be much help but I thought I would suggest the help....

Link to comment
Share on other sites

The template I designed is significantly different from the default STS template. I am not using tables in my design, I'm using div's and css, so I'm not quite sure what you think I should look for that is different. I posted my entire catalog/index.php file to see if Bill, or anyone else, would be willing to possibly take my code, put it in their code and see if their own templates still work, showing the "New products for february" on the homepage, but I haven't head back from Bill or anyone. They show up with the full STS template, but not mine. If I need to post any other code, I'd be more than willing, as my client is getting kind of bothered that this doesn't seem to work.

 

Thanks to anyone who can and is willing to help me!!!

Link to comment
Share on other sites

The template I designed is significantly different from the default STS template. I am not using tables in my design, I'm using div's and css, so I'm not quite sure what you think I should look for that is different. I posted my entire catalog/index.php file to see if Bill, or anyone else, would be willing to possibly take my code, put it in their code and see if their own templates still work, showing the "New products for february" on the homepage, but I haven't head back from Bill or anyone. They show up with the full STS template, but not mine. If I need to post any other code, I'd be more than willing, as my client is getting kind of bothered that this doesn't seem to work.

 

Thanks to anyone who can and is willing to help me!!!

 

Jason,

I think the reason no one has been able to help you is that it appears you are talking about two separate issues that you have been describing as a single issue.

 

The New Products for Month is totally separate from the Also Purchased data. NPfM is displayed on the index page and the other is part of the product_info page.

 

You are saying that you CAN see the NPfM if you change your template folder to the sample "full" template folder that came with the STS download but it is not viewable in YOUR custom template folder. This would point to a problem in YOUR custom template folder. This could be isolated to a single default template, default index template or one of your specific index templates (or all of the above). I don't think your tableless design is a factor as it appears you did not modify any of the stock PHP pages to accomplish this (I know this because the NPfM still works using my sample template).

 

My suggestion would be for you to compare your custom template to that of the sample templates. You may have some custom code that is not pulling in the data for NPfM. Are you using a custom content template for the index page? A custom content template for the product_info wouldn't matter here as the product_info does not pull in the NPfM data at all.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Ok, if we can just get the "New products for february" iss fixed, maybe that will also fix the other specials box on the front page. I don't have an index.php.html file in my template folder at all. I tried putting one there, that has the same code as my sts_template.html does, and it did help anything. I only have 1 file in the sts_template/ypg folder, and it is sts_template.html. I then have a boxes folder with styles for info boxes and a content folder with 1 file for my product info page. Here is the code I have for my sts_template.html file if someone could help

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html $htmlparams>
<head>
<meta http-equiv="Content-Language" content="en-us" />
<!--$headcontent-->
  <link rel="stylesheet" type="text/css" media="screen" href="/inc/css/main.css" /> 
  <!--[if lte IE 7]>
	  <link href="/inc/css/patch_ypg.css" rel="stylesheet" type="text/css"/>
  <![endif]-->
</head>
<!-- Global IE fix to avoid layout crash when single word size wider than column width -->
<!--[if IE]><style type="text/css"> body {word-wrap: break-word;}</style><![endif]-->
<body>
<div id="wrapper">
	<div id="header">
		<div id="hdr">		
			<a href="/" class="homepageHeader"><span>Yuppie Puppy Gear</span></a>				
		</div>				
		<div id="hdrRight">		
			<p class="slogan">"A pampered pooch is a Yuppie Puppy at ANY age!"</p>		
			$searchbox
			<div id="shoppingBag">		
				<p>		
					$cartlogo		
				</p>					
				<p>$headcart</p>		
			</div>		
			<div id="dropmenuHdr">				
				<ul id="dm_toplevelHdr">				
					<li><a href="/">YPG Home</a></li>				
					<li class="dropmenu_spacer"><span>:</span></li>				
					<li>$myaccount</li>						
					<li>$logoff</li>				
					<li class="dropmenu_spacer"><span>:</span></li>				
					<li><a href="">Wish List</a></li>				
					<li class="dropmenu_spacer"><span>:</span></li>				
					<li><a href="">Share this Site</a>				
						<ul>				
							<li><a href="">Email</a></li>				
							<li><a href="">Facebook</a></li>				
							<li><a href="">MySpace</a></li>				
						</ul>				
					</li>				
				</ul>			
			</div>		
		</div>				
	</div>		
	<div id="dropmenu">			
		<ul id="dm_toplevel">		
			<li><a href="">K9 Shop</a></li>		
			<li><a href="/story/">YPG Story</a></li>		
			<li><a href="/feedback/">Feedback</a></li>		
			<li><a href="contact_us.php">Customer Service</a></li>				
		</ul>		
	</div>
	<div id="main_shop">
		<div id="shopLeftNav">
			$categorybox
		</div>
		<div id="shopRight">
			$content
		</div>
	 </div>
	<div id="footerAspca">	
		<p>	
			YPG is a proud supporter of the ASPCA -	5% of ALL GROSS proceedes are donated to the ASPCA on a monthly basis. Therefore, ALL YPG purchases give back to the canine community!	
		</p>	
	</div>
	<div id="footerImageGallery">		
		<div id="footerImageGalleryLeft">		
			<p>		
				Watch for our Photo Gallery Coming Soon.		
			</p>		
		</div>		
		<div id="footerImageGalleryRight">		
			<img src="/images/footerImgGallery1.png" width="186" height="112" alt="View Image Gallery" />		
			<img src="/images/footerImgGallery2.png" width="150" height="112" alt="View Image Gallery Image 2" />		
			<img src="/images/footerImgGallery3.png" width="168" height="112" alt="View Image Gallery Image 3" />		
			<img src="/images/footerImgGallery4.png" width="137" height="112" alt="View Image Gallery Image 4" />		
		</div>		
	</div>
</div> 
<div id="footer">	
	<p>	
		$footercart	
	</p>	
</div>
</body>
</body>
</html>

$footercart is a variable I made, and is inthe sts_user_code.php as this:

$sts->start_capture();
echo "© ";
echo date("Y");
echo " Contents Copyright Yuppie Puppy Gear. LLC 2008";
$sts->stop_capture ('footercart');

I don't think that would have caused any issues.

 

Thanks for all your patience and help!!!

Link to comment
Share on other sites

I just read through the documentation for the 100th time (seems like it anyway) and just noticed this in 4.7:

 

NOTE: The "Products Also Purchased" is not yet implemented in the Product_Info templates.

 

Is this the case? Would this be why the "Also purchased" is not showing on the product_info.php page? I am using 4.5.8.

 

Thanks

Link to comment
Share on other sites

I just read through the documentation for the 100th time (seems like it anyway) and just noticed this in 4.7:

 

NOTE: The "Products Also Purchased" is not yet implemented in the Product_Info templates.

 

Is this the case? Would this be why the "Also purchased" is not showing on the product_info.php page? I am using 4.5.8.

 

Thanks

Would it help if I gave you access to my site code so you could help me get these boxes on the homepage to show up? I'm getting desperate now ;)

Link to comment
Share on other sites

Ok, I'm not sure why i am not getting any replies in this forum. I tried something else to see if it is my template, or something else. If I take the sts_template.html file from the "full" directory and put it in my "ypg" directory, interestingly enough, I still don't see the "What's new for february" box, or my other specials box. I still only see this in the page code:

<tr>
		<td><!-- default_specials //-->


<!-- default_specials_eof //--></td>
	   </tr>



	  <tr>
		<td><!-- new_products //-->

<!-- new_products_eof //-->
</td>
	  </tr>

If I switch to the "full" template through the admin, and view my homepage, I then see the 2 boxes I want, here is the code:

<tr>
		<td><!-- default_specials //-->

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
 <tr>
<td width="11">

<img border="0" src="images/infobox/corner_left.gif" width="11" height="14"></td>
<td background="images/infobox_03.gif" class="infoBoxHeading" width="1428"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td width="100%" class="infoBoxHeading">Specials For February</td>
 </tr>
</table>
</td>
<td width="92" style="background-repeat: norepeat" bgcolor="#C0C0C0"><a href="http://yuppiepuppygear.com/shop/catalog/specials.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a></td>
<td width="11" background="images/infobox_04.gif" style="background-repeat: norepeat">

<img border="0" src="images/infobox/corner_right.gif" width="11" height="14"></td>
 </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#C0C0C0" style="border-collapse: collapse" bordercolor="#111111">
 <tr>
<td bgcolor="#C0C0C0"> </td>
<td bgcolor="#DBF1FF"><table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr>
<td align="center" class="smallText" width="33%" valign="top"><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=32"><img src="images/11539851.JPG" border="0" alt="Orbee-Tuff Orbo with Treat Spot for Pups - Lil' Pup" title=" Orbee-Tuff Orbo with Treat Spot for Pups - Lil' Pup " width="100" height="80"></a><br><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=32">Orbee-Tuff Orbo with Treat Spot for Pups - Lil' Pup</a><br><s>$6.95</s><br><span class="productSpecialPrice">$1.00</span></td>

<td align="center" class="smallText" width="33%" valign="top"><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=33"><img src="images/11017053.JPG" border="0" alt="Baby Blanket Buddy - Large (Big Pup)" title=" Baby Blanket Buddy - Large (Big Pup) " width="100" height="80"></a><br><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=33">Baby Blanket Buddy - Large (Big Pup)</a><br><s>$7.95</s><br><span class="productSpecialPrice">$1.00</span></td>
<td align="center" class="smallText" width="33%" valign="top"><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=28"><img src="images/1227668992040297466938.JPG" border="0" alt="Baby Blanket Buddy - Small (Lil' Pup)" title=" Baby Blanket Buddy - Small (Lil' Pup) " width="100" height="80"></a><br><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=28">Baby Blanket Buddy - Small (Lil' Pup)</a><br><s>$5.95</s><br><span class="productSpecialPrice">$1.00</span></td>
 </tr>
</table>
</td>
<td> </td>
 </tr>

 <tr>
<td width="30"> </td>
<td width="100%"> </td>
<td width="31"> </td>
 </tr>
</table>
<!-- default_specials_eof //--></td>
	   </tr>


	  <tr>
		<td><!-- new_products //-->

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
 <tr>
<td width="11">
<img border="0" src="images/infobox/corner_left.gif" width="11" height="14"></td>
<td background="images/infobox_03.gif" class="infoBoxHeading" width="1428"><table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr>
<td class="infoBoxHeading" width="100%">New Products For February</td>
 </tr>

</table>
</td>
<td width="92" style="background-repeat: norepeat" bgcolor="#C0C0C0"></td>
<td width="11" background="images/infobox_04.gif" style="background-repeat: norepeat">
<img border="0" src="images/infobox/corner_right.gif" width="11" height="14"></td>
 </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#C0C0C0" style="border-collapse: collapse" bordercolor="#111111">
 <tr>
<td bgcolor="#C0C0C0"> </td>
<td bgcolor="#DBF1FF"><table border="0" width="100%" cellspacing="0" cellpadding="2">

 <tr>
<td align="center" class="smallText" width="50%" valign="top"><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=33"><img src="images/11017053.JPG" border="0" alt="Baby Blanket Buddy - Large (Big Pup)" title=" Baby Blanket Buddy - Large (Big Pup) " width="100" height="80"></a><br><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=33">Baby Blanket Buddy - Large (Big Pup)</a><br>$7.95</td>
<td align="center" class="smallText" width="50%" valign="top"><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=32"><img src="images/11539851.JPG" border="0" alt="Orbee-Tuff Orbo with Treat Spot for Pups - Lil' Pup" title=" Orbee-Tuff Orbo with Treat Spot for Pups - Lil' Pup " width="100" height="80"></a><br><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=32">Orbee-Tuff Orbo with Treat Spot for Pups - Lil' Pup</a><br>$6.95</td>
 </tr>
 <tr>
<td align="center" class="smallText" width="50%" valign="top"><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=28"><img src="images/1227668992040297466938.JPG" border="0" alt="Baby Blanket Buddy - Small (Lil' Pup)" title=" Baby Blanket Buddy - Small (Lil' Pup) " width="100" height="80"></a><br><a href="http://yuppiepuppygear.com/shop/catalog/product_info.php?products_id=28">Baby Blanket Buddy - Small (Lil' Pup)</a><br>$5.95</td>

 </tr>
</table>
</td>
<td> </td>
 </tr>
 <tr>
<td width="30"> </td>
<td width="100%"> </td>
<td width="31"> </td>
 </tr>

</table><!-- new_products_eof //-->
</td>
	  </tr>

Can anyone please help me???

 

Thanks!!!!

Link to comment
Share on other sites

Ok, I think I have part of this figured out. I got my Specials box to show up. After looking at my default_specials.php file in /modules, I noticed it was creating a new infoBoxHeading, so I thought I'd create a infobox_default_specials.php.html file in my template boxes directory. Now, there is no infobox_default_specials.php file in /catalog/includes/boxes/, but I thought I'd try this, and it actually showed up now on my front page. I'm not sure why, but it did.

 

I still have the issue of the $alsopurchased$ not showing up on my product info page. Could anyone please help with that? I don't even see the comments on the page code <!-- also_purchased_products //-->.

 

Thanks

Link to comment
Share on other sites

Ok, I'm not sure why i am not getting any replies in this forum.

 

Jason,

 

I have tried to help you as much as I could but you obviously have something screwed up either with your stock version of osCommerce or your installation of STS. No one here can pin point the problem without actually see ALL of your files and setup. I know I can't do that on a "Free" basis as I am way to busy with my own work. Your problems are unique to your shop and therefore a basic solution is not available. The file default_specials.php is not a stock osCommerce file and that tells me your shop must have a significant amount of modifications made to it. That's OK but if you are wanting someone to debug your site from within these forums that is nerely impossible as we are not even sure what you have done to your stock code of osCommerce.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

I understand what you are saying. Yes, the file default_specials.php is a contribution I added, and I got that fixed, but the "also purchased" is a part of the stock install, and is not working with STS enabled. Even if I take the product_info.php_26.html from the full template, put it in my template as product_info.php.html, all I see is for $alsopurchased$ is "Also Purchased:", no products displayed. Why does this not work? Even if I use the "full" template that comes with STS, the Also Purchased doesn't show any products.

 

Even if I turn STS off, the also purchased items don't show up on the product info page.

Edited by jrthor2
Link to comment
Share on other sites

Please help,

 

The site: www.groovymama.net/shop works fine in IE but it doesn't work in FF Please take a look.

 

Images and CSS don't work in FF.

 

Why is it doing that?

Nothing to do with STS

 

click me

 

You still have the wrong slash in your config file:

:o

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...