Skip to content

Commit

Permalink
Update system.xml & config.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
andriysvyryda committed Feb 28, 2023
1 parent 8bbf5ac commit c533101
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<tab id="magefan" translate="label" sortOrder="110">
<label>MageFan Extensions</label>
</tab>
<section id="mfloginascustomer" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<section id="mfloginascustomer" translate="label" type="text" sortOrder="10922470850" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Login As Customer</label>
<tab>magefan</tab>
Expand All @@ -26,17 +26,17 @@
<label>Enable Extension</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="disable_page_cache" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="disable_page_cache" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Disable Page Cache For Admin User</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment><![CDATA[If set to "Yes", when login as customer Page Cache will be disabled.]]></comment>
</field>
<field id="keep_guest_cart" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="keep_guest_cart" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Keep Guest Shopping Cart Items</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment><![CDATA[If set to "Yes", after login, guest shopping cart will be merged into customer shopping cart.]]></comment>
</field>
<field id="store_view_login" translate="label comment" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="store_view_login" translate="label comment" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Store View To Login In</label>
<source_model>Magefan\LoginAsCustomer\Model\Config\Source\StoreViewLogin</source_model>
<comment><![CDATA[
Expand Down
3 changes: 3 additions & 0 deletions etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<mfloginascustomer>
<general>
<enabled>0</enabled>
<disable_page_cache>1</disable_page_cache>
<keep_guest_cart>1</keep_guest_cart>
<store_view_login>0</store_view_login>
</general>
</mfloginascustomer>
</default>
Expand Down

0 comments on commit c533101

Please sign in to comment.