You have no items in your shopping cart.

Tuesday, July 16, 2019 3:28:07 PM

Messages in Germal?

Avatar

Posted: 4 months ago

#8720 Quote

crilando

Posted: 4 months 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?
Avatar

Posted: 4 months ago

#8721 Quote

Support

Posted: 4 months 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%');
                }

Avatar

Posted: 4 months ago

#8724 Quote

crilando

Posted: 4 months 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?
Avatar

Posted: 4 months ago

#8725 Quote

Support

Posted: 4 months 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 © 2019 FoxNetSoft. All rights reserved