Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Wishlist 3.0 Support Thread


dblake

Recommended Posts

Hi

I try to set this wish list..

 

STEP 2 - Run the provided wishlist.sql file

This file will update your database and add the tables "customers_wishlist" and "customers_wishlist_attributes"

 

the file that i have is a sql but i cannot RUN it.. he just open in notepad... so I can't do anything with it.. it is ok??

:huh:

 

 

Sorry Nathalienature, I havent had time. You need to run the sql file with your favorite mysql program. I use phpmyadmin, and you should be able to find this tool in your cpanel, vdeck, plesk,... w/e admin panel you have. ;)

 

-Dennis

Link to comment
Share on other sites

I have installed the latest version of Wishlist 3.5d but the attributes does not show in the wishlist. I have seen some questions and answers about this but could someone please explain how to do?

 

I have also downloaded the latest Simple Wishlist Report. Should I follow the fixes (?) in the last pages in this thread?

Link to comment
Share on other sites

Dennis's test admin/stats_wislist.php works as it is. You will either need to hard code the HEADING_TITLE & TABLE_HEADINGs or, add a admin/includes/languages/english/stats_wishlist.php file, which can be done by copying the following:

<?php
/*
$Id: stats_wishlists.php,v 1.00 2005/06/15

Aaron Hiatt [email protected]
http://www.scaredrabbit.com

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

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

define('HEADING_TITLE', 'Wish List Report');

define('TABLE_HEADING_NUMBER', 'No.');
define('TABLE_HEADING_CUSTOMERS', 'Customers');
define('TABLE_HEADING_CUSTOMERS_COMPANY', 'Company');
define('TABLE_HEADING_CUSTOMERS_WISHLIST', 'Product(s)');
?>

 

There will soon be an updated version of Simple Wishlist Report, which will work with Dennis's Wishlist 3+.

Link to comment
Share on other sites

What does the report do?

Most Valuable OsCommerce Contributions:

Also Purchased (AP) Preselection (cuts this resource hogging query down to nothing) -- Contribution 3294

FedEx Automated Labels -- Contribution 2244

RMA Returns system -- Contribution 1136

Sort Products By Dropdown -- Contribution 4312

Ultimate SEO URLs -- Contribution 2823

Credit Class & Gift Voucher -- Contribution 282

Cross-Sell -- Contribution 5347

Link to comment
Share on other sites

Ok, I'm back after several pages of silence. :-)

 

I got all the product attributes always showing in the same order in the cart and in the wishlist, and it turns out that was not what was causing my issue where if someone logged out and then back in, their items wouldn't get deleted from the wishlist. Although, it all looks nicer now with the attributes in the same order. :-) I've got like 20 contributions, so I'm sure this is a problem on my specific system. Oh well, I rolled it into production with the known bug. First time I've done that, but got tired of messing with it.

 

Anyway, I wrote up the new wishlist_help.php file for my site, but I need to clean it up a bit for general use. I don't use column_right, and added some site-specific pictures that I will need to take out. I'll post it in the next few days.

 

Adrienne

Link to comment
Share on other sites

Love this contribution...

 

I've downloaded and installed the 3.5d version and installed it on our MS2.2 system.

 

I was just curious if there was supposed to be a help file included... If you go to the wishlist page as a customer, if the wish list were empty, there is a link to help with your wish list. But that file doesn't exist in the 3.5d download. I've downloaded a few others to see if one of them had it in there, but I haven't seen it yet.

 

Also, the wishlist.php page does not display any blanks for email addresses. I've set the number allowed in the admin to 5, but all that I see is the place to enter the customer's name and email and then the message that he/she would like included. I haven't altered the wishlist.php file in the least from the version that I downloaded. Where do you think that I might need to look to see why that is happening?

Link to comment
Share on other sites

Hello,

 

I just installed this contribution, and I think it will be great. I'm finding one hiccup... when I add something to my Wishlist and then try and email it, I get the following errors:

 

You must include atleast one name and email.

Please enter an email address.

 

It doesn't appear to see the data I've inserted. Any idea where I should look to bugfix this? I didn't see anybody else with the same problem, so it's probably installation error.

 

Many thanks for any tips.

 

Janet

Link to comment
Share on other sites

DBlake,

 

After about a week of using this I must say GREAT WORK! It is an invaluable contribution. I still have one problem though, the wishlist attributes are not transfered to the shopping cart when you view it from the public profile but they do when you view the normal wishlist, what is different in the public_wishlist that would be causing the attributes not to transfer to the shopping cart?

 

 

Also, Here's one thing I came up with that I thought might be a nice addon someone might want, here is how to make your links in the emails clickable and add one line to the email describing what the email is about:

 

In wishlist.php just change:

/*******************************************************************
************* EMAIL THE WISHLIST TO MULTIPLE FRIENDS ***************
*******************************************************************/

 if (isset($HTTP_POST_VARS['email_prod_x'])) {

	$errors = false;
	$guest_errors = "";
	$email_errors = "";
	$message_error = "";

	if(strlen($HTTP_POST_VARS['message']) < '1') {
		$error = true;
		$message_error .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_MESSAGE . "</div>";
	}			

	  if(tep_session_is_registered('customer_id')) {
		$customer_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
		  $customer = tep_db_fetch_array($customer_query);

		$from_name = $customer['customers_firstname'] . ' ' . $customer['customers_lastname'];
		$from_email = $customer['customers_email_address'];
		$subject = $customer['customers_firstname'] . ' ' . WISHLIST_EMAIL_SUBJECT;
		$link = HTTP_SERVER . DIR_WS_CATALOG . FILENAME_WISHLIST_PUBLIC . "?public_id=" . $customer_id;

	//REPLACE VARIABLES FROM DEFINE
		$arr1 = array('$from_name', '$link');
		$arr2 = array($from_name, $link);
		$replace = str_replace($arr1, $arr2, WISHLIST_EMAIL_LINK);
		$message = tep_db_prepare_input($HTTP_POST_VARS['message']);
		$body = $message . $replace;
	} else {
		if(strlen($_POST['your_name']) < '1') {
			$error = true;
			$guest_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_YOUR_NAME . "</div>";
		}
		if(strlen($_POST['your_email']) < '1') {
			$error = true;
			$guest_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " .ERROR_YOUR_EMAIL . "</div>";
		} elseif(!tep_validate_email($_POST['your_email'])) {
			$error = true;
			$guest_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_VALID_EMAIL . "</div>";
		}

		$from_name = stripslashes($_POST['your_name']);
		$from_email = $_POST['your_email'];
		$subject = $from_name . ' ' . WISHLIST_EMAIL_SUBJECT;
		$message = stripslashes($HTTP_POST_VARS['message']);

		$z = 0;
		$prods = "";
		foreach($HTTP_POST_VARS['prod_name'] as $name) {
			$prods .= stripslashes($name) . "  " . stripslashes($HTTP_POST_VARS['prod_att'][$z]) . "\n" . $HTTP_POST_VARS['prod_link'][$z] . "\n\n";
			$z++;
		}
		$body = $message . "\n\n" . $prods . "\n\n" . WISHLIST_EMAIL_GUEST;
	  }

 

TO:

/*******************************************************************
************* EMAIL THE WISHLIST TO MULTIPLE FRIENDS ***************
*******************************************************************/

 if (isset($HTTP_POST_VARS['email_prod_x'])) {

	$errors = false;
	$guest_errors = "";
	$email_errors = "";
	$message_error = "";

	if(strlen($HTTP_POST_VARS['message']) < '1') {
		$error = true;
		$message_error .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_MESSAGE . "</div>";
	}

	  if(tep_session_is_registered('customer_id')) {
		$customer_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
		  $customer = tep_db_fetch_array($customer_query);

		$from_name = $customer['customers_firstname'] . ' ' . $customer['customers_lastname'];
		$from_email = $customer['customers_email_address'];
		$subject = $customer['customers_firstname'] . ' ' . WISHLIST_EMAIL_SUBJECT;
		$link = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_WISHLIST_PUBLIC . "?public_id=" . $customer_id . '">' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_WISHLIST_PUBLIC . "?public_id=" . $customer_id . '</a>';

	//REPLACE VARIABLES FROM DEFINE
		$arr1 = array('$from_name', '$link');
		$arr2 = array($from_name, $link);
		$replace = str_replace($arr1, $arr2, WISHLIST_EMAIL_LINK);
		$message = tep_db_prepare_input($HTTP_POST_VARS['message']);
		$body = $message . $replace;
	} else {
		if(strlen($_POST['your_name']) < '1') {
			$error = true;
			$guest_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_YOUR_NAME . "</div>";
		}
		if(strlen($_POST['your_email']) < '1') {
			$error = true;
			$guest_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " .ERROR_YOUR_EMAIL . "</div>";
		} elseif(!tep_validate_email($_POST['your_email'])) {
			$error = true;
			$guest_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_VALID_EMAIL . "</div>";
		}

		$from_name = stripslashes($_POST['your_name']);
		$from_email = $_POST['your_email'];
		$subject = $from_name . ' ' . WISHLIST_EMAIL_SUBJECT;
		$message = stripslashes($HTTP_POST_VARS['message']);

		$z = 0;
		$prods = "";
		foreach($HTTP_POST_VARS['prod_name'] as $name) {
			$prods .= stripslashes($name) . "  " . stripslashes($HTTP_POST_VARS['prod_att'][$z]) . "\n" . '<a href="' . $HTTP_POST_VARS['prod_link'][$z] . '">' . $HTTP_POST_VARS['prod_link'][$z] . '</a>' . "\n\n";
			$z++;
		}
		$body = $message . "\n\n" . WISHLIST_EMAIL_OPENING . "\n" . $prods . "\n\n" . WISHLIST_EMAIL_GUEST;
	  }

 

Then add a line in your includes/language/english/wishlist.php like so:

define('WISHLIST_EMAIL_OPENING', '<b>Here are the items in their Wish List:</b>');

Most Valuable OsCommerce Contributions:

Also Purchased (AP) Preselection (cuts this resource hogging query down to nothing) -- Contribution 3294

FedEx Automated Labels -- Contribution 2244

RMA Returns system -- Contribution 1136

Sort Products By Dropdown -- Contribution 4312

Ultimate SEO URLs -- Contribution 2823

Credit Class & Gift Voucher -- Contribution 282

Cross-Sell -- Contribution 5347

Link to comment
Share on other sites

Hi,

 

I would really appreciate some help with wishlist and wishlist stats. I have a deadline on sunday with the store that are using these.

 

First of all, attributes are not shown in wishlist or in shopping cart. I'm using the latest version of Wishlist, 3.5d

 

Secondly, I just tried the latest Wishlist Stats Report and It sais I have 3 products in my wishlist but it is actually 2.

 

Thank you for a very useful contribution!

Link to comment
Share on other sites

Sorry, Forget about my second question. I had several accounts with the same name and birth date. It seems like Wishlist Stats Reports got confused and said that I had 3 products in my Wishlist when I actually had 2 in one customer account and 1 in another.

 

I still need help with product attributes though.

Edited by Fredrik.r
Link to comment
Share on other sites

First I would like to say the latest wishlist installed perfectly for me. Everything is in working order with exception to the info box. I installed the latest infobox admin after installing wishlist and now the wishlist box is not showing at all. Im sure I missed a step or its something simple. But any help would be appreciated.

BB

Kaileen

Link to comment
Share on other sites

On the main page where you have your different boxes such as login, shopping cart, tell a friend etc.

When a user logs in to their account the wishlist box shows in the right column. Since I installed the info box admin the customer wishlist box no longer appears. All else is working fine. Just have a disappearing wishlist box for the main page.

BB

Kaileen

Link to comment
Share on other sites

Hey Tammy,

 

As Dennis mentioned, by mimicking the buy_now case in includes/application_top.php, you can do, as you want to do.

 

I, like you it seems, often need a little more detail - and I'm guessing it's a little trying sometimes on those who have a lot more experience, to get down to the details sometimes needed by those with way less experience.

 

I think I have taxed Dennis to the bone with my continued requests for more detail! Despite my pestering, he's been more than generous with his time, and, I have managed to learn from his sometimes brief explanations.

 

Anyhow, to the point...

 

.....................G'luck!

 

Carlos

 

 

thank You!!!!! Thank You.. just finished.. now for the testing! Thank you!!!!!!!!

Link to comment
Share on other sites

hello

i've got a really special trouble with this contribution

 

When i'm guest,i can have the wishlist work like a charm but when i'm login it's make this error

 

1146 - Table 'db144606454.TABLE_WISHLIST' doesn't exist

select products_id from TABLE_WISHLIST where customers_id = '10'

 

What wrong with it ????

 

sorry for bad english..

Link to comment
Share on other sites

I have gone through the installation readme for Wishlist 3.5d again, and all is there. I can't get the product attributes to work.

 

When clicking "Add to wishlist" in product_info.php only the product name is added to wishlist. I would really appreciate help with this, I'm running short on time.. The store is delayed.

 

Could it have something to do with QTPro 4.2?

Does anyone have time to look at my product_info.php?

Link to comment
Share on other sites

I have gone through the installation readme for Wishlist 3.5d again, and all is there. I can't get the product attributes to work.

 

When clicking "Add to wishlist" in product_info.php only the product name is added to wishlist. I would really appreciate help with this, I'm running short on time.. The store is delayed.

 

Could it have something to do with QTPro 4.2?

Does anyone have time to look at my product_info.php?

Not sure if I can help any, but I'll take a look, post your product_info.php

Link to comment
Share on other sites

I'm not sure it has anything to do with product_info.php :/

 

<?php
/*
 $Id: product_info.php,v 1.97 2003/07/01 14:34:54 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');

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

 $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)$HTTP_GET_VARS['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);
?>
<!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 == 'oscommerce-2.2ms2/devstore/SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="oscommerce-2.2ms2/devstore/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"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
	<?php
 if ($product_check['total'] < 1) {
?>
	<tr> 
	  <td> 
		<?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?>
	  </td>
	</tr>
	<tr> 
	  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	</tr>
	<tr> 
	  <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
		  <tr class="infoBoxContents"> 
			<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
				<tr> 
				  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				  <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
				  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				</tr>
			  </table></td>
		  </tr>
		</table></td>
	</tr>
	<?php
 } else {
$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_quantity, p.products_image, p.products_image_pop, 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_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
// Tog bort p.products_model
$product_info = tep_db_fetch_array($product_info_query);

tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
  $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
} else {
  $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}

if (tep_not_null($product_info['products_model'])) {
  $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';
} else {
  $products_name = $product_info['products_name'];
}
//DISPLAY PRODUCT WAS ADDED TO WISHLIST IF WISHLIST REDIRECT IS ENABLED
if(tep_session_is_registered('wishlist_id')) {
?>
  <tr>
	<td class="messageStackSuccess"><?php echo PRODUCT_ADDED_TO_WISHLIST; ?></td>
  </tr>
<?php
	tep_session_unregister('wishlist_id');
}
?>
	<tr> 
	  <td></td>
	</tr>
	<tr> 
	  <td class="main"> 
		<?php
if (tep_not_null($product_info['products_image'])) {
//++++ QT Pro: Begin Changed code
?>
		<table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr> 
			<td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr> 
				  <td height="20" valign="top" class="pageHeading"><?php echo $products_name; ?></td>
				</tr>
				<tr> 
				  <td valign="top" class="smallText"><b><?php echo $products_price; ?></b></td>
				</tr>
				<tr> 
				  <td height="15" valign="top" nowrap></td>
				</tr>
				<tr> 
				  <td valign="top" class="main"> 
					<?php
//++++ QT Pro: End Changed Code
?>
					<?php
}
?>
					<?php echo stripslashes($product_info['products_description']); ?> 
					<?php
//++++ QT Pro: Begin Changed code
?>
					<p> 
					  <?php
//++++ QT Pro: End Changed Code
$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
$products_attributes = tep_db_fetch_array($products_attributes_query);
if ($products_attributes['total'] > 0) {
//++++ QT Pro: Begin Changed code
  $products_id=(preg_match("/^\d{1,10}(\{\d{1,10}\}\d{1,10})*$/",$HTTP_GET_VARS['products_id']) ? $HTTP_GET_VARS['products_id'] : (int)$HTTP_GET_VARS['products_id']); 
  require(DIR_WS_CLASSES . 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN . '.php');
  $class = 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN;
  $pad = new $class($products_id);
  echo $pad->draw();
//++++ QT Pro: End Changed Code
}
?>
					</p>
					<p> 
					  <?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) {
?>
					  <?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></p>
					<p> 
					  <?php
}

if (tep_not_null($product_info['products_url'])) {
?>
					  <?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?> 
					  <?php
}

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
?>

<?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?>
					  <?php
} else {
?>
					  <?php
}
?>
					</p>
					<p><br>
					  <a href="javascript:history.go(-1)" onFocus="this.blur()"><?php echo tep_image_button('button_back2.gif', IMAGE_BUTTON_BACK); ?></a> <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?> <?php echo tep_image_submit('button_wishlist.gif', IMAGE_BUTTON_ADD_TO_WISHLIST, 'name="wishlist" value="wishlist"'); ?> <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?> 
					</p></td>
				</tr>
			  </table></td>
			<td width="20" rowspan="5" class="smallText"> </td>
			<td width="150" rowspan="5" align="right" valign="top" class="smallText"> 
			  <table border="0" cellspacing="0" cellpadding="2" align="right">
				<tr> 
				  <td height="25" align="center" class="smallText"> <script language="javascript"><!--

document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), DISPLAY_IMAGE_WIDTH, DISPLAY_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['products_image_pop']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_pop'], $product_info['products_name'], DISPLAY_IMAGE_WIDTH, DISPLAY_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> 
					</noscript> </td>
				</tr>
				<tr> 
				  <td height="25" align="center" class="smallText"> 
					<?php require(DIR_WS_MODULES . FILENAME_ADDITIONAL_IMAGES); ?>
				  </td>
				</tr>
			  </table></td>
		  </tr>
		  <tr> 
			<td class="pageHeading" valign="top"></td>
		  </tr>
		  <tr>
		  </tr>
		</table></td>
	</tr>
	<tr> 
	  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '20'); ?></td>
	</tr>
	<tr> 
	  <td> 
		<?php

//added for cross -sell

  if ( (USE_CACHE == 'true') && !SID) {

echo tep_cache_also_purchased(3600);

 include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS);

  } else {

 include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS);

  include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

}

  }

?>
	  </td>
	</tr>
  </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'); ?>

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