Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BindingJS #404

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,43 @@
<field id="enabled">1</field>
</depends>
</field>
<field
id="checkout_only"
type="select"
translate="label"
sortOrder="80"
showInDefault="1"
showInWebsite="1"
showInStore="1"
>
<label>Load source script only on checkout pages</label>
<comment>
This option force to load our solution only on checkout page in store front. Please be sure that it is desired way to operate.
</comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>idealpostcodes/settings/checkout_only</config_path>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field
id="match_checkout_page"
type="text"
translate="label,comment"
sortOrder="80"
showInDefault="1"
showInWebsite="1"
showInStore="1"
>
<label>Checkout Page Url Regex</label>
<comment>
Here you can change regex to match your checkout url. Default is generic one from basic magento install
</comment>
<config_path>idealpostcodes/settings/match_checkout_page</config_path>
<depends>
<field id="checkout_only">1</field>
</depends>
</field>
</group>
</section>
</system>
Expand Down
2 changes: 2 additions & 0 deletions etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<autocomplete_override>{}</autocomplete_override>
<postcode_lookup_override>{}</postcode_lookup_override>
<custom_fields>[]</custom_fields>
<checkout_only>0</checkout_only>
<match_checkout_page>\/checkout</match_checkout_page>
</settings>
</idealpostcodes>
</default>
Expand Down
Loading