X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Modifying send to friend button action (https://forum.x-cart.com/showthread.php?t=32968)

luxor 08-02-2007 12:00 AM

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.

geckoday 08-02-2007 06:45 AM

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.


All times are GMT -8. The time now is 08:45 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.