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

Payment methods and the 'order is being processed' page...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-09-2006, 07:30 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Payment methods and the 'order is being processed' page...

I'm looking for a way that the text displayed on the 'order is being processed' page depends on the choosen payment method.

Reason is that I have a payment method (iDEAL) that displays a dropdownlist with several banks on that page, which customers have to choose from before they can proceed with the processing of their order. And the original text 'please wait, your order is being processed' could be misleading and/or confusing for (some) customers.
That's why I want to display something like; 'Please select your bank to proceed with your order...'

But this text should only be displayed when iDEAL is choosen. The other payment methods should show the original text of the 'order is being processed' page.

Any help is very welcome.
Thanks in advance!

Jerrad
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #2  
Old 09-09-2006, 12:12 PM
 
tobychapman tobychapman is offline
 

Senior Member
  
Join Date: Sep 2005
Location: France
Posts: 112
 

Default Re: Payment methods and the 'order is being processed' page...

Which php file in the payment directory takes care of payment processing? The "please wait" message is towards the end, something like :

<table width=100% height=100%>
<tr><td align=center valign=middle>Please wait while connecting to <b>SECPay</b> payment gateway...</td></tr>
</table>

You can safely remove the message. (Backup first!!) If you don't find it there let me know, I'm sure I can help you find it.
__________________
XCart Gold 4.0.18
Fedora 6 - Apache 2.2.4 - PHP 5.1.6 - MySQL 5.0.27
www.goose.fr
Reply With Quote
  #3  
Old 09-10-2006, 01:38 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: Payment methods and the 'order is being processed' page...

Thanks for the response, tobychapman!
I did a search for the 'Please wait...' text but unluckly the iDEAL payment file doesn't work this way.
I noticed that indeed most payment files have this message towards the end, but like a few other files the iDEAL file don't.

Somehow the iDEAL payment method redirects customers to payment_wait.php.
If I could locate the code (or file) that's responsible for that action, I could try to change the redirect to a new payment_wait.php with a different message.

Any idea where to look for that?
Thanks again!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #4  
Old 09-10-2006, 02:24 AM
 
tobychapman tobychapman is offline
 

Senior Member
  
Join Date: Sep 2005
Location: France
Posts: 112
 

Default Re: Payment methods and the 'order is being processed' page...

payment_wait.php is called by payment_cc.php, right at the beginning : include $xcart_dir."/include/payment_wait.php";

When a customer pays by credit card they click on your site's "submit" button. Xcart processes this with payment_cc.php. The actual credit card processor (something like cc_ideal.php) is then called from within payment_cc.php. You can see which files are called by looking at the "xcart_payment_methods" table in the database.

payment_cic.php displays a "wait" message. The credit card processor also normally displays its own wait message. So two appear. In your case only one appears because the ideal payment system waits for input from the client.

Have you followed? If you remove the call to payment_wait.php it will not appear for any credit card payment. But since a second wait message normally appears, I don't see a problem. You could make it payment system sensitive : if ($module_params["processor"] == 'ideal' : but it's maybe not worth it. Hash out (#) the payment_wait include and tell me if that does it.
__________________
XCart Gold 4.0.18
Fedora 6 - Apache 2.2.4 - PHP 5.1.6 - MySQL 5.0.27
www.goose.fr
Reply With Quote
  #5  
Old 09-10-2006, 03:45 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: Payment methods and the 'order is being processed' page...

I found a way to do it by adding a message text to the iDEAL php file, like most of the payment php files already have!
After that I also changed the text of the payment_wait.php into the general message 'Your order is being processed...' by removing the 'Please wait...' part.

Thanks for helping and pointing me to the message part of the payment files!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #6  
Old 09-10-2006, 04:05 AM
 
tobychapman tobychapman is offline
 

Senior Member
  
Join Date: Sep 2005
Location: France
Posts: 112
 

Default Re: Payment methods and the 'order is being processed' page...

Yep that's the easiest way : just change the message

I like your "shop closed" page by the way.
__________________
XCart Gold 4.0.18
Fedora 6 - Apache 2.2.4 - PHP 5.1.6 - MySQL 5.0.27
www.goose.fr
Reply With Quote
  #7  
Old 09-10-2006, 04:16 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: Payment methods and the 'order is being processed' page...

Quote:
Originally Posted by tobychapman
I like your "shop closed" page by the way.

Thanks for the compliment!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
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 02:55 PM.

   

 
X-Cart forums © 2001-2020