feat: Add some of the missing pieces in the create product form (#6918)

The changes are still partial, there is more work to be done to have everything function properly.
Also, refactored the file upload from the product media form to a separate component
This commit is contained in:
Stevche Radevski
2024-04-04 10:27:33 +00:00
committed by GitHub
parent 483bf98a49
commit 06b2f0a8dc
8 changed files with 545 additions and 222 deletions
@@ -55,6 +55,7 @@
},
"actions": {
"save": "Save",
"saveAsDraft": "Save as draft",
"create": "Create",
"delete": "Delete",
"remove": "Remove",
@@ -151,7 +152,7 @@
"attributes": "Attributes",
"editProduct": "Edit Product",
"editAttributes": "Edit Attributes",
"organization": "Organization",
"organization": "Organize",
"editOrganization": "Edit Organization",
"options": "Options",
"editOptions": "Edit Options",
@@ -171,10 +172,7 @@
"deleteImageLabel": "Delete current image",
"noMediaLabel": "The product has no associated media."
},
"titleHint": "Give your product a short and clear title.<0/>50-60 characters is the recommended length for search engines.",
"descriptionHint": "Give your product a short and clear description.<0/>120-160 characters is the recommended length for search engines.",
"discountableHint": "When unchecked discounts will not be applied to this product.",
"handleTooltip": "The handle is used to reference the product in your storefront. If not specified, the handle will be generated from the product title.",
"availableInSalesChannels": "Available in <0>{{x}}</0> of <1>{{y}}</1> sales channels",
"noSalesChannels": "Not available in any sales channels",
"variantCount_one": "{{count}} variant",
@@ -186,6 +184,61 @@
"proposed": "Proposed",
"rejected": "Rejected"
},
"fields": {
"title": {
"label": "Title",
"hint": "Give your product a short and clear title.<0/>50-60 characters is the recommended length for search engines."
},
"subtitle": {
"label": "Subtitle"
},
"handle": {
"label": "Handle",
"tooltip": "The handle is used to reference the product in your storefront. If not specified, the handle will be generated from the product title."
},
"description": {
"label": "Description",
"hint": "Give your product a short and clear description.<0/>120-160 characters is the recommended length for search engines."
},
"discountable": {
"label": "Discountable",
"hint": "When unchecked discounts will not be applied to this product"
},
"type": {
"label": "Type"
},
"collection": {
"label": "Collection"
},
"categories": {
"label": "Categories"
},
"tags": {
"label": "Tags"
},
"sales_channels": {
"label": "Sales channels",
"hint": "This product will only be available in the default sales channel if left untouched"
},
"countryOrigin": {
"label": "Country of origin"
},
"material": {
"label": "Material"
},
"width": {
"label": "Width"
},
"length": {
"label": "Length"
},
"height": {
"label": "Height"
},
"weight": {
"label": "Weight"
}
},
"variant": {
"edit": {
"header": "Edit Variant"