EmicoEcommerce / Magento2Tweakwise

Magento 2 module for Tweakwise integration
Other
4 stars 16 forks source link

fix: case insensitive-attributes #197

Open ah-net opened 1 week ago

ah-net commented 1 week ago

If you have the attribute Black in the tweakwise_attribute_slug_table with the value slug value black-1. And tweakwise sends the color 'black'. The correct slug is not found. It should return black-1. But you get black because the attribute could not be found. In most cases this causes no problem but if the slug 'black' already exists it translates back to the wrong value for TW.

In this fix we make sure an slug is found for Black regardless of the case.