View Single Post
  #111  
Old 03-14-2006, 07:55 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Quote:
Originally Posted by dashonice
I have tried
Code:
<A href="send_to_friend.php?mode=update&productid={$product.productid}">
with unsucessful results. It just takes me back to the home page. Any help would be appreciated. Thanks.

sendtofriend.php NOT send_to_friend.php

Here's an updated sendtofriend.php file that SHOULD be 4.0.x compatible, I've not tested it but, it all essesence should be the only part of the mod that needs to be updated, mainly the func_display() function call at the end instead of $smarty->display();
Code:
<?php # # Send to Friend Mod v4.0.x compatible # cart-lab.com 3/14/2006 10:56PM require "./auth.php"; require $xcart_dir."/include/categories.php"; if($active_modules["Bestsellers"]) include $xcart_dir."/modules/Bestsellers/bestsellers.php"; if($active_modules["Manufacturers"]) include $xcart_dir."/modules/Manufacturers/customer_manufacturers.php"; $product_info = func_select_product($productid, $user_account['membership']); $cat = $product_info["categoryid"]; $userinfo = func_userinfo($login,$login_type); if ($REQUEST_METHOD=="POST") { # # Send mail to friend # $HTTP_POST_VARS["body"] = stripslashes($HTTP_POST_VARS["body"]); while (list($key,$val) = each($HTTP_POST_VARS)) $contact[$key]=$val; $fillerror = (empty($contact["firstname"]) || empty($contact["lastname"]) || empty($contact["email"]) || empty($contact["sendtoemail"])); if(!$fillerror) { $mail_smarty->assign("contact",$contact); func_send_mail($contact["sendtoemail"], "mail/sendtofriend_subj.tpl", "mail/sendtofriend.tpl", $contact["email"], true); $productid = $product_info['productid']; header("Location: sendtofriend.php?section=sendtofriend&productid=$productid"); exit; } else { $userinfo = $HTTP_POST_VARS; $userinfo["login"] = $userinfo["uname"]; } } $smarty->assign("userinfo",$userinfo); $smarty->assign("fillerror",$fillerror); $smarty->assign("main","sendtofriend"); $smarty->assign("help_section",$section); $smarty->assign("location",$location); $smarty->assign("product",$product_info); func_display("customer/home.tpl",$smarty); #$smarty->display("customer/home.tpl"); ?>
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote