You have no items in your shopping cart.

Friday, May 3, 2024 12:03:59 AM

PayPal Plus. Translation?

Posted: 5 years ago

#8601 Quote

petar.ivanov256ddd

Posted: 5 years ago

#8601 Quote
Hello,

I like the plugin a lot but I can't find a way to translate this part of it and more specifically I want to translate the part "A PayPal service. You don't need a PayPal account".

Posted: 5 years ago

#8602 Quote

Support

Posted: 5 years ago

#8602 Quote
Pay attention that PayPal Plus works in Germany, Brazil and several counties.

This is PayPal widget. You can't translate it. PayPal will do itself.
Plugin sends to PayPal the customer's language and PayPal will use it.

Open this file PaymentInfo.cshtml

and change this code.

Old code

       var ppp = PAYPAL.apps.PPP({
            "approvalUrl": "@Html.Raw(Model.ApprovalUrl)",
            "placeholder": "ppplus",
            "mode": "@Model.Mode",
//            "language": "de_DE",
//            "country": "DE",
            "language": "@Model.Language",
            "country": "@Model.Country",
            "showPuiOnSandbox":"true",
            showLoadingIndicator: true,
            onLoad: function() {
                $('#ppplus iframe').width('100%');
                }
        });


new code for static German language for all customers.

       var ppp = PAYPAL.apps.PPP({
            "approvalUrl": "@Html.Raw(Model.ApprovalUrl)",
            "placeholder": "ppplus",
            "mode": "@Model.Mode",
            "language": "de_DE",
            "country": "DE",
//            "language": "@Model.Language",
//            "country": "@Model.Country",
            "showPuiOnSandbox":"true",
            showLoadingIndicator: true,
            onLoad: function() {
                $('#ppplus iframe').width('100%');
                }
        });

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved