Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Recently Viewed Products(sales optimized)


b00

Recommended Posts

Thanks, Jim. I changed that and finished installation without any problems. I set 'show column box' to 'false' in the admin panel, so that only the bottom box would show, but the column one is still showing. I cleared my cache and it still shows.

 

How can I fix that?

 

Regards,

 

Yol

 

I had to remove the require line from the column_right.php file, because it was not responding to my command in the admin panel. But if anyone knows how to fix that I would appreciate a response.

 

Thanks!

 

Yol

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

  • 3 weeks later...

<--- LOVES IT!!!! Great Job to everyone that pitched in on this contrib....

 

BUT

 

I have one thing I wish I could resolve... and I know I can... but I seem to be scratching my head....

 

items in my product descriptions that have free shipping also have a little promo gif.

 

For some reason these pictures aren't coming.... they are broken.... I right click - element properties shows this... www.themancaveoutletstore.c om/promo.gif

 

why is the .com now .c om

 

hmmmm

 

any ideas - any one that maybe had this prob and fixed it?

 

Thanks in advance!

 

Lonny

 

oh my store?

www.themancaveoutletstore.com

Yeah Yeah I am learning as I go... lol

Link to comment
Share on other sites

<--- LOVES IT!!!! Great Job to everyone that pitched in on this contrib....

 

BUT

 

I have one thing I wish I could resolve... and I know I can... but I seem to be scratching my head....

 

items in my product descriptions that have free shipping also have a little promo gif.

 

For some reason these pictures aren't coming.... they are broken.... I right click - element properties shows this... www.themancaveoutletstore.c om/promo.gif

 

why is the .com now .c om

 

hmmmm

 

any ideas - any one that maybe had this prob and fixed it?

 

Thanks in advance!

 

Lonny

 

oh my store?

www.themancaveoutletstore.com

 

 

Sorry if I wasn't clear. I am talking about the items that appear in the recently_viewed.php file.

That's where the pictures are not showing up. Product pictures are showing up but the gif for the promo is not.

 

.com becomes .c om

Yeah Yeah I am learning as I go... lol

Link to comment
Share on other sites

sorry to overload the board but I just realized one other thing.

 

If I goto recently_viewed.php and let's say I have items that have Attributes showing my tables go out of whack... pushes my right column over pretty hard - stretching my table out pretty rough.

 

Code wise this works fine. But image is everything. lol... any ides.

 

I can post code if anybody is willing to help me out...

 

Thanks and Happy Holidays!!!

Yeah Yeah I am learning as I go... lol

Link to comment
Share on other sites

It sounds like your first problem is caused by the Maximum word length setting. If your image link is embedded in the text of a description, it looks like a very long word to the code. Changing this to a number that is large enough should make the problem go away. You may also need to adjust the Page description number of characters, although that's less likely to be the problem here.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

No problem. Sorry about the late response -- the forum seems to randomly delete my topic notifications, so I didn't know that you had posted a question.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

  • 3 weeks later...

okay my English is not perfectly I tries it again. This function installed.

 

1.I have only a Link

"Recently Viewed Products" - right above

 

2.On Link I receive text to Click

 

There aren't any recently-viewed products to display for you right now.

 

This page keeps track of the most recent products you've looked at. You can come back to this list to find items you're interested in after you've browsed through our product selection.

 

3. Where are the products which I saw? Is missing somewhat?

Link to comment
Share on other sites

okay my English is not perfectly I tries it again. This function installed.

 

1.I have only a Link

"Recently Viewed Products" - right above

You should also have a box in the right column and a box at the bottom of the Products page. Check your settings in your Admin > Configuration > Recently Viewed > Show Column box and Show bottom box.

 

2.On Link I receive text to Click

 

There aren't any recently-viewed products to display for you right now.

 

This page keeps track of the most recent products you've looked at. You can come back to this list to find items you're interested in after you've browsed through our product selection.

 

3. Where are the products which I saw? Is missing somewhat?

Check your changes to catalog/product_info.php. The code in the distribution file is Lines 22-54 needs to be there for the products to show.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

my product_info.php

 

<?php
/*
 $Id: product_info.php,v 1.87 2002/08/24 10:36:31 project3000 Exp $

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

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);


 // begin recently_viewed
// Creates/updates a session variable -- a string of products IDs separated by commas
//	IDs are in order newest -> oldest
 $recently_viewed_string = '';
 if ($product_check['total'] > 0) { //We don't want to add products that don't exist/are not available

if (!tep_session_is_registered('recently_viewed')) {
  tep_session_register('recently_viewed');
} else {
  $recently_viewed_string = $_SESSION['recently_viewed'];
}

// Deal with sessions created by the previous version
if (substr_count ($recently_viewed_string, ';') > 0) {
  $_SESSION['recently_viewed'] = '';
  $recently_viewed_string = '';
}

// We only want a product to display once, so check that the product is not already in the session variable
$products_id = (int) $_GET['products_id'];
if ($recently_viewed_string == '') { // No other products
  $recently_viewed_string = (string) $products_id; // So set the variable to the current products ID
} else {
  $recently_viewed_array = explode (',', $recently_viewed_string);
  if (!in_array ($products_id, $recently_viewed_array) ) {
	$recently_viewed_string = $products_id . ',' . $recently_viewed_string; //Add the products ID to the beginning of the variable
  }
}

$_SESSION['recently_viewed'] = $recently_viewed_string;

 } if ($product_check['total']
// end recently_viewed



?>
<!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; ?>">
<?php
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
 require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?> 
 <title><?php echo TITLE ?></title>
<?php
}
?><h6 style="display:none">
base href="<?php echo (ereg('^https', $SCRIPT_URI) ? HTTPS_SERVER :HTTP_SERVER) . DIR_WS_CATALOG; ?>"</h6>

<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="javascript"><!--
function popupWindow(url) {
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le
ft=150')
}
//--></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- 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 //-->
<td width="100%" valign="top"><form name="cart_quantity" method="post" action="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product', 'NONSSL'); ?>"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php
 $product_info = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.language_id = '" . $languages_id . "'");
 if (!tep_db_num_rows($product_info)) { // product not found in database
?>
  <tr>
	<td class="main"><br><?php echo TEXT_PRODUCT_NOT_FOUND; ?></td>
  </tr>
  <tr>
	<td align="right"><br><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td>
  </tr>
<?php
 } else {
tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and language_id = '" . $languages_id . "'");
$product_info_values = tep_db_fetch_array($product_info);

if ($new_price = tep_get_products_special_price($product_info_values['products_id'])) {
  $products_price = '<s>' . $currencies->display_price($product_info_values['products_price'], tep_get_tax_rate($product_info_values['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info_values['products_tax_class_id'])) . '</span>';
} else {
  $products_price = $currencies->display_price($product_info_values['products_price'], tep_get_tax_rate($product_info_values['products_tax_class_id']));
}
$products_attributes = tep_db_query("select popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "'");
if (tep_db_num_rows($products_attributes)) {
  $products_attributes = '1';
} else {
  $products_attributes = '0';
}
?>


  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
if (PRODUCT_LIST_MODEL) {
  echo '		  <tr>' . "\n" .
	   '			<td colspan="2" class="smallText">' . $product_info_values['products_model'] . '</td>' . "\n" .
	   '		  </tr>' . "\n";
}
?>
	  <tr height="40">
		<td class="pageHeading"><?php echo $product_info_values['products_name']; ?></td>
		<td align="right" class="pageHeading"> <?php echo $products_price; ?> <br><font size="1" face="Verdana" color="#808080">incl. MwSt.
<br><font size="1" face="Verdana" color="#808080"><a href="http://www.vereinsstore.com/catalog/shipping.php">zzgl.
Versandkosten</a></font></td>
	  </tr><br><br>
</font></td>
	  </tr>

	</table></td>
  </tr>
   </td>
 </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td class="main"><table border="0" cellspacing="0" cellpadding="2" align="left">
<?php
if ($product_info_values['products_image'] != '') {
?>
	  <tr>
		<td align="center" class="smallText">
<script language="javascript"><!--
document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($product_info_values['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info_values['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
		</td>
	  </tr>
<?php
}
?>
	</table><p><?php echo stripslashes($product_info_values['products_description']); ?></p>
<?php  // Start www.TheWebSite.de - Aenderung Staffelpreise

	  if (ST_STAFFELPREIS > 0){
		 $staffelpreis_query = tep_db_query("select quantity, unitprice from " . TABLE_PRICES . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' order by quantity ");
		$s=1;?>
		<table border="0" cellpading="0" cellspacing"0">
		<td class="main"><b><?php echo TEXT_PRODUCT_SP; ?></b></td></table>
		<table border="0" cellpading="0" cellspacing"0">
		<?php for ($i=0; $i<ST_STAFFELPREIS; $i++)
		{
		  $staffelpreis = tep_db_fetch_array($staffelpreis_query);
		if ($staffelpreis['quantity']> '0'){
		  echo '<td class="main">';
		  echo $staffelpreis['quantity'];
		  echo ' = ';
		  // Berechnung Nettopreis
		 $in_price=$staffelpreis['unitprice'];
		 if (IN_PRICE_IS_BRUTTO==1){
			$tax_query = tep_db_query("select tax_rate from " . TABLE_TAX_RATES . " where tax_class_id = '" . $pInfo->products_tax_class_id . "' ");
			$tax = tep_db_fetch_array($tax_query);
			$in_price= ($in_price*($tax[tax_rate]+100)/100);
		 }
		 // END Berechnung Nettopreis
		 echo $currencies->display_price($in_price,tep_get_tax_rate($product_info_values['products_tax_class_id']));
		 echo ' | </td>';
		}
		 $s++;
		}
	   echo '</table>';
	  }

// END www.TheWeSite.de

if ($products_attributes == '1') {
  //CLR 020605 update query to pull option type

  $products_options_name = tep_db_query("select distinct popt.products_options_id, popt.products_options_name, popt.products_options_type, popt.products_options_length, popt.products_options_comment from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "' order by popt.products_options_id");
  //$products_options_name = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "'");
  $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix, pa.products_attributes_id from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'" . " order by pa.options_values_price, pa.products_attributes_id");

echo '<b>' . TEXT_PRODUCT_OPTIONS . '</b><br>';
  echo '<table border="0" cellpading="0" cellspacing"0">';
  while ($products_options_name_values = tep_db_fetch_array($products_options_name)) { 
	//CLR 020605 Add if statement to check product option type.  If add more option types, then change this to a case statement.
	if ($products_options_name_values['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT) {
	  //CLR 020708 add query to pull attribute price and price_prefix
	  $products_attribs_query = tep_db_query("select distinct patrib.options_values_price, patrib.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $HTTP_GET_VARS['products_id'] . "' and patrib.options_id = '" . $products_options_name_values['products_options_id'] . "'");
	  $products_attribs_array = tep_db_fetch_array($products_attribs_query);
	  echo '<tr><td class="main">' . $products_options_name_values['products_options_name'] . ': </td><td class="main"><input type="text" name ="id[' . TEXT_PREFIX . $products_options_name_values['products_options_id'] . ']" size="' . $products_options_name_values['products_options_length'] .'" maxlength="' . $products_options_name_values['products_options_length'] . '" value="' . $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name_values['products_options_id']] .'">  ' . $products_options_name_values['products_options_comment'];		  
	  if ($products_attribs_array['options_values_price'] != '0') {
		echo '(' . $products_attribs_array['price_prefix'] . $currencies->display_price($products_attribs_array['options_values_price'], $product_info_values['products_tax_class_id']) .') ';
	  }
	  echo '</td></tr>';
	} else {

	  $selected = 0;		
	  $products_options_array = array();
	  echo '<tr><td class="main">' . $products_options_name_values['products_options_name'] . ':</td><td class="main">' . "\n"; 

	 //Reihenfolge

$products_options = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . $products_options_name_values['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "' ORDER BY options_values_price ASC"); 

//Ende Reihenfolge


while ($products_options_values = tep_db_fetch_array($products_options)) {
		$products_options_array[] = array('id' => $products_options_values['products_options_values_id'], 'text' => $products_options_values['products_options_values_name']);
		if ($products_options_values['options_values_price'] != '0') {
		  $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options_values['price_prefix'] . $currencies->display_price($products_options_values['options_values_price'], tep_get_tax_rate($product_info_values['products_tax_class_id'])) .') ';
		}
	  }
	  echo tep_draw_pull_down_menu('id[' . $products_options_name_values['products_options_id'] . ']', $products_options_array, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name_values['products_options_id']]);
	  echo $products_options_name_values['products_options_comment'] . '</td></tr>';
	}
// orginal??	   echo tep_draw_pull_down_menu('id[' . $products_options_name_values['products_options_id'] . ']', $products_options_array, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name_values['products_options_id']]);
//orginal??		echo '</td></tr>';
  }
  echo '</table>';
}
?>
	</td>
  </tr>
<?php
  $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
  $reviews = tep_db_fetch_array($reviews_query);
  if ($reviews['count'] > 0) {
?>	  <tr>
	<td class="main"><br><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews_values['count']; ?></td>
  </tr>
<?php
}

if ($product_info_values['products_url']) {
?>
  <tr>
	<td class="main"><br><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info_values['products_url']), 'NONSSL', true, false)); ?></td>
  </tr>
<?php
}

if ($product_info_values['products_date_available'] > date('Y-m-d H:i:s')) {
?>
  <tr>
	<td align="center" class="smallText"><br><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info_values['products_date_available'])); ?></td>
  </tr>
<?php
} else {
?>
  <tr>
	<td align="center" class="smallText"><br><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info_values['products_date_added'])); ?></td>
  </tr>
<?php
}
?>
  <tr>
	<td><br><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="main"><a href="<?php echo tep_href_link(FILENAME_PRODUCT_REVIEWS, substr(tep_get_all_get_params(), 0, -1)); ?>"><br><br><br><?php echo tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS); ?></a></td>
		<td class="main" align="right"><?php echo '<b>Menge:</b> <input type="text" name="quantity" value="1" maxlength="5" size="5"><br><br>' . tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><br>
<?php
if ( (USE_CACHE == 'true') && !SID) {
  echo tep_cache_also_purchased(3600);
} else {
  include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
 }
?>

	</td>
  </tr>

  <?php
// Begin recently_viewed
 if (RECENTLY_VIEWED_BOTTOM_BOX == 'True') {
include_once (DIR_WS_MODULES . FILENAME_RECENTLY_VIEWED);
 }
// End recently_viewed
?>
</table></form></td>
<!-- 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'); ?>

 

Check your settings in your Admin > Configuration > Recently Viewed > Show Column box and Show bottom box.

 

All is TRUE

Link to comment
Share on other sites

The code we added depends on the existing product check query. The product check query code seems to be missing from your file, so we need to add it back in. Find this:

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

and add this after it:

  $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
 $product_check = tep_db_fetch_array($product_check_query);

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

You can edit catalog/recently_viewed.php to add or remove whatever data you want. Add the database columns in Lines 61-70, add the data to the array in Lines 102-112, then add the HTML to display your data in Lines 213-265. To remove data, just editing that last group of lines will work.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Hello Jim I get simply the options of the product not away. I need button (button_in_cart.gif) and Price - no options. Which lines are completely exact that?

The Buy button is Line 217, and the Price is lines 194-197.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Attributes/options code is in Lines 220-254 and 265 (To get rid of the if/else code.) If you don't need manufacturer's name you can get rid of Lines 255-264 as well.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

I just wanted to post here that the instructions are missing the part where you are to add a new file (recently_viewed.php) to the catalog/includes/modules folder. Make sure you move the one that is in that location in the installation folder (as there is another in catalog/).

 

Also, I am another who would like to be able to turn off the column box in admin instead of commenting it out in the column_right (or column_left) file.

 

Thanks for this great contribution! :)

Link to comment
Share on other sites

Here's what I changed in my code to get the admin to work as far as turning off the column box.

 

In catalog/includes/column_right.php (or column_left.php in my case - where ever you placed the box) find

 

// Start recently_viewed
 if (SHOW_RECENTLY_VIEWED_COLUMN_BOX && basename ($PHP_SELF) != FILENAME_RECENTLY_VIEWED) {
   require_once (DIR_WS_BOXES . 'recently_viewed.php');

 

and change it to

 

// Start recently_viewed
 if (SHOW_RECENTLY_VIEWED_COLUMN_BOX == 'True' && basename ($PHP_SELF) != FILENAME_RECENTLY_VIEWED) {
   require_once (DIR_WS_BOXES . 'recently_viewed.php');

 

I'm not a code writer, so I don't stand behind this, but it worked for me. The column box is gone, but after potting around looking at different items, the bottom box appears on my product pages.

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...