aries-auto / ariesautomotive

Aries Automotive Website
MIT License
1 stars 3 forks source link

Aries App guides - StyleGuard Floor Liners #184

Closed 1brandeja5 closed 8 years ago

1brandeja5 commented 8 years ago

It appears it is missing item numbers: image

ninnemana commented 8 years ago

Feature: use the lookup.

ninnemana commented 8 years ago

It looks like the product matching does everything based off the finish attribute, which works for everything EXCEPT floor liners. Floor liners will need to be handled with the color attribute. The way it was done previously was based off a string search of floor liner in the collection name.

if (collectionName.toLowerCase().indexOf('floor liner') !== -1) {
   return getByColor();
}

return getByFinish();

https://github.com/aries-auto/ariesautomotive/blob/master/src/components/AppGuides/AppGuide/AppGuide.js