You have no items in your shopping cart.

Sunday, November 24, 2024 10:39:18 AM

PayPal Plus. Messages in Germal?

Posted: 5 years ago

#8720 Quote

crilando

Posted: 5 years ago

#8720 Quote
Hi,

the paypal Plus modul shows the options of the paypal service on checkout process. But all Messages are coming out in English instead of german.

Whats to to, to tell the plugin to request german messages from Paypal?

Posted: 5 years ago

#8721 Quote

Support

Posted: 5 years ago

#8721 Quote
Plugin has to send to PayPal the language from the nop store.

Open the file PaymentInfo.cshtml
and change these values

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

   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%');
                }

Posted: 5 years ago

#8724 Quote

crilando

Posted: 5 years ago

#8724 Quote
Thank you, it works

But the @model like

            "language": "@Model.Language",
            "country": "@Model.Country",

Is compiled in code, or can It be also set in a nop setings?

Posted: 5 years ago

#8725 Quote

Support

Posted: 5 years ago

#8725 Quote
Language = _workContext.WorkingLanguage.LanguageCulture,
Country = _addressService.GetAddressById(_shippingSettings.ShippingOriginAddressId).Country?.TwoLetterIsoCode;


If you have the message in English can you check the values Language and Country by default?

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved