-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable old product while importing if without any variants
- Loading branch information
Showing
5 changed files
with
186 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
110 changes: 110 additions & 0 deletions
110
tests/Integration/DataFixtures/ApiClientMock/Product/1111111186.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"identifier": "1111111186", | ||
"enabled": true, | ||
"family": "shoes", | ||
"categories": [ | ||
"master_men_shoes", | ||
"print_shoes", | ||
"supplier_abibas" | ||
], | ||
"groups": [], | ||
"parent": "climbingshoe", | ||
"values": { | ||
"supplier": [ | ||
{ | ||
"locale": null, | ||
"scope": null, | ||
"data": "abibas" | ||
} | ||
], | ||
"eu_shoes_size": [ | ||
{ | ||
"locale": null, | ||
"scope": null, | ||
"data": "380" | ||
} | ||
], | ||
"collection": [ | ||
{ | ||
"locale": null, | ||
"scope": null, | ||
"data": [ | ||
"summer_2017" | ||
] | ||
} | ||
], | ||
"price": [ | ||
{ | ||
"locale": null, | ||
"scope": null, | ||
"data": [ | ||
{ | ||
"amount": "258.00", | ||
"currency": "EUR" | ||
} | ||
] | ||
} | ||
], | ||
"image": [ | ||
{ | ||
"locale": null, | ||
"scope": null, | ||
"data": "3/e/2/f/3e2f03ffb13ffde4ff67b9bacb013f68c5c11495_climbingshoe.jpg", | ||
"_links": { | ||
"download": { | ||
"href": "http://127.0.0.1:8080/api/rest/v1/media-files/3/e/2/f/3e2f03ffb13ffde4ff67b9bacb013f68c5c11495_climbingshoe.jpg/download" | ||
} | ||
} | ||
} | ||
], | ||
"name": [ | ||
{ | ||
"locale": null, | ||
"scope": null, | ||
"data": "climbingshoe" | ||
} | ||
], | ||
"erp_name": [ | ||
{ | ||
"locale": "en_US", | ||
"scope": null, | ||
"data": "Climbing shoe" | ||
} | ||
], | ||
"weight": [ | ||
{ | ||
"locale": null, | ||
"scope": null, | ||
"data": { | ||
"amount": "800.0000", | ||
"unit": "GRAM" | ||
} | ||
} | ||
] | ||
}, | ||
"created": "2022-04-14T13:14:08+00:00", | ||
"updated": "2022-04-14T13:14:08+00:00", | ||
"associations": { | ||
"PACK": { | ||
"products": [], | ||
"product_models": [], | ||
"groups": [] | ||
}, | ||
"UPSELL": { | ||
"products": [], | ||
"product_models": [], | ||
"groups": [] | ||
}, | ||
"X_SELL": { | ||
"products": [], | ||
"product_models": [], | ||
"groups": [] | ||
}, | ||
"SUBSTITUTION": { | ||
"products": [], | ||
"product_models": [], | ||
"groups": [] | ||
} | ||
}, | ||
"quantified_associations": {} | ||
} |
21 changes: 21 additions & 0 deletions
21
tests/Integration/DataFixtures/ORM/resources/Product/climbingshoe.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Sylius\Component\Core\Model\ProductTranslation: | ||
climbingshoe_en_US: | ||
locale: "en_US" | ||
name: "Climbingshoe" | ||
slug: "climbingshoe" | ||
description: <paragraph(2)> | ||
climbingshoe_it_IT: | ||
locale: "it_IT" | ||
name: "Scarpa da arrampicata" | ||
slug: "scarpa-da-arrampicata" | ||
description: <paragraph(2)> | ||
|
||
Sylius\Component\Core\Model\Product: | ||
climbingshoe: | ||
fallbackLocale: "en_US" | ||
currentLocale: "en_US" | ||
code: "climbingshoe" | ||
enabled: false | ||
translations: | ||
- "@climbingshoe_en_US" | ||
- "@climbingshoe_it_IT" |
4 changes: 4 additions & 0 deletions
4
tests/Integration/DataFixtures/ORM/resources/ProductVariant/1111111186.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Sylius\Component\Core\Model\ProductVariant: | ||
climbingshoe_1111111186: | ||
code: '1111111186' | ||
product: '@climbingshoe' |
This file contains 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