-
Notifications
You must be signed in to change notification settings - Fork 215
fix: include product brand template in add-product popup #2920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughAdds a product-brand selector to the Add Product popup (rendered with an empty brands array), adds an inline width style to the brand select, introduces a new hook invocation after the product category UI in new-product templates, and renames/extends Hooks methods to support add vs edit flows. Changes
Sequence Diagram(s)sequenceDiagram
participant V as Vendor
participant UI as Add Product Popup
participant Loader as Template Loader
participant Brand as product-brand Partial
participant Hooks as Hooks Manager
V->>UI: Open "Add New Product" popup
UI->>Loader: Render popup template
Loader->>Loader: Render Category UI
Loader->>Hooks: do_action('dokan_new_product_after_product_category')
Hooks->>Brand: add_product_brand_template_in_add_product() → include product-brand (product_brands = [])
Brand-->>Loader: Return brand selector HTML
Loader-->>UI: Compose form (Category → Brand → Tags)
UI-->>V: Display popup with Brand field
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used🧬 Code graph analysis (1)includes/Product/Hooks.php (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
All Submissions:
Closes
How to test the changes in this Pull Request:
Changelog entry