cancel
Showing results for 
Search instead for 
Did you mean: 

Show/hide options in dropdown based on Category they came from?

Show/hide options in dropdown based on Category they came from?

Hello,

 

I have a site that has sells shirts and I need to show/hide "patch" options based on the category they came from. All of these categories have the same SKUs. Each state has different patches that goes on the shirt.

 

Example Categories:

California

Arizona

Texas

Oregon

 

If they came from the California category, they should only see California options inside the Patch Dropdown. I would assume I can target each option value with javascript using the URL in the browser but is there another way that would be easier?

1 REPLY

Re: Show/hide options in dropdown based on Category they came from?

Are you talking about a Configurable product or a Category and layered navigation?

Magento Moderator since 2009
Keep Calm and Clear Cache!