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

hiding or removing the name of payment processor in orders

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-11-2004, 03:09 AM
  boney's Avatar 
boney boney is offline
 

Member
  
Join Date: Jun 2003
Location: UK
Posts: 18
 

Default hiding or removing the name of payment processor in orders

Hi there,

I've looked everywhere on the forums and in my x cart code but cannot seem to find a way to hide, alter or remove the name of the payment processor in the customers order.

I don't want to change anything in the code that would muck up the payment process without asking for any advice first!!!

Can I just comment out the $order.payment_method line in the templates?? I still want to display the method such as credit card but not the processor that appears in brackets.

Can it be done?? or can't you change this at all?

Cheers

Boney (today I mostly am )
__________________
X-Cart v3.5.10 live! on \'nix
plus X-AOM module
Reply With Quote
  #2  
Old 08-11-2004, 05:31 PM
 
e1front e1front is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 179
 

Default

anybody???
this important ...
as customers don't need to know that payment gateway we using ???
Reply With Quote
  #3  
Old 08-11-2004, 09:44 PM
 
pmstudios pmstudios is offline
 

Senior Member
  
Join Date: May 2004
Posts: 133
 

Default

From the back-end select 'Payment methods' and remove the processor name from the checked Method field.
__________________
X-Cart 4.0.5
MySQL: 3.23.58
PHP 4.3.2
Reply With Quote
  #4  
Old 08-11-2004, 09:57 PM
 
e1front e1front is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 179
 

Default

this doesn't help
as by removing the name, make invisible to the customer as well

I think what we need is
instead of [credit card (linkpoint)]
[credit card]
Reply With Quote
  #5  
Old 08-12-2004, 01:28 AM
 
pmstudios pmstudios is offline
 

Senior Member
  
Join Date: May 2004
Posts: 133
 

Default

That's what I meant, but of course do not remove 'Credit Card'

For instance, I'm using VeriSign so in Payment methods it says "Credit Card (VeriSign)"

Did you remove just "(Linkpoint)" and it still shows up on the invoice?
__________________
X-Cart 4.0.5
MySQL: 3.23.58
PHP 4.3.2
Reply With Quote
  #6  
Old 08-12-2004, 06:14 AM
 
e1front e1front is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 179
 

Default

I guess it is differint in 3.3.X

thanks for your help
Reply With Quote
  #7  
Old 08-12-2004, 03:13 PM
  boney's Avatar 
boney boney is offline
 

Member
  
Join Date: Jun 2003
Location: UK
Posts: 18
 

Default

Quote:
From the back-end select 'Payment methods' and remove the processor name from the checked Method field.

Thanks pmstudios but I looked there first of all and it doesn't help unfortunately. I think it has something to do with the payment_method.php file where it inserts the name of the payment processor after the label for payment type i.e. Credit or Debit Card.

Trouble is I am not sure if I can just comment out whatever I need to comment out!! Still getting to grips with php and seeing as it's my live store..... well, hope you can see why I'm being a bit hesitant to sort this!!

Usually I've got a test site running of the same version but this has gone as I'm testing the new 4 release

Cheers

Boney
__________________
X-Cart v3.5.10 live! on \'nix
plus X-AOM module
Reply With Quote
  #8  
Old 08-13-2004, 08:12 AM
 
pmstudios pmstudios is offline
 

Senior Member
  
Join Date: May 2004
Posts: 133
 

Default

Ok, I found the area this is in. Check /payment/payment_cc.php and around line 88 you should see:

Code:
{ $orderids = func_place_order("$payment_method (".$module_params["module_name"].(get_cc_in_testmode($module_params)?", in test mode":"").")", "I", $order_details );

Change that line to:

Code:
{ if (empty($module_params) || $module_params["processor"]=="cc_test.php") $orderids = func_place_order("$payment_method (".$module_params["module_name"].", in test mode").")", "I", $order_details ); else $orderids = func_place_order("$payment_method", "I", $order_details );


This should store the processor name in the DB with the "in test mode" note when it's in test mode and in live mode it won't store the processor at all.

Make sure to backup payment_cc.php first as I haven't tested this, but it should work.
__________________
X-Cart 4.0.5
MySQL: 3.23.58
PHP 4.3.2
Reply With Quote
  #9  
Old 08-13-2004, 02:58 PM
  boney's Avatar 
boney boney is offline
 

Member
  
Join Date: Jun 2003
Location: UK
Posts: 18
 

Default

Tried your code pmstudios without any joy There was a parse error when trying to connect to the payment gateway.

But, I had an idea. I don't mind letting the customer know the payment provider as they get an email from them anyway saying their transaction was successful/failed etc.

What I definitely didn't want was the actual payment method used given out to the customer. So, I just changed the name of the payment processor module and active payment processer value to 'Protx secure' in the d'base.

Maybe a compromise situation but I'm happy with it for now

Thanks for the help though pmstudios. Much appreciated.
__________________
X-Cart v3.5.10 live! on \'nix
plus X-AOM module
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:53 PM.

   

 
X-Cart forums © 2001-2020