Skip to content

Conversation

@MaWoScha
Copy link

@MaWoScha MaWoScha commented Dec 6, 2017

Fix localization issues
Add locale 'en_GB' and 'pt_PT'
SR-714 allow capture offline'
Fixed 'Display Zero Fee' in customer account order view (#21)
Add 'cod_fee', 'base_cod_fee' attributes to webservices (#33)
Update to better fit ECG/PSR-2
Removed not used observer method, Renamed observer methods
Hide config options if module is disabled
Add 'Create Invoice Option'
Improve locale 'it_IT'

Copy link
Collaborator

@PHOENIX-MEDIA PHOENIX-MEDIA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review some of the commits and make appropriate changes. Thanks for your support!

$this->_prepareTotals();

if ($this->_totalObject && $this->_totalObject->getCodFee()) {
if ($this->_totalObject && $this->_totalObject->getCodFee() && Mage::getStoreConfigFlag('payment/phoenix_cashondelivery/display_zero_fee')) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work... If codFee check returns false the last && will not be validated. If the codFee Check returns true and display_zero_fee is set to false the total block is not added even if a fee is set.

// If order is instance of Phoenix_CashOnDelivery_Model_CashOnDelivery
if ($order->getPayment()->getMethodInstance()->getCode() == 'phoenix_cashondelivery' &&
// Can be invoiced
$order->canvoice() &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: canvoice() should be canInvoice()

<show_in_store>1</show_in_store>
<fields>
<active translate="label">
<enable translate="label">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mage_Payment_Model_Method_Abstract::isAvailable() checks for "active" config path, not "enable".

<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<depends>
<enable>1</enable>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hiding config data for the payment method when disabled is not something we want to add. Displaying the configuration is often desired even if the method is (temporarily) disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants