mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
Update BuyableProduct.php
This commit is contained in:
@@ -55,7 +55,7 @@ class BuyableProduct extends Model implements Buyable
|
|||||||
*/
|
*/
|
||||||
public function getBuyablePrice(): Money
|
public function getBuyablePrice(): Money
|
||||||
{
|
{
|
||||||
return new Money($this->price);
|
return new Money($this->price, $this->currency);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user