Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
klg committed Feb 22, 2019
1 parent 284ec90 commit c2299c7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,7 @@ public function getTierBasePricesText(Product $product):array
*/
public function getTierBasePriceText(Product $product, int $tierPriceID): string
{

//$tiers = $product->getTierPrices();
//$product->getTierPrice();
// There is no method to get just one tier price based on its ID, so we need to do it this way.
foreach ($product->getTierPrice() as $tier) {
//$t2 = $tier->getId();
// TODO: get the tier price ID to compare against the requested
// $t1 = $tier['price_id'];
if( (int) $tier['price_id'] === $tierPriceID) {
$basePrice = $this->getBasePrice($product, $tier['price']);

Expand Down

0 comments on commit c2299c7

Please sign in to comment.