showon in payment method options

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

showon in payment method options

Post by b2z »

Hi,

I am using "showon" attribute in XML of payment method options, but it doesn't work. Would be nice to have as it's a standard Joomla thing.

Version 4.0.10

Thank you!

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

Re: showon in payment method options

Post by Jan »

Hi, do you really need the "showon" feature? The problem is this is fully managed by Joomla and if Joomla core developers didn't count with dynamically loaded forms, it is hard to fix it as they usually ignore features which extensions use.

I will take a look at it but really no idea if I can do something with this core feature :-(

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: showon in payment method options

Post by b2z »

Well I have some options that should hide if other option is set to Yes. Not a big deal at the moment.

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

Re: showon in payment method options

Post by Jan »

Hi, as expected, seems like core does not count with dynamic loading of parameters. So the instance of "showon" class needs to be newly initialized in Javascript. So the "showon" will work in next release.

Image

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: showon in payment method options

Post by b2z »

Thank you!
Post Reply