jQuery plum.form

  • Posts: 79
  • Thank you received: 0
12 years 5 months ago #54546

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

Last edit: 12 years 5 months ago by PhantomPWR. Reason: Forgot to add website URL

Please Log in or Create an account to join the conversation.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #54573

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

Please Log in or Create an account to join the conversation.

  • Posts: 79
  • Thank you received: 0
12 years 4 months ago #54589

Marvellous!

Thanks Nicolas! :)

Please Log in or Create an account to join the conversation.

  • Posts: 79
  • Thank you received: 0
12 years 4 months ago #54595

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?

Please Log in or Create an account to join the conversation.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #54613

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.

  • Posts: 79
  • Thank you received: 0
12 years 4 months ago #54619

After publishing the plugin, I get this error:

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.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #54642

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.

Please Log in or Create an account to join the conversation.

  • Posts: 79
  • Thank you received: 0
12 years 4 months ago #54677

Thanks again, Nicolas!

That did it. :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.050 seconds
Powered by Kunena Forum