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

Discount calculation issue causing cart to show wrong values #10

Open
hemal108 opened this issue Dec 26, 2016 · 0 comments
Open

Discount calculation issue causing cart to show wrong values #10

hemal108 opened this issue Dec 26, 2016 · 0 comments

Comments

@hemal108
Copy link

FILE: Web/Ppfix/Model/Cart.php
Method _validate()

Lines
if (!$this->_isDiscountAsItem) {
$discountAmount = Mage::helper('ppfix')->getExchangeRate($this->_totals[self::TOTAL_DISCOUNT]);
$sum -= $discountAmount;
// $sum -= $this->_totals[self::TOTAL_DISCOUNT];
}

// PayPal requires to have discount less than items subtotal
if (!$this->_isDiscountAsItem) {
$this->_areTotalsValid = round($discountAmount, 4) < round($itemsSubtotal, 4);
} else {
$this->_areTotalsValid = $itemsSubtotal > 0.00001;
}

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

No branches or pull requests

1 participant