I have added an identifier in the url when selecting a color using the core swatches magento provides in 1.9.1 for configurable products. Ex. Blue shirt links adds shirt.html?color=blue. I'm wondering if there is a simple way to make the product view page acknowledge the identifier and show the appropriate selected color when loading the product. Thanks for any help.
there is already a core way of doing this.
You have to pass the configurable attribute values like this:
So if your color attribute has the id 99 and the option blue has the id 12 it will look something like this
Here is an example on the demo website: http://demo.magentocommerce.com/men/shirts/plaid-cotton-shirt-482.html#92=17&180=78
This will select color charcoal and size large.
If you only specify http://demo.magentocommerce.com/men/shirts/plaid-cotton-shirt-482.html#92=17 it will select the color only.
The color swatches are linked to the dropdown options so they should work too.