Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Invalid product configuration for variable products #33

Open
kardi31 opened this issue Aug 2, 2021 · 0 comments
Open

Invalid product configuration for variable products #33

kardi31 opened this issue Aug 2, 2021 · 0 comments

Comments

@kardi31
Copy link
Contributor

kardi31 commented Aug 2, 2021

Bug type

Architecture

Current behavior

When sending product configuration for variable products to Shopware we send :

  • for parent product - all options for the property, regardless if option is assigned to product in the template or not.
  • for child product - only options that are assigned to the parent product, which results in nothing being sent, as options are assigned to child product as identifiers, not to parent product

Input Code

https://github.com/ergonode/exporter-shopware-6-backend/blob/236c13dbe540eb362ed0a8dc5177548108c48a46/src/Infrastructure/Mapper/Product/ProductVariantChildMapper.php

Expected behavior

When variable products are created in Shopware directly (not via Ergonode), the following configuration is created

  • for parent products - configuration with options that are assigned to their children
  • for child products - none

Possible Solution

The only product configuration that is sent to Shopware should be based on loop on children product to detect the options that are actually assigned to the product.

Environment


Ergonode version: 1.0.1

 
Detailed information:
- PHP version: 7.4

Others:

@wfajczyk

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

No branches or pull requests

1 participant