Skip to content

Commit

Permalink
PD-380 accept Terms and Conditions by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nauman-coeus committed Apr 2, 2021
1 parent ffd6b26 commit 0bebd8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Model/System/Config/Source/TermsAndConditions.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class TermsAndConditions implements ArrayInterface
public function toOptionArray()
{
return [
['value' => true, 'label' => 'Yes'],
['value' => false, 'label' => 'No'],
['value' => '1', 'label' => 'Yes'],
['value' => '0', 'label' => 'No'],
];
}
}
}
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<tab id="ekomi" translate="label" sortOrder="1">
<label>Ekomi</label>
</tab>
<section id="integration" translate="label" sortOrder="1" showInDefault="1"
<section id="ekomiintegration" translate="label" sortOrder="1" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Ekomi Integration</label>
<tab>ekomi</tab>
Expand Down
3 changes: 2 additions & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
<product_reviews>0</product_reviews>
<export_method>status</export_method>
<turnaround_time>10</turnaround_time>
<terms_and_conditions>1</terms_and_conditions>
</general>
<prc>
<show_prc>0</show_prc>
</prc>
</ekomiintegration>
</default>
</config>
</config>

0 comments on commit 0bebd8f

Please sign in to comment.