Closed mak001 closed 5 years ago
It would be nicer to include the current product in the parameters passed to updatePurchaseFormFields and updateFoxyStripePurchaseFormFields.
updatePurchaseFormFields
updateFoxyStripePurchaseFormFields
https://github.com/dynamic/foxystripe/blob/6d9130940a898ed5f92f8050b5572712f42a6eb3/src/Form/FoxyStripePurchaseForm.php#L223
https://github.com/dynamic/foxystripe/blob/6d9130940a898ed5f92f8050b5572712f42a6eb3/src/Form/FoxyStripePurchaseForm.php#L228
This can currently be accomplished via your Extension by calling $this->owner->getProduct(). That will return the product currently used by the form.
Extension
$this->owner->getProduct()
It would be nicer to include the current product in the parameters passed to
updatePurchaseFormFields
andupdateFoxyStripePurchaseFormFields
.https://github.com/dynamic/foxystripe/blob/6d9130940a898ed5f92f8050b5572712f42a6eb3/src/Form/FoxyStripePurchaseForm.php#L223
https://github.com/dynamic/foxystripe/blob/6d9130940a898ed5f92f8050b5572712f42a6eb3/src/Form/FoxyStripePurchaseForm.php#L228