How to display locations based on company in catalog

nagaklv
Tera Contributor

Hello Community,

I have two variables in catalog item 

1. Vendor - reference to core_company

2.locations - reference to cmn_location

So if i select company and it should be related locations in location reference

for example if select japan and it should be display only japan locations in locations reference variables

 

Can you please help me how to sort out this.

 

Thanks,

Nagesh klv

1 ACCEPTED SOLUTION

Hi,

You also need to add the following attribute

ref_qual_elements=vendor

Only then the selected vendor will be passed to the server and fetches the locations accordingly.

View solution in original post

11 REPLIES 11

nagaklv
Tera Contributor

I have added reference qualifier like this

javascript:'company='+current.variables.vendor but its not working

Hi,

You also need to add the following attribute

ref_qual_elements=vendor

Only then the selected vendor will be passed to the server and fetches the locations accordingly.

nagaklv
Tera Contributor

By adding this attributes it's fixed the issue.

Thanks for the solution.

 

Thanks,

Nagesh Klv

Hi Nagesh, Glad it works! šŸ™‚ Can you mark my answer as helpful if it helped? You are using the reference qualifier as I provided right?