Add WooCommerce product source for Shopstr plugin - #19
Open
RenAndKiwi wants to merge 2 commits into
Open
Conversation
Enables merchants using WooCommerce to publish their product catalog to the Shopstr/Nostr marketplace (kind:30402 events), alongside the existing BTCPay POS product source. Adds WooCommerce API settings UI, product fetching via WC REST API v3, and publish/unpublish controls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Use query param auth for HTTP URLs (WC requires HTTPS for Basic auth) - Use stock_status field from WC API v3 instead of boolean in_stock - Products were incorrectly showing as sold/disabled Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
|
Hello, The sponsor of the Shopstr plugin will provide his feedback about this PR during the upcoming week. Thank you. |
Owner
|
Hello, Your idea has been approved by the plugin's sponsor. Now, the question arises about maintaining the WooCommerce part of the plugin... And also, I need to test this integration but don’t have a WooCommerce site at the moment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AppItemformat used by POS publishingKey implementation details
stock_statusfield from WC API v3 (not the deprecated booleanin_stock) to correctly mark products as active/soldsiteurloption, not the server IP — WooCommerce rejects API requests that don't matchChanges
WooCommerceSettingsmodel + DB migration for storing WC connection config per storeWooCommerceServicefor fetching and mapping WC products (handles both HTTP and HTTPS auth)SaveWooCommerceSettings,PublishWooCommerce,UnPublishWooCommerceWooCommerceServicein plugin DITest plan
🤖 Generated with Claude Code