Sunnysideup\Ecommerce\Pages\Product::getVersionOfBuyable
Action to return specific version of a specific product.
This can be any product to enable the retrieval of deleted products. This is really useful for sold products where you want to retrieve the actual version that you sold. If the version can not be found then we retrieve the current one.
Signature
public function getVersionOfBuyable([integer
$id = 0,
[integer
$version = 0]] )
Parameters
$id
— integer$version
— integer
Returns
- DataObject