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

Redirect Submit Order Button

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-18-2005, 07:50 PM
 
Khar Khar is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 57
 

Default 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
__________________
tekmind

X-cart 4.0.7 [unix]
Reply With Quote
  #2  
Old 04-19-2005, 04:19 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-20-2005, 10:54 AM
 
Khar Khar is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 57
 

Default

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.
__________________
tekmind

X-cart 4.0.7 [unix]
Reply With Quote
  #4  
Old 04-20-2005, 11:18 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

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.
Reply With Quote
  #5  
Old 04-20-2005, 01:50 PM
 
Khar Khar is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 57
 

Default

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.
__________________
tekmind

X-cart 4.0.7 [unix]
Reply With Quote
  #6  
Old 04-20-2005, 02:18 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

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.
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 06:52 AM.

   

 
X-Cart forums © 2001-2020