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