Update AddProductExtension.php
Update AddProductExtension.php

Changed function on $data to canPurchase as this tests for the 'allow_out_of_stock_purchase' config option to be tested on stock items
dnadesign/silverstripe-shop_stock