Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecton between simple children and parent configurables #242

Open
mbraeuner opened this issue Jul 13, 2020 · 1 comment
Open

Connecton between simple children and parent configurables #242

mbraeuner opened this issue Jul 13, 2020 · 1 comment

Comments

@mbraeuner
Copy link

mbraeuner commented Jul 13, 2020

Environment and configuration

Akeneo Connector 100.4.10
mysql standard installation 5.6, 5.7, MariaDB <=10.2.3

Steps to reproduce

  1. Setup a common product model in Akeneo
  2. Add 94 variant child products with SKU length of 10 characters
  3. Import models and products into Magento

Expected result

All children are connected to the configurable parent in Magento

Actual result

93 children are connected to the parent configurable product in Magento

Reason

The standard length of mysql group_concat is 1024 characters. Mysql will cut the concatenated string of child skus at char 1024.
Not all hosting providers allow to change global mysql settings

The second limitation we hit with a lot more variant products is the column type for children

Possible Solution:

  • Quick fix: Set the group_concat_max_len for the current db session before executing the "Insert Into Select" query and change type text to mediumtext for the _children column
  • Long term: Use a parent child relation table
@JoostWan
Copy link

This is still a issue on the latest version. First run some links are missing but second run it's added with this function

                    <item name="16" xsi:type="array">
                        <item name="method" xsi:type="string">linkSimple</item>
                        <item name="comment" xsi:type="string">Link simple products with configurable products</item>
                    </item>

But on first run with concat the SKU will be torn down and there is a wrong relation made when the torn down is exact the SKU of the parent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants