-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat(core-flows,product,types): scoped variant images #13623
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
The latest updates on your projects. Learn more about Vercel for GitHub.
7 Skipped Deployments
|
|
What
This PR introduces the ability to associate product images with specific product variants, enabling more granular image management for products with multiple variants.
Scoped Image Management: Images can now be associated with specific variants instead of being global to the product
Bulk Operations: Batch add/remove variant associations for efficient management
API Changes
POST /admin/products/:id/variants/:variant_id/images/batch
- Batch manage image associations for a variantPOST /admin/products/:id/images/:image_id/variants/batch
- Batch manage variant associations for an imageProduct Module Changes
images
many-to-many relationshipvariants
many-to-many relationshipthumbnail
addImageToVariant()
- Associate images with specific variantsremoveImageFromVariant()
- Remove image-variant associationsgetVariantImages()
- Retrieve images for variants - (general product images + variant specific images)Core Flows Changes
CLOSES CORE-1214
CLOSES CORE-1215
CLOSES CORE-1216
Related PRs: