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

Paypal on Invoices

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-21-2014, 11:10 AM
 
microdaq microdaq is offline
 

Senior Member
  
Join Date: Jan 2006
Location: New Hampshire
Posts: 109
 

Default Paypal on Invoices

Hello,

I am trying to show the Payment Methods "Paypal" or "Credit Card" to show up on our invoices.

However, it is only showing "Credit Card" even though it is a "paypal" order.

This is the code inside the order_invoice.tpl that I need to change.

<strong>{$lng.lbl_payment_method}:</strong><br />
{$order.payment_method}<br />


Any idea what $order.payment_method should be changed too?


Steve
__________________
Steve J Racicot
X-Cart Consultant Version 4 and 5
Reply With Quote
  #2  
Old 01-21-2014, 12:42 PM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Paypal on Invoices

{$order.payment_method} should work properly.

For debug purposes, you can try to call
var_dump($order);

in the admin/order.php script (somewhere close to the end of file) in order to see the whole picture of what $order contains.
Reply With Quote
  #3  
Old 01-22-2014, 08:12 AM
 
microdaq microdaq is offline
 

Senior Member
  
Join Date: Jan 2006
Location: New Hampshire
Posts: 109
 

Default Re: Paypal on Invoices

What is happening is that if the customer chooses the Paypal option during checkout then it is processed as a "paypal" order. However, (using Payflow Link as a processor) if the customer chooses credit card as a payment option and they hit the submit button, the Iframe "pops up" with Credit Card and Paypal Payment Options. If they choose paypal as the payment option at this point in the checkout process, "Credit Card" is the Payment method even though it really is not.
__________________
Steve J Racicot
X-Cart Consultant Version 4 and 5
Reply With Quote
  #4  
Old 01-23-2014, 01:33 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Paypal on Invoices

Since only a few payment systems notify X-Cart what is the actual payment method for an order, X-Cart uses the payment name configured in the back end. So, if a customer chooses "Credit card" method during checkout, "Credit card" will go into the invoice and receipt even if the payment system allows selecting a different one on their website.

What you can do is try to rename the method to something like "Credit card / PayPal". However, I would like to let you know that payment method names you see in recent X-Cart versions were recommended by the PayPal team (we verified our integration with them).
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
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:43 PM.

   

 
X-Cart forums © 2001-2020