akeneo / magento2-connector-community

Akeneo Connector for Magento 2
Open Software License 3.0
81 stars 88 forks source link

Missing LOWER function on configurable product url_key. #602

Open bmxmale opened 1 year ago

bmxmale commented 1 year ago

Hi there. I have noticed when we import products, url_key for configurable product is same as identifier. I do some debug and found that on simple product there is

$connection->update($tmpTable, ['url_key' => new Expr('LOWER(`identifier`)')]);

but missing same on configurable.

            $data['url_key'] = 'v.code';

image

I have prepared fix for that, and after apply we have valid url_key for configurable

            $data['url_key'] = new Expr('LOWER(v.code)');

image

Version: 103.0.4 Config: Regenerate url rewrites: Yes