Unable to use a subform in the payment method options

Phoca Cart - complex e-commerce extension
User avatar
b2z
Phoca Enthusiast
Phoca Enthusiast
Posts: 52
Joined: 09 Dec 2016, 13:52

Unable to use a subform in the payment method options

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, thank you for the info, I will add it into next version.

Jan
If you find Phoca extensions useful, please support the project
User avatar
b2z
Phoca Enthusiast
Phoca Enthusiast
Posts: 52
Joined: 09 Dec 2016, 13:52

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

Post by b2z »

Good to hear :)

Kind regards,
Dmitrijs
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply