Page 1 of 1

Unable to use a subform in the payment method options

Posted: 23 Mar 2023, 12:17
by b2z
Hi Jan!

I am unable to use a subform in the payment method options. This is because subform script is not loaded for phocacartpayment view. A simple fix for this is to add this peace of code to views/phocacartpayment/edit.php:

Code: Select all

Factory::getApplication()
->getDocument()
->getWebAssetManager()
->useScript('webcomponent.field-subform');
Thank you in advance!

Kind regards,
Dmitrijs

Re: Unable to use a subform in the payment method options

Posted: 23 Mar 2023, 23:50
by Jan
Hi, thank you for the info, I will add it into next version.

Jan

Re: Unable to use a subform in the payment method options

Posted: 24 Mar 2023, 13:14
by b2z
Good to hear :)

Kind regards,
Dmitrijs

Re: Unable to use a subform in the payment method options

Posted: 13 Apr 2023, 16:19
by Jan