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)
-   -   Redirect Submit Order Button (https://forum.x-cart.com/showthread.php?t=13486)

Khar 04-18-2005 07:50 PM

Redirect Submit Order Button
 
hello,

i would like to redirect the final button in the shopping cart (submit order).

i need this button to send the information to the gateway, and then instead of going to the confirmation page, i would like to send it to a different url.

i have looked everywhere on how to redirect the submit order button, someone please help.

reference site: http://www.colorprintdirect.com

balinor 04-19-2005 04:19 AM

I can't give you specifics, but I believe you would have to edit cart.php to specify where to redirect after processing the payment.

Khar 04-20-2005 10:54 AM

i have been able to find the button, but it is complicated.

this button also sends to the gateway, there is a lot of code on this button and i can not figure out how to forward it to a different url instead of the confirmation page.

can anyone please help me with this, i have searched everywhere in the forum but cannot find the answer.

Jon 04-20-2005 11:18 AM

The confirmation redirect by default takes place here:

payment/payment_ccend.php

It sets the $request variable and then redirects to it. You can change the redirect by changing this block of code:

Code:

        if($weblink==2)
        {
                func_html_location($request,0);
        }
        elseif($weblink)
        {        print "<a href='".$request."'>";
                print "Return to the ".$config["Company"]["company_name"]."</a>";
        }
        else
                func_header_location($request);


I could probably help further if you were more specific in what your trying to accomplish.

Khar 04-20-2005 01:50 PM

thank you jon,

this is what i need to happen, when the customer finishes the checkout and clicks the "submit order" button, it directs the information to the gateway of course, and then i would like them to be taken to a new page "http://www.upload.colorprintdirect.com/" an upload form.

Jon 04-20-2005 02:18 PM

Not an easy thing to accomplish. You have to add a new payment method, and with that payment method you can attach a payment.php file. You need to have that geared towards passing all the necessary information to your gateway. You could probably edit the world pay payment method to do so. Somehow with that you have to be able to pass the return url also.


All times are GMT -8. The time now is 02:54 AM.

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