plentymarkets / plentymarkets-shopware-connector

plentymarkets shopware connector plugin
http://www.plentymarkets.eu/shopware/
MIT License
30 stars 51 forks source link

fix main variation relation ship of an product #427

Closed resslinger closed 5 years ago

resslinger commented 5 years ago
Q A
issue or Enhancement issue+Enhancement
Changelog updated? yes
License MIT

What's in this PR?

This PR has the following changes for the main variation relation ship:

1.) I found a issue, that allways the sync linked the first variation as main variation. If a product has more then one variation, but only one variation is active, the product is not displayed on the store. A inactive variation is the main variation, but if the main variation is not active, the product is not active in the store. I fixed it in the following steps:

2.) If the variation sync change variation of an product, so change the edit datetime of the product and change the active status of the product.

3.) Add new methods to the variationHelper.

Checklist