- Posts: 79
- Thank you received: 0
jQuery plum.form
- PhantomPWR
-
Topic Author
- Offline
Less
More
14 years 3 months ago - 14 years 3 months ago #54546
by PhantomPWR
jQuery plum.form was created by PhantomPWR
Hi all,
I'm using this jQuery script:
plum.form
to style tick boxes, radio buttons, etc.
Issue #1:
On the checkout registration page, all form elements are styled apart from the 'state' dropdown.
I suspect it is because the state dropdown is generated by the selections made in the country dropdown.
Any suggestion as to where I can add the 'styling' javascript call so it targets the state dropdown?
Issue #2
How can I target forms in modal windows with the above script?
Sorry, I for got to add my website URL: heidikjeldsen.co.uk
Many thanks
Jean
I'm using this jQuery script:
plum.form
to style tick boxes, radio buttons, etc.
Issue #1:
On the checkout registration page, all form elements are styled apart from the 'state' dropdown.
I suspect it is because the state dropdown is generated by the selections made in the country dropdown.
Any suggestion as to where I can add the 'styling' javascript call so it targets the state dropdown?
Issue #2
How can I target forms in modal windows with the above script?
Sorry, I for got to add my website URL: heidikjeldsen.co.uk
Many thanks
Jean
Last edit: 14 years 3 months ago by PhantomPWR. Reason: Forgot to add website URL
Please Log in or Create an account to join the conversation.
14 years 3 months ago #54573
by nicolas
Replied by nicolas on topic Re: jQuery plum.form
Hi,
1. You will have to add that in the file administrator/components/com_hikashop/classes/field.php in the function display of the class hikashopZone.
2. In modal boxes, you can access javascript elements of the main page with window.parent
1. You will have to add that in the file administrator/components/com_hikashop/classes/field.php in the function display of the class hikashopZone.
2. In modal boxes, you can access javascript elements of the main page with window.parent
Please Log in or Create an account to join the conversation.
- PhantomPWR
-
Topic Author
- Offline
Less
More
- Posts: 79
- Thank you received: 0
14 years 3 months ago #54589
by PhantomPWR
Replied by PhantomPWR on topic Re: jQuery plum.form
Marvellous!
Thanks Nicolas!
Thanks Nicolas!
Please Log in or Create an account to join the conversation.
- PhantomPWR
-
Topic Author
- Offline
Less
More
- Posts: 79
- Thank you received: 0
14 years 3 months ago #54595
by PhantomPWR
Replied by PhantomPWR on topic Re: jQuery plum.form
Hi Nicolas,
Schoolboy question:
Where can I put administrator/components/com_hikashop/classes/field.php override, so it doesn't get wiped out by updates?
Schoolboy question:
Where can I put administrator/components/com_hikashop/classes/field.php override, so it doesn't get wiped out by updates?
Please Log in or Create an account to join the conversation.
14 years 3 months ago #54613
by nicolas
Replied by nicolas on topic Re: jQuery plum.form
You can define the whole hikashopZone class in a joomla system plugin. Your class will automatically override the class in HikaShop if the plugin is published.
Please Log in or Create an account to join the conversation.
- PhantomPWR
-
Topic Author
- Offline
Less
More
- Posts: 79
- Thank you received: 0
14 years 3 months ago #54619
by PhantomPWR
Replied by PhantomPWR on topic Re: jQuery plum.form
After publishing the plugin, I get this error:
Class 'hikashopClass' not found in /home/heidikje/public_html/plugins/system/hikashopfield/hikashopfield.php
Class 'hikashopClass' not found in /home/heidikje/public_html/plugins/system/hikashopfield/hikashopfield.php
Please Log in or Create an account to join the conversation.
14 years 3 months ago #54642
by nicolas
Replied by nicolas on topic Re: jQuery plum.form
Add that line before the class definition:
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
that will initialize HikaShop before and will avoid that problem.
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
that will initialize HikaShop before and will avoid that problem.
Please Log in or Create an account to join the conversation.
- PhantomPWR
-
Topic Author
- Offline
Less
More
- Posts: 79
- Thank you received: 0
14 years 3 months ago #54677
by PhantomPWR
Replied by PhantomPWR on topic Re: jQuery plum.form
Thanks again, Nicolas!
That did it.
That did it.
Please Log in or Create an account to join the conversation.
Time to create page: 0.296 seconds