| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Paypal Express Checkout usability mod | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() At default, x-cart includes both a "checkout with paypal" option on the cart page as well as the payment options page, which to me is confusing from a user perspective.
I wanted to eliminate the Paypal option from the payment options page EXCEPT for when the user has already logged in through Paypal and came back to my X-cart to complete the payment. At that point, they can click "Change shipping options", change their shipping method to anything they like (since this wasn't possible anywhere previously in this process), and the Paypal option will be available (and checked by default since they are logged in). From here, if they leave Paypal checked as the option, the next page will reflect the new shipping cost and they will still be logged into the same Paypal session. If they select an alternate payment option, the paypal session is cleared and they'd have to go back to the initial link on the cart page to pay through Paypal. To me this is optimal from a customer use perspective. So here's how I did it: In cart.php, after: Code:
Paste the following code: Code:
Then if you are using Fast Lane Checkout, in checkout_2_method.tpl, after: Code:
Paste: Code:
And BEFORE: Code:
Paste: Code:
To make the Paypal option checked when the customer is currently logged into a paypal session, replace the FIRST instance of the following code: Code:
With: Code:
And replace the SECOND instance with: Code:
Finally I wanted to add the text for whatever paypal account the customer is currently logged into for clarity purposes. To do this, after: Code:
Paste: Code:
That's it!
__________________
----------------- X-cart version 4.2.1 |
|||||||
#2
|
|||||||
|
|||||||
![]() Thanks necroflux for these fine codes.
But My Primary currency is set to one Credit card payment method . I want to link alt currency for customers opting to pay using Paypal (in USD -"$")... Is it possible? Can you help me? Thanks to all. |
|||||||
|
|||
X-Cart forums © 2001-2020
|