mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
Updated README.md documentation
Added getBuyableWeight() method to fully implement the interface, in the Buyable example.
This commit is contained in:
@@ -416,6 +416,9 @@ class Product extends Model implements Buyable {
|
|||||||
public function getBuyablePrice($options = null) {
|
public function getBuyablePrice($options = null) {
|
||||||
return $this->price;
|
return $this->price;
|
||||||
}
|
}
|
||||||
|
public function getBuyableWeight($options = null) {
|
||||||
|
return $this->weight;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user