Jump to content
Sign in to follow this  
defender39

Wishlist add-on to email to friend

Recommended Posts

now you can email your friend your wishlist!

 

<?php
/*
 $Id: wishlist_email.php

 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');

if (tep_session_is_registered('customer_id')) {
   $account = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");
   $account_values = tep_db_fetch_array($account);
 } elseif (ALLOW_GUEST_TO_TELL_A_FRIEND == 'false') {
   $navigation->set_snapshot();
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

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

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_TELL_A_FRIEND, 'send_to=' . $HTTP_GET_VARS['send_to'] . '&products_id=' . $HTTP_GET_VARS['products_id']));
?>
<!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; ?>">
<script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- coolMenu //-->
<?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?>
<!-- coolMenu_eof //-->
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<?
 $wishliststring = "My Wishlist is: \n\n";
 $wishlist_query_raw = "select tab2.products_id, tab1.products_name from " . TABLE_WISHLIST . " as tab2, products_description as tab1 WHERE tab2.customers_id=$customer_id and tab1.products_id = tab2.products_id order by products_name";
 $wishlist_query = tep_db_query($wishlist_query_raw);
while ($resultarray=mysql_fetch_row($wishlist_query)) {
$wishliststring .= $resultarray[1]."\n" . HTTP_SERVER ."/product_info.php/products_id/".$resultarray[0] . "\n\n";
}
?>
<!-- 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"><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 sprintf(HEADING_TITLE1, $product_info['products_name']); ?></td>
           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', sprintf(HEADING_TITLE, $product_info['products_name']), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
   $error = false;

   if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process') && !tep_validate_email(trim($HTTP_POST_VARS['friendemail']))) {
     $friendemail_error = true;
     $error = true;
   } else {
     $friendemail_error = false;
   }

   if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process') && empty($HTTP_POST_VARS['friendname'])) {
     $friendname_error = true;
     $error = true;
   } else {
     $friendname_error = false;
   }

   if (tep_session_is_registered('customer_id')) {
     $from_name = $account_values['customers_firstname'] . ' ' . $account_values['customers_lastname'];
     $from_email_address = $account_values['customers_email_address'];
   } else {
     $from_name = $HTTP_POST_VARS['yourname'];
     $from_email_address = $HTTP_POST_VARS['from'];
   }
  
   if (!tep_session_is_registered('customer_id')) {
     if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process') && !tep_validate_email(trim($from_email_address))) {
       $fromemail_error = true;
       $error = true;
     } else {
       $fromemail_error = false;
     }
   }

   if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process') && empty($from_name)) {
     $fromname_error = true;
     $error = true;
   } else {
     $fromname_error = false;
   }

   if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process') && ($error == false)) {
     $email_subject = sprintf(TEXT_EMAIL_SUBJECT, $from_name, STORE_NAME);
     $email_body = sprintf(TEXT_EMAIL_INTRO, $HTTP_POST_VARS['friendname'], $from_name, $HTTP_POST_VARS['products_name'], STORE_NAME) . "\n\n";

     if (tep_not_null($HTTP_POST_VARS['yourmessage'])) {
       $email_body .= $HTTP_POST_VARS['yourmessage'] . "\n\n";
     }

     $email_body .= sprintf(TEXT_EMAIL_SIGNATURE, STORE_NAME . "\n" . HTTP_SERVER . DIR_WS_CATALOG . "\n");
                    "\n\n" . $mywishlist .= $wishlist_query_array[1] ."\n";
                    

     tep_mail($HTTP_POST_VARS['friendname'], $HTTP_POST_VARS['friendemail'], $email_subject, stripslashes($email_body), '', $from_email_address);
?>
     <tr>
       <td><br><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td class="main"><?php echo sprintf(TEXT_EMAIL_SUCCESSFUL_SENT, stripslashes($HTTP_POST_VARS['products_name']), $HTTP_POST_VARS['friendemail']); ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_WISHLIST) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
     </tr>
<?php
   } else {
     if (tep_session_is_registered('customer_id')) {
       $your_name_prompt = $account_values['customers_firstname'] . ' ' . $account_values['customers_lastname'];
       $your_email_address_prompt = $account_values['customers_email_address'];
     } else {
       $your_name_prompt = tep_draw_input_field('yourname', (($fromname_error == true) ? $HTTP_POST_VARS['yourname'] : $HTTP_GET_VARS['yourname']));
       if ($fromname_error == true) $your_name_prompt .= ' ' . TEXT_REQUIRED;
       $your_email_address_prompt = tep_draw_input_field('from', (($fromemail_error == true) ? $HTTP_POST_VARS['from'] : $HTTP_GET_VARS['from']));
       if ($fromemail_error == true) $your_email_address_prompt .= ENTRY_EMAIL_ADDRESS_CHECK_ERROR;
     }
?>
     <tr>
       <td><?php echo tep_draw_form('email_friend', tep_href_link(FILENAME_WISHLIST_SEND, 'action=process&products_id=' . $HTTP_GET_VARS['products_id'])) . tep_draw_hidden_field('products_name', $product_info['products_name']); ?><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td class="formAreaTitle"><?php echo FORM_TITLE_CUSTOMER_DETAILS; ?></td>
         </tr>
         <tr>
           <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
             <tr>
               <td class="main"><table border="0" cellspacing="0" cellpadding="2">
                 <tr>
                   <td class="main"><?php echo FORM_FIELD_CUSTOMER_NAME; ?></td>
                   <td class="main"><?php echo $your_name_prompt; ?></td>
                 </tr>
                 <tr>
                   <td class="main"><?php echo FORM_FIELD_CUSTOMER_EMAIL; ?></td>
                   <td class="main"><?php echo $your_email_address_prompt; ?></td>
                 </tr>
               </table></td>
             </tr>
           </table></td>
         </tr>
         <tr>
           <td class="formAreaTitle"><br><?php echo FORM_TITLE_FRIEND_DETAILS; ?></td>
         </tr>
         <tr>
           <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
             <tr>
               <td class="main"><table border="0" cellspacing="0" cellpadding="2">
                 <tr>
                   <td class="main"><?php echo FORM_FIELD_FRIEND_NAME; ?></td>
                   <td class="main"><?php echo tep_draw_input_field('friendname', (($friendname_error == true) ? $HTTP_POST_VARS['friendname'] : $HTTP_GET_VARS['friendname'])); if ($friendname_error == true) echo ' ' . TEXT_REQUIRED;?></td>
                 </tr>
                 <tr>
                   <td class="main"><?php echo FORM_FIELD_FRIEND_EMAIL; ?></td>
                   <td class="main"><?php echo tep_draw_input_field('friendemail', (($friendemail_error == true) ? $HTTP_POST_VARS['friendemail'] : $HTTP_GET_VARS['send_to'])); if ($friendemail_error == true) echo ENTRY_EMAIL_ADDRESS_CHECK_ERROR; ?></td>
                 </tr>
               </table></td>
             </tr>
           </table></td>
         </tr>
         <tr>
           <td class="formAreaTitle"><br><?php echo FORM_TITLE_FRIEND_MESSAGE; ?></td>
         </tr>
         <tr>
           <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
             <tr>
<!--  hacked by chuck
               <td><?php echo tep_draw_textarea_field('yourmessage', 'soft', 40, 8);?></td>
-->
               <td><textarea name="yourmessage" cols=40 rows=8><?=$wishliststring;?></textarea></td>
             </tr>
           </table></td>
         </tr>
         <tr>
           <td><br><table border="0" width="100%" cellspacing="0" cellpadding="0">
             <tr>
               <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_WISHLIST) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
               <td align="right" class="main"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></form></td>
     </tr>
<?php
   }
 
?>
   </table></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'); ?>

 

and the language file

<?php
/*
 $Id: wishlist.php,v 1 2003/11/20

 OS Commerce - Community Made Shopping!
 http://www.oscommerce.com

 Copyright (c) 2000,2001 The Exchange Project

 Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'Wishlist');
define('HEADING_TITLE', 'Wishlist');
define('HEADING_TITLE1', 'Email your wishlist to a friend.');
define('HEADING_TITLE_BOX', 'Send your wishlist to a friend.');
define('BOX_TEXT', 'Send your wishlist to a friend.');
define('FORM_TITLE_CUSTOMER_DETAILS', 'Your Details');
define('FORM_TITLE_FRIEND_DETAILS', 'Your Friend\'s Details');
define('FORM_TITLE_FRIEND_MESSAGE', 'Your Message');
define('FORM_FIELD_CUSTOMER_NAME', 'Your Name:');
define('FORM_FIELD_CUSTOMER_EMAIL', 'Your Email Address:');
define('FORM_FIELD_FRIEND_NAME', 'Your Friend\'s Name:');
define('FORM_FIELD_FRIEND_EMAIL', 'Your Friend\'s Email Address:');
define('TEXT_EMAIL_SUCCESSFUL_SENT', 'Your email about <b>%s</b> has been successfully sent to <b>%s</b>.');
define('TEXT_EMAIL_SUBJECT', 'Your friend %s wants to share his wishlist at %s');
define('TEXT_EMAIL_INTRO', 'Hi %s!' . "\n\n" . 'Your friend, %s, thought that you would like to see his wishlist from%s %s.');
define('TEXT_EMAIL_SIGNATURE', 'Regards,' . "\n\n" . '%s');

?>

Share this post


Link to post
Share on other sites

here is the actual wishlist.php you have to replace in /catalog/

 

<?php
/*
 $Id: wishlist_help.php,v 1  2002/11/09 wib

 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');

 if (!tep_session_is_registered('customer_id')) {
   $navigation->set_snapshot();
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }
 
 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WISHLIST);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_WISHLIST, '', 'NONSSL'));
?>
<!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; ?>">
<? require(DIR_WS_INCLUDES . 'meta.php'); ?>
<base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- coolMenu //-->
<?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?>
<!-- coolMenu_eof //-->
<!-- 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"><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 HEADING_TITLE; ?></td>
           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_wishlist.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
 $wishlist_query_raw = "select * from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id order by products_name";
 $wishlist_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_WISHLIST_PRODUCTS, $wishlist_query_raw, $wishlist_numrows);
// $wishlist_split = new splitPageResults($wishlist_query_raw, MAX_DISPLAY_WISHLIST_PRODUCTS);
 $wishlist_query = tep_db_query($wishlist_query_raw);

 if ($wishlist_numrows > 0 && (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3')) {
?>
     <tr>
       <td>
 <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
           <td class="smallText"><?php echo $wishlist_split->display_count($wishlist_numrows, MAX_DISPLAY_WISHLIST_PRODUCTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_WISHLIST); ?></td>
           <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE; ?> <?php echo $wishlist_split->display_links($wishlist_numrows, MAX_DISPLAY_WISHLIST_PRODUCTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>
         </tr>
       </table>
 </td>
     </tr>

<?php
 }
?>
     <tr>
       <td>
 <table border="0" width="100%" cellspacing="0" cellpadding="2">
	 <tr>
	 <td colspan="2"><?php echo tep_draw_separator('pixel_black.gif', '100%', '1'); ?></td>
	 </tr>
	 <tr>
<!-- customer_wishlist //-->
<?php
   $info_box_contents = array();

 if (tep_db_num_rows($wishlist_query)) {
   $product_ids = '';
   while ($wishlist = tep_db_fetch_array($wishlist_query)) {
      $product_ids .= $wishlist['products_id'] . ',';
   }
   $product_ids = substr($product_ids, 0, -1);
?>
<?php
//    $products_query = tep_db_query("select products_id, products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id in (" . $product_ids . ") and language_id = '" . $languages_id . "' order by products_name");
   $products_query = tep_db_query("select pd.products_id, pd.products_name, pd.products_description, p.products_image, p.products_price, p.products_tax_class_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id in (" . $product_ids . ") and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' order by products_name");

   $row = 0;
   while ($products = tep_db_fetch_array($products_query)) {
  if ($new_price = tep_get_products_special_price($products['products_id'])) {
     $products_price = '<s>' . $currencies->display_price($products['products_price'], tep_get_tax_rate($products['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($products['products_tax_class_id'])) . '</span>';
   } else {
     $products_price = $currencies->display_price($products['products_price'], tep_get_tax_rate($products['products_tax_class_id']));
   }
     $row++;
?>
    <td width="50%" valign="top" align="center" class="main"><div align="center"><a href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . tep_get_product_path($products['products_id']) . '&products_id=' . $products['products_id'], 'NONSSL'); ?>"><?php echo $products['products_name']; ?></a></div>
   <a href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . tep_get_product_path($products['products_id']) . '&products_id=' . $products['products_id'], 'NONSSL'); ?>"><?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); ?></a><br>
   <?php echo tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5'); ?><br>Price: <?php echo $products_price; ?><br>
   <a href="<?php echo tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=cust_order&pid=' . $products['products_id'] . '&rfw=1', 'NONSSL'); ?>">Move to Cart</a> | <a href="<?php echo tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=remove_wishlist&pid=' . $products['products_id'], 'NONSSL'); ?>">Delete</a><br>
   <?php echo tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5'); ?></td>
<?php
     if ((($row / 2) == floor($row / 2))) {
?>
 </tr>
 <tr>
   <td colspan="2"><?php echo tep_draw_separator('pixel_black.gif', '100%', '1'); ?></td>
 </tr>
 <tr>
<?php
     }
?>
<?php
   }
?>
</tr>
</table>
</td>
<?php
 if ($wishlist_numrows > 0 && (PREV_NEXT_BAR_LOCATION == '2' || PREV_NEXT_BAR_LOCATION == '3')) {
?>
     <tr>
       <td>
<!-- tell_a_friend //-->
<?php
 

 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('tell_a_friend', tep_href_link(FILENAME_WISHLIST_SEND, '', 'NONSSL', false), 'get'),
                              'align' => 'center',
                              'text' => tep_draw_input_field('send_to', '', 'size="20"') . ' ' . tep_image_submit('button_tell_a_friend.gif', BOX_TEXT) . tep_draw_hidden_field('products_ids', $HTTP_GET_VARS['products_ids']) . tep_hide_session_id() . '<br>' . BOX_TEXT);

 new infoBox($info_box_contents);
?>
<!-- tell_a_friend_eof //-->
 <table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td class="smallText"><?php echo $wishlist_split->display_count($wishlist_numrows, MAX_DISPLAY_WISHLIST_PRODUCTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_WISHLIST); ?></td>
           <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE; ?> <?php echo $wishlist_split->display_links($wishlist_numrows, MAX_DISPLAY_WISHLIST_PRODUCTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?>
</td>
         </tr>

       </table></td>
     </tr>
<?php
 }
?>
<?php
} else { // Nothing in the customers wishlist
?>
   <table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
 <td class="main">No products are in your Wishlist</td>
  </tr>
</table>
<?php
}
?>
<!-- customer_wishlist_eof //-->
 </td>
     </tr>
   </table></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'); ?>

 

I will try to snap this up to the contrib section but I think sometimes its important to share the code in case it needs to be modified...

 

Of course you still need to install the wishlist contrib.

Share this post


Link to post
Share on other sites

Jesse:

 

Which Wishlist contribution is this addon for? Is it compatible with MS2?

 

Thanks,

 

Khim~


Do not meddle in the affairs of Dragons, for you are crunchy and good with ketchup :-)

Share this post


Link to post
Share on other sites

I have been asked to make a complete zip file and hopefully I can find the time tomorrow.

 

My version is MS1 but should work in MS2 but I cant tell until its tested of course. I have made enourmous changes to the original version since I had errors up the wazoo with my MS1 and SEF on.

But I think most the changes I made are MS2 friendly.

 

You can play with my wishlist at http://www.videogamedeals.com

login is test@test.com with pass test1

caution: live site

 

feel free to add items to wishlist...remove..delete or email the wishlist to yourself

 

I prefer to see what changes you all would like before making it an official contrib version. Maybe there is something I missed.

 

The code above for wishlist_email.php is a hacked apart tell-a-friend.php

 

So I am sure there is redundant code. If you have removed tell a friend then this will NOT work for you.

Share this post


Link to post
Share on other sites

I am a little stuck. i have installed the wishlist module, and all seems to be working except the list of products does not appear in the email.

 

I have had a look at the code, and i can see where it should be adding the list.

 

on the wishlist_email.php:

 

      
$email_body .= sprintf(TEXT_EMAIL_SIGNATURE, STORE_NAME . "\n" . HTTP_SERVER . DIR_WS_CATALOG . "\n");
                   "\n\n" . $mywishlist .= $wishlist_query_array[1] ."\n";

 

except, $wishlist_query_array is not declared anywhere else in any of the code. So how can it display the list of products?

 

Could someone help me please.

 

thank you

 

Regards

 

ThaDeak

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×