Skip to content

add new filters#162

Open
petitphp wants to merge 1 commit intodevelopfrom
issue/79936-2
Open

add new filters#162
petitphp wants to merge 1 commit intodevelopfrom
issue/79936-2

Conversation

@petitphp
Copy link
Copy Markdown
Member

@petitphp petitphp commented Nov 18, 2025

  • Customize directory where the products's feed is written
  • Customize products's feed filename
  • Customize shipping method used when creating the shipping rate during order import

Note

Introduces new filters to customize feed directories/filename, filter products before feed generation, adjust SKU mapping for order items, and override shipping rate data, plus adds unit tests for helper filters.

  • Filters/Hooks:
    • Feed generation:
      • shopping_feed_products_for_feed: filter products before writing the feed (src/Feed/FeedBuilder/FeedBuilder.php).
      • shopping_feed_feed_directory_path: customize feed directory path.
      • shopping_feed_feed_parts_directory_path: customize feed parts directory path.
      • shopping_feed_feed_filename: customize feed filename (without extension) (src/ShoppingFeedHelper.php).
    • Order import:
      • shopping_feed_order_products_product_sku: alter SKU before resolving product ID (src/Orders/Order/Products.php).
      • shopping_feed_order_shipping_rate: alter shipping method data used for rates (src/Orders/Order/Shipping.php).
  • Tests:
    • Add tests/wpunit/Feed/HelperFunctionsTest.php covering custom feed directory, parts directory, and filename filters.

Written by Cursor Bugbot for commit 8a71bcf. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread src/Orders/Order/Shipping.php
Comment thread src/Orders/Order/Products.php Outdated
- Customize directory where the products's feed is written
- Customize products's feed filename
- Customize shipping method used when creating the shipping rate during order import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant