Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Modifying send to friend button action

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-02-2007, 12:00 AM
 
luxor luxor is offline
 

Senior Member
  
Join Date: Apr 2007
Posts: 120
 

Default Modifying send to friend button action

Hi, after you send to friend it reloads the current product page by default.

I am trying to edit the action of this, to lets say load another page, or load another section of product.php.

My dilemna lies in that the send to friend form (found on send_to_friend.tpl) has the following:

Code:
<form action="product.php" method="post" name="send"> <input type="hidden" name="mode" value="send" /> <input type="hidden" name="productid" value="{$product.productid}" />

Now this leads me to believe the form calls product.php and executes the send function because of a condition set on mode.

I can not find any reference to mode in product.php, so I am stuck and can not find the code to modify the action after the send to friend is sent.
__________________
v4.1.8 GOLD
Reply With Quote
  #2  
Old 08-02-2007, 06:45 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Modifying send to friend button action

product.php includes send_to_friend.php where the mode is checked and the email is sent. Change the func_header_location at the bottom to go wherever you want.
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:26 PM.

   

 
X-Cart forums © 2001-2020