Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Adyen Magento2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared Libs
Adyen Magento2
Commits
cf9cfdc3
Commit
cf9cfdc3
authored
Mar 27, 2020
by
Marcos Garcia
Committed by
GitHub
Mar 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PW-2068 Change shopper locale config input type (#676)
Co-Authored-By:
Ángel Campos
<
angel.campos@adyen.com
>
parent
4fcfd9b2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
Model/Config/Source/InheritableLocale.php
Model/Config/Source/InheritableLocale.php
+18
-0
etc/adminhtml/system/main.xml
etc/adminhtml/system/main.xml
+2
-1
No files found.
Model/Config/Source/InheritableLocale.php
0 → 100644
View file @
cf9cfdc3
<?php
namespace
Adyen\Payment\Model\Config\Source
;
use
Magento\Config\Model\Config\Source\Locale
as
MagentoLocale
;
class
InheritableLocale
extends
MagentoLocale
{
public
function
toOptionArray
()
{
$locales
=
parent
::
toOptionArray
();
array_unshift
(
$locales
,
[
'value'
=>
''
,
'label'
=>
'Use system locale'
]);
return
$locales
;
}
}
\ No newline at end of file
etc/adminhtml/system/main.xml
View file @
cf9cfdc3
...
...
@@ -28,8 +28,9 @@
<source_model>
Adyen\Payment\Model\Config\Source\DemoMode
</source_model>
<config_path>
payment/adyen_abstract/demo_mode
</config_path>
</field>
<field
id=
"shopper_locale"
translate=
"label"
type=
"
text"
sortOrder=
"3
0"
showInDefault=
"1"
showInWebsite=
"1"
showInStore=
"1"
>
<field
id=
"shopper_locale"
translate=
"label"
type=
"
select"
sortOrder=
"10
0"
showInDefault=
"1"
showInWebsite=
"1"
showInStore=
"1"
>
<label>
Locale
</label>
<source_model>
Adyen\Payment\Model\Config\Source\InheritableLocale
</source_model>
<config_path>
payment/adyen_hpp/shopper_locale
</config_path>
</field>
<field
id=
"version"
translate=
"label"
type=
"label"
sortOrder=
"40"
showInDefault=
"1"
showInWebsite=
"1"
showInStore=
"0"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment