-
Notifications
You must be signed in to change notification settings - Fork 14
Export only exporting products for a single store #135
Description
Issue Brief
Since 4.2.0 products are only exported for a single store and not for all stores anymore in feed tweakwise.xml.
Environment
- PHP Version: 8.1
- Magento Version: 2.4.4
- Magento Enterprise: no
- Tweakwise Export Version: 4.2.0
- Magento Deploy Mode: production
Steps to reproduce
- Have a Magento instance with at least 2 stores
- Enable tweakwise export for both stores
- Enable product for both stores
- Run tweakwise export (
bin/magento tweakwise:export)
Actual result
Output of tweakwise export:
Feed written to /home/x/domains/x.x.x/application/releases/681/var/feeds/tweakwise.xml in 52.43s using 436Mb memory
Feed written to /home/x/domains/x.x.x/application/releases/681/var/feeds/tweakwise.xml in 60.07s using 446Mb memory
The feed is overwritten for each store. The tweakwise.xml feed only contains products from last store in the loop.
And also navigator catalog only contains products from a single store after the feed is imported.
Expected result
The same feed is only written once and contains products for each store (with the store prefix).
This issue was introduced in EmicoEcommerce/Magento2TweakwiseExport#131.
Probably because the feed file is written in for loop now https://github.com/EmicoEcommerce/Magento2TweakwiseExport/pull/131/files#diff-b90eb706f19d8c58b8cf88c39b19ff51f63bd5759624dcadcb750f3bf218d34eR129.
I would suggest to revert this functionality and issue a new release urgently as the tweakwise export module is broken in current state imo. There were also 2 other major bugs which I discovered and were resolved already. But I think this whole functionality (seperate feed export per store) needs a lot more thorough testing to be production ready.
Unfortunately I cannot downgrade to 4.1.0 as our new shop is running on PHP 8.1