Skip to content

Commit

Permalink
show settings in store and website view (#27)
Browse files Browse the repository at this point in the history
* show settings in store and website view
* revert log section visibility to avoid confusion

---------

Co-authored-by: Alexandru Lighezan <[email protected]>
  • Loading branch information
artyom-jaksov-tl and lighe authored Sep 17, 2024
1 parent 6a5f3ce commit 454d2ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion etc/adminhtml/system/general.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<field id="mode">production</field>
</depends>
</field>
<field id="check_credentials" translate="label" type="button" sortOrder="100" showInDefault="1" showInWebsite="0" showInStore="1">
<field id="check_credentials" translate="label" type="button" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label/>
<frontend_model>TrueLayer\Connect\Block\Adminhtml\System\Config\Button\Credentials</frontend_model>
<depends>
Expand Down
12 changes: 6 additions & 6 deletions etc/adminhtml/system/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
<group id="settings" translate="label" sortOrder="200" showInDefault="1" showInWebsite="0" showInStore="1">
<group id="settings" translate="label" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Settings</label>
<field id="title" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Title</label>
Expand Down Expand Up @@ -52,12 +52,12 @@
<frontend_model>TrueLayer\Connect\Block\Adminhtml\Design\Heading</frontend_model>
<comment><![CDATA[This function allows you to specify whether you want to send the order and/or invoice email to the client through Magento.]]></comment>
</field>
<field id="send_order_email" translate="label" type="select" sortOrder="61" showInDefault="1" showInWebsite="1" showInStore="0">
<field id="send_order_email" translate="label" type="select" sortOrder="61" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Send Order Email</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>payment/truelayer/send_order_email</config_path>
</field>
<field id="send_invoice_email" translate="label" type="select" sortOrder="62" showInDefault="1" showInWebsite="1" showInStore="0">
<field id="send_invoice_email" translate="label" type="select" sortOrder="62" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Send Invoice Email</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>payment/truelayer/send_invoice_email</config_path>
Expand All @@ -78,17 +78,17 @@
<comment><![CDATA[You can customise TrueLayer's Hosted Payments Page to align with your brand by using the settings below]]></comment>
<frontend_model>TrueLayer\Connect\Block\Adminhtml\Design\Heading</frontend_model>
</field>
<field id="payment_page_primary_color" translate="label" type="text" sortOrder="81" showInDefault="1" showInWebsite="1" showInStore="0">
<field id="payment_page_primary_color" translate="label" type="text" sortOrder="81" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Primary Color</label>
<frontend_model>TrueLayer\Connect\Block\Adminhtml\System\Config\Field\ColorPicker</frontend_model>
<config_path>payment/truelayer/payment_page_primary_color</config_path>
</field>
<field id="payment_page_secondary_color" translate="label" type="text" sortOrder="82" showInDefault="1" showInWebsite="1" showInStore="0">
<field id="payment_page_secondary_color" translate="label" type="text" sortOrder="82" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Secondary Color</label>
<frontend_model>TrueLayer\Connect\Block\Adminhtml\System\Config\Field\ColorPicker</frontend_model>
<config_path>payment/truelayer/payment_page_secondary_color</config_path>
</field>
<field id="payment_page_tertiary_color" translate="label" type="text" sortOrder="83" showInDefault="1" showInWebsite="1" showInStore="0">
<field id="payment_page_tertiary_color" translate="label" type="text" sortOrder="83" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Tertiary Color</label>
<frontend_model>TrueLayer\Connect\Block\Adminhtml\System\Config\Field\ColorPicker</frontend_model>
<config_path>payment/truelayer/payment_page_tertiary_color</config_path>
Expand Down

0 comments on commit 454d2ee

Please sign in to comment.