unified dropdown
When selecting a variant on either version of the unified dropdown that was marked as "Discontinued" the main product image wouldn't update.
Any product that used either version of the unified dropdown and had at least one color that was marked as "Discontinued".
Two things:
- On mid-May we fixed a similar issue, when two or more products shared the prefix of their name, think "Red" and "Red/Blue", the "Red/Blue" image was being displayed, as it does indeed starts with "Red", however this fix broke colors marked as "Discontinued".
- The swatch title (used to match the selected color and the main image) wasn't appending "Discontinued" to such colors, so the JS was expecting to find a color such as "Red (*Discontinued)" but the color was named "Red" only and a match was never made.
Updated JSP to append "(*Discontinued)" to such colors.