Skip to content

Commit

Permalink
Zbozi: fixed ZboziItem::setPriceBeforeDiscount()
Browse files Browse the repository at this point in the history
  • Loading branch information
janpecha committed Feb 5, 2025
1 parent 2a44124 commit 4ae34e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Feeds/Zbozi/ZboziItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ public function getPriceBeforeDiscount()
*/
public function setPriceBeforeDiscount($priceBeforeDiscount)
{
$this->priceBeforeDiscount = $this->formatPrice($priceBeforeDiscount);
$this->priceBeforeDiscount = $priceBeforeDiscount !== NULL
? $this->formatPrice($priceBeforeDiscount)
: NULL;
return $this;
}

Expand Down

0 comments on commit 4ae34e4

Please sign in to comment.