Skip to content

Auto sync WooCommerce product categories to Meta as catalog Product Sets#3168

Closed
mshymon wants to merge 12 commits intofacebook:mainfrom
mshymon:product_set_dev
Closed

Auto sync WooCommerce product categories to Meta as catalog Product Sets#3168
mshymon wants to merge 12 commits intofacebook:mainfrom
mshymon:product_set_dev

Conversation

@mshymon
Copy link
Copy Markdown
Contributor

@mshymon mshymon commented May 8, 2025

Description

At the moment "Facebook for WooCommerce" plugin allows sellers to manually create fb product sets based on WooComerce categories.

In this PR, we are adding automatic sync of WooCommerce product categories to Meta as catalog dynamic (filter) Product Sets with all the metadata associated (URL, image, description, retailer ID).

We are planning to have a follow up release to remove the current product set UI, as not needed due to automatic sync capability added here.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have commented my code, particularly in hard-to-understand areas.
  • I have confirmed that my changes do not introduce any new PHPCS warnings or errors.
  • I have checked plugin debug logs that my changes do not introduce any new PHP warnings or FATAL errors.
  • I followed general Pull Request best practices. Meta employees to follow this wiki.
  • I have added tests (if necessary) and all the new and existing unit tests pass locally with my changes.
  • I have completed dogfooding and QA testing, or I have conducted thorough due diligence to ensure that it does not break existing functionality.
  • [] I have updated or requested update to plugin documentations (if necessary). Meta employees to follow this wiki.

Changelog entry

  • This change introduces an automated process that synchronizes all WooCommerce product categories with Meta, creating catalog product sets for each category. The synchronization process ensures that any changes made to the WooCommerce product categories are reflected in the corresponding Meta catalog product sets.

Test Plan

  • npm run test:php
  • Conducted dogfooding session in the team

mshymon added 4 commits May 9, 2025 16:36
Updated PLUGIN_VERSION (needed for tetsing plugin upgrade logic).

Reverted chnages to Handler.php to avoid dependece on SAOff specific code.
@mshymon mshymon force-pushed the product_set_dev branch from 68ff85f to 7a0cfb3 Compare May 9, 2025 15:39
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@mshymon has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@mshymon mshymon force-pushed the product_set_dev branch from 67c8700 to 48edd27 Compare May 12, 2025 14:51
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@mshymon has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

2 similar comments
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@mshymon has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@mshymon has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@mshymon mshymon force-pushed the product_set_dev branch from ef3110a to 526f235 Compare May 12, 2025 16:56
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@mshymon has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@mshymon mshymon force-pushed the product_set_dev branch from 315308a to 6cfbc54 Compare May 14, 2025 18:03
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@mshymon has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@mshymon merged this pull request in 4cd1487.

vinkmeta pushed a commit that referenced this pull request May 18, 2025
…ets (#3168)

Summary:

At the moment "Facebook for WooCommerce" plugin allows sellers to manually create fb product sets based on WooComerce categories.

In this PR, we are adding automatic sync of WooCommerce product categories to Meta as catalog dynamic (filter) Product Sets with all the metadata associated (URL, image, description, retailer ID).

We are planning to have a follow up release to remove the current product set UI, as not needed due to automatic sync capability added here.

- New feature (non-breaking change which adds functionality)

- [X] I have commented my code, particularly in hard-to-understand areas.
- [X] I have confirmed that my changes do not introduce any new PHPCS warnings or errors.
- [X] I have checked plugin debug logs that my changes do not introduce any new PHP warnings or FATAL errors.
- [X] I followed general Pull Request best practices. Meta employees to follow this [wiki]([url](https://fburl.com/wiki/2cgfduwc)).
- [X] I have added tests (if necessary) and all the new and existing unit tests pass locally with my changes.
- [X] I have completed dogfooding and QA testing, or I have conducted thorough due diligence to ensure that it does not break existing functionality.
- [] I have updated or requested update to plugin documentations (if necessary). Meta employees to follow this [wiki]([url](https://fburl.com/wiki/nhx73tgs)).
- This change introduces an automated process that synchronizes all WooCommerce product categories with Meta, creating catalog product sets for each category. The synchronization process ensures that any changes made to the WooCommerce product categories are reflected in the corresponding Meta catalog product sets.

Pull Request resolved: #3168

Test Plan:
- `npm run test:php`
- Conducted dogfooding session in the team

Reviewed By: vinkmeta, nrostrow-meta

Differential Revision: D74482569

Pulled By: mshymon

fbshipit-source-id: b920c72824cd75ad1b386038befab1c71f2aa966
facebook-github-bot pushed a commit that referenced this pull request May 19, 2025
Summary:
## Description

In PR #3168 we merged new changes to the product sets sync: automatic sync of all WooCommerce product categories to Meta as catalog dynamic (filter) Product Sets with all the metadata associated (URL, image, description, retailer ID).

This PR is a follow up to add a banner in the UI of the product sets tab to explain recent changes to users.

### Type of change

- New feature (non-breaking change which adds functionality)

## Changelog entry

- Add a banner in product sets tab to explain recent changes to product sets sync.

Pull Request resolved: #3207

Test Plan:
- `npm run test:php`
- Dogfood doc in internal to Meta

## Screenshots

After

![Screenshot 2025-05-19 at 09 52 46](https://github.com/user-attachments/assets/353dfd10-2be5-475f-a40c-473160695712)

Reviewed By: gurtejrehal, raymon1

Differential Revision: D74985199

Pulled By: mshymon

fbshipit-source-id: 1cb48ca1f6665e457a5b7907577864513116f62d
vinkmeta pushed a commit that referenced this pull request May 19, 2025
Summary:
## Description

In PR #3168 we merged new changes to the product sets sync: automatic sync of all WooCommerce product categories to Meta as catalog dynamic (filter) Product Sets with all the metadata associated (URL, image, description, retailer ID).

This PR is a follow up to add a banner in the UI of the product sets tab to explain recent changes to users.

### Type of change

- New feature (non-breaking change which adds functionality)

## Changelog entry

- Add a banner in product sets tab to explain recent changes to product sets sync.

Pull Request resolved: #3207

Test Plan:
- `npm run test:php`
- Dogfood doc in internal to Meta

## Screenshots

After

![Screenshot 2025-05-19 at 09 52 46](https://github.com/user-attachments/assets/353dfd10-2be5-475f-a40c-473160695712)

Reviewed By: gurtejrehal, raymon1

Differential Revision: D74985199

Pulled By: mshymon

fbshipit-source-id: 1cb48ca1f6665e457a5b7907577864513116f62d
@tzahgr tzahgr mentioned this pull request May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants