SilverShop\Cart\ShoppingCart::getCorrectBuyable
Ensure the proper buyable will be returned for a given buyable… This is being used to ensure a product with variations cannot be added to the cart… a Variation has to be added instead!
Signature
public function getCorrectBuyable(Buyable
$buyable )
Parameters
$buyable
— SilverShop\Model\Buyable
Returns
- Buyable