Skip to content

Commit

Permalink
Merge pull request #179 from paynl/feature/PLUG-3337
Browse files Browse the repository at this point in the history
PLUG-3337 - Customer type tooltips
  • Loading branch information
woutse authored May 23, 2024
2 parents 6b77262 + 27ae5d6 commit 14ff7b8
Show file tree
Hide file tree
Showing 83 changed files with 452 additions and 160 deletions.
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/afterpay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_afterpay/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/afterpay_international.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_afterpay_international/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/alipay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_alipay/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/amazonpay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_amazonpay/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/amex.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_amex/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/applepay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_applepay/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/bataviacadeaukaart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_bataviacadeaukaart/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/beautycadeau.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_beautycadeau/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/biercheque.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_biercheque/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/biller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_biller/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/billink.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_billink/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/bioscoopbon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_bioscoopbon/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/blik.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_blik/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
7 changes: 5 additions & 2 deletions etc/adminhtml/paymentmethods/bloemencadeaukaart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,16 @@
<comment><![CDATA[Hold CTRL button to select/deselect multiple]]></comment>
</field>
<field id="showforcompany" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show for</label>
<label>Customer Type</label>
<source_model>Paynl\Payment\Model\Config\Source\ShowCompanyOptions</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_bloemencadeaukaart/showforcompany</config_path>
<comment><![CDATA[Show payment method for both business and private customers, private customers only or businesses only.]]></comment>
<tooltip>By default payment methods are available in the checkout for all customer types.
Private, B2C: Only show this payment method when the customer didn't enter a company name.
Business, BB2: Only show this payment method when the customer entered a company name.</tooltip>
<comment><![CDATA[Specify which type of customer this payment method should be available to.]]></comment>
</field>
<field id="showforgroup" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Customer Group</label>
Expand Down
Loading

0 comments on commit 14ff7b8

Please sign in to comment.