File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/code/Magento/Catalog/Pricing/Price Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,11 @@ protected function filterTierPrices(array $priceList)
162
162
$ qtyCache = [];
163
163
$ allCustomersGroupId = $ this ->groupManagement ->getAllCustomersGroup ()->getId ();
164
164
foreach ($ priceList as $ priceKey => &$ price ) {
165
+ if ($ price ['price ' ] >= $ this ->priceInfo ->getPrice (FinalPrice::PRICE_CODE )->getValue ()) {
166
+ unset($ priceList [$ priceKey ]);
167
+ continue ;
168
+ }
169
+
165
170
if (isset ($ price ['price_qty ' ]) && $ price ['price_qty ' ] == 1 ) {
166
171
unset($ priceList [$ priceKey ]);
167
172
continue ;
@@ -204,7 +209,7 @@ protected function getBasePrice()
204
209
public function getSavePercent (AmountInterface $ amount )
205
210
{
206
211
return ceil (
207
- 100 - ((100 / $ this ->priceInfo ->getPrice (RegularPrice ::PRICE_CODE )->getAmount ()-> getBaseAmount ())
212
+ 100 - ((100 / $ this ->priceInfo ->getPrice (FinalPrice ::PRICE_CODE )->getValue ())
208
213
* $ amount ->getBaseAmount ())
209
214
);
210
215
}
You can’t perform that action at this time.
0 commit comments