Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Export only exporting products for a single store #135

@bramstroker

Description

@bramstroker

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

  1. Have a Magento instance with at least 2 stores
  2. Enable tweakwise export for both stores
  3. Enable product for both stores
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions