Guest User

Untitled

a guest
Jan 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public function renderAmountMinimal()
  2. {
  3. $id = $this->getPriceId() ? $this->getPriceId() : 'product-minimal-price-' . $this->getSaleableItem()->getId();
  4.  
  5. $amount = $this->minimalPriceCalculator->getAmount($this->getSaleableItem());
  6.  
  7.  
  8. if ($amount === null) {
  9. return '';
  10. }
  11.  
  12. return $this->renderAmount(
  13. $amount,
  14. [
  15. 'display_label' => __('As low as'),
  16. 'price_id' => $id,
  17. 'include_container' => false,
  18. 'skip_adjustments' => true
  19. ]
  20. );
  21. }
Add Comment
Please, Sign In to add comment