Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add current product to purchase form extension points #361

Closed
mak001 opened this issue Nov 14, 2018 · 1 comment
Closed

Add current product to purchase form extension points #361

mak001 opened this issue Nov 14, 2018 · 1 comment

Comments

@mak001
Copy link
Contributor

mak001 commented Nov 14, 2018

It would be nicer to include the current product in the parameters passed to updatePurchaseFormFields and updateFoxyStripePurchaseFormFields.

$this->extend('updatePurchaseFormFields', $fields);

$this->extend('updateFoxyStripePurchaseFormFields', $fields);

@muskie9
Copy link
Member

muskie9 commented Nov 20, 2018

This can currently be accomplished via your Extension by calling $this->owner->getProduct(). That will return the product currently used by the form.

@muskie9 muskie9 added this to the 4.0.0 milestone Mar 25, 2019
@muskie9 muskie9 closed this as completed Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants