Magento Forum

   
Chain Selection in Admin configuration file ( System - > Configuration -> Shipping methods )
 
wingsryder
Jr. Member
 
Total Posts:  2
Joined:  2010-04-20
 

I need help with chain selection in admin configuration file. I am working on shipping module and there are some setting which does depends on earlier field/drop down settings.

I have attached an snapshot of what i needs.

eg :  if i do have a drop down for choosing
CLASS [ 1) Vechile 2) GOods 3) Frieght ]

if i do choose VECHICLE as a CLASS ... it needs to have all the options under that CLASS

eg:  SUBCLASS [ 1) CAR 2) BIKE ]
once CAR is choose as subclass I need to have show SUBSUBCLASS as [1) TATA 2) MARUTI ]

I hope this is cleared.  I am not sure this can be done with JQUERY or is there <bacned_model> that do the job. Where to exactly use the javascript conditions.

I am using this in SYSTEM.XML file content (just a part pasted)

<pclass translate="label">
<label>Class</label>
<frontend_type>select</frontend_type>
<source_model>australia/pclass</source_model>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</pclass>


<mode translate="label">
<label>Mode</label>
<frontend_type>select</frontend_type>
<source_model>australia/mode</source_model>
<sort_order>6</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</mode>

<anticipated_packing translate="label">
<label>Anticipated Packaging</label>
<frontend_type>select</frontend_type>
<source_model>australia/anticipatedpacking</source_model>
<sort_order>8</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</anticipated_packing>

<anticipated_packing_check translate="label">
<label>Apply to all items ? ( Anticipated Packaging )</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>9</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</anticipated_packing_check>

these are three which needs to be in chain selection depending what is chosen in first and and then in second drop down.

Image Attachments
query.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top