-
Notifications
You must be signed in to change notification settings - Fork 22
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
Create remaining configuration settings #16 #37
base: master
Are you sure you want to change the base?
Conversation
admin/Source/Currencies.php
Outdated
use Magento\Framework\Data\OptionSourceInterface; | ||
|
||
/** | ||
* Class ConnectionType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the PHPDoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
*/ | ||
class Currencies implements OptionSourceInterface | ||
{ | ||
const USD = 'USD'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move these settings to the config.xml/di.xml file
admin/etc/adminhtml/system.xml
Outdated
@@ -36,6 +36,11 @@ | |||
<source_model>Pronko\LiqPayAdmin\Source\ConnectionType</source_model> | |||
<config_path>payment/pronko_liqpay/connection_type</config_path> | |||
</field> | |||
<field id="payment_action" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1"> | |||
<label>Payment Action</label> | |||
<source_model>Magento\AuthorizenetAcceptjs\Model\Adminhtml\Source\PaymentAction</source_model> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Payment Action should be created in the Pronko_LiqPayAdmin module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
admin/etc/adminhtml/system.xml
Outdated
@@ -36,6 +36,11 @@ | |||
<source_model>Pronko\LiqPayAdmin\Source\ConnectionType</source_model> | |||
<config_path>payment/pronko_liqpay/connection_type</config_path> | |||
</field> | |||
<field id="payment_action" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ShowInStore should be set to 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
admin/etc/adminhtml/system.xml
Outdated
<config_path>payment/pronko_liqpay/maximum_order_total</config_path> | ||
</field> | ||
<field id="sort_order" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1"> | ||
<label>Sort Total</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort Order
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
admin/etc/config.xml
Outdated
</pronko_liqpay_section> | ||
</payment> | ||
</default> | ||
</config> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty line is missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
admin/etc/module.xml
Outdated
<module name="Pronko_LiqPayAdmin" /> | ||
<module name="Pronko_LiqPayAdmin"> | ||
<sequence> | ||
<module name="Magento_Sales"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should add sequence for Sales module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
card-admin/Model/Source/Cctype.php
Outdated
*/ | ||
public function getAllowedTypes() | ||
{ | ||
return ['VI', 'MC', 'AE', 'DI', 'JCB', 'DN']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see cctypes in the LiqPayCardGateway/etc/config.xml.
There are only 2 currencies supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
card-admin/etc/adminhtml/system.xml
Outdated
<group id="pronko_liqpay" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1"> | ||
<label>LiqPay</label> | ||
<fieldset_css>complex</fieldset_css> | ||
<attribute type="displayIn">other_payment_methods</attribute> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attribute node can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After discussion we decide to leave them for now.
card-admin/etc/adminhtml/system.xml
Outdated
<label>Card Payment</label> | ||
<attribute type="expanded">1</attribute> | ||
<frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model> | ||
<field id="cctypes" translate="label" type="multiselect" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show in store = 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
admin/etc/adminhtml/system.xml
Outdated
</field> | ||
<field id="order_status" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1"> | ||
<label>New Order Status</label> | ||
<source_model>Magento\Sales\Model\Config\Source\Order\Status\Processing</source_model> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use Magento\Sales\Model\Config\Source\Order\Status
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@nikolalardev hi there, any news on this pull request? Do you need help with this? please let us know. |
Story: Create remaining configuration settings #16